landam / grass-gis-git-migration-test

0 stars 0 forks source link

Python shell hint results in OSError error(None): None #158

Open landam opened 5 years ago

landam commented 5 years ago

Reported by marisn on 4 Mar 2015 17:12 UTC 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".

GRASS GIS version and provenance

7.0.0

Migrated-From: https://trac.osgeo.org/grass/ticket/2607

landam commented 5 years ago

Comment by marisn on 8 Mar 2015 10:49 UTC Same happens with 7.1 SVN on GNU/Linux, still error message is a bit different: "OSError error(2): No such file or directory"

landam commented 5 years ago

Comment by annakrat on 8 Mar 2015 20:55 UTC Replying to [comment:1 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?

landam commented 5 years ago

Comment by zarch on 2 Apr 2015 06:28 UTC Replying to [comment:2 annakrat]:

Replying to [comment:1 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
...
landam commented 5 years ago

Modified by @landam on 16 Jul 2015 17:01 UTC

landam commented 5 years ago

Comment by marisn on 25 Nov 2016 13:56 UTC 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
>>> 
landam commented 5 years ago

Comment by neteler on 26 Jan 2018 11:40 UTC Ticket retargeted after milestone closed

landam commented 5 years ago

Modified by neteler on 12 Jun 2018 20:48 UTC

landam commented 5 years ago

Comment by @landam on 25 Sep 2018 18:32 UTC Unable to reproduce. What is the state of this issue?

landam commented 5 years ago

Comment by marisn on 26 Sep 2018 10:56 UTC Replying to [comment:8 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.

landam commented 5 years ago

Comment by neteler on 14 Oct 2018 11:14 UTC marisn: please test it in trunk with Python3.

landam commented 5 years ago

Comment by neteler on 22 Oct 2018 20:50 UTC Ticket retargeted after milestone closed

landam commented 5 years ago

Comment by @landam on 11 Dec 2018 11:35 UTC Bump milestone to 7.4.4

landam commented 5 years ago

Comment by neteler on 4 Jan 2019 19:23 UTC Ticket retargeted after milestone closed