Opened 10 years ago
Last modified 6 years ago
#2607 new defect
Python shell hint results in OSError error(None): None
Reported by: | marisn | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.4.5 |
Component: | wxGUI | Version: | 7.0.0 |
Keywords: | Cc: | ||
CPU: | Unspecified | Platform: | All |
Description
In Python shell type in:
from grass.pygrass.modules.shortcuts import raster as r r.
and observe how it gets filled with gazzilion of error messages: "OSError error(None): None"
Due to this error, it is impossible to use Python shell, as it is trying to execute error message as a command instead of just providing it as an "error text that messes up CLI".
Change History (13)
follow-up: 2 comment:1 by , 10 years ago
Platform: | MSWindows Vista → All |
---|
follow-up: 3 comment:2 by , 10 years ago
Replying to marisn:
Same happens with 7.1 SVN on GNU/Linux, still error message is a bit different: "OSError error(2): No such file or directory"
It works fine for me using Ubuntu. Does it happen only in the Python shell in wxGUI?
comment:3 by , 10 years ago
Replying to annakrat:
Replying to marisn:
Same happens with 7.1 SVN on GNU/Linux, still error message is a bit different: "OSError error(2): No such file or directory"
It works fine for me using Ubuntu. Does it happen only in the Python shell in wxGUI?
I have the same error also in ipython shell:
In [2]: r.OSError error(2): No such file or directory OSError error(2): No such file or directory Display all 187 possibilities? (y or n) r.basin_fill r.buffer ...
comment:4 by , 9 years ago
Milestone: | → 6.4.6 |
---|
comment:5 by , 8 years ago
Milestone: | 6.4.6 → 7.4.0 |
---|
This is how a simple work session in current trunk on Gentoo Linux looks like:
Welcome to wxGUI Interactive Python Shell 0.9.8 Type "help(grass)" for more GRASS scripting related information. Type "AddLayer()" to add raster or vector to the layer tree. Python 2.7.12 (default, Oct 4 2016, 11:36:55) [GCC 5.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from grass.pygrass.modules.shortcuts import raster as r >>> r.OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or direc File "<input>", line 1 r.OSError(error(2): No such file or directory) ^ SyntaxError: invalid syntax >>> r.OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory OSError error(2): No such file or directory info('shmin') File "<input>", line 1 r.OSError(error(2): No such file or directory) ^ SyntaxError: invalid syntax >>>
comment:7 by , 6 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:9 by , 6 years ago
Replying to martinl:
Unable to reproduce. What is the state of this issue?
I am able to reproduce this issue with a self compiled current trunk on Ubuntu and Gentoo machines thus this bug report is still valid.
Same happens with 7.1 SVN on GNU/Linux, still error message is a bit different: "OSError error(2): No such file or directory"