[GRASS-dev] [GRASS GIS] #3591: r.import does not recognize selected file

#3591: r.import does not recognize selected file
-------------------------+-------------------------
Reporter: cmbarton | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone:
Component: wxGUI | Version: svn-trunk
Keywords: r.import | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
r.import will not recognize files selected and showing in the list of
raster layers. No matter what, it returns this message:

"No layer selected. Operation canceled"

Maybe related to issue solved in
[https://trac.osgeo.org/grass/ticket/3570\]. I don't know if this is a Mac
specific issue, a wxPython 4 related issue, or something more general.

In GRASS 7.5 trunk, compiled 12 June 2018

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by mmetz):

* milestone: => 7.6.0

Comment:

Is this a problem of the GUI of r.import or of r.import itself, i.e. does
the error appear when run on the CLI or when run in the GUI?

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by cmbarton):

It's the GUI wrapper.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by neteler):

I made a quick test: NC sample dataset, g.gui >> File >> Import raster map
>> Simplified ... (r.import).

No problem identified. See screenshot

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by neteler):

* Attachment "g_gui_r_import_linux.jpg" added.

Screenshot of raster import via g.gui

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by cmbarton):

* Attachment "r-import_bug.jpg" added.

screenshot of r.import bug

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by cmbarton):

I've added a screenshot that shows what happens when I press the "import"
button

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by baharmon):

v.import on Mac also has this bug in the GUI.
r.import and v.import both work fine in the command line on Mac.
Tested on GRASS 7.4.1 on Mac.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:5&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by cmbarton):

What I reported is for the GUI

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:6&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by baharmon):

* Attachment "v.import_error_mac.png" added.

Error message for v.import on Mac

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by baharmon):

* Attachment "r.import_error_mac.png" added.

Error message for r.import on Mac

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by baharmon):

Replying to [comment:6 cmbarton]:
> What I reported is for the GUI

Right, I am just adding that v.import has the same error. Maybe that
should go in a separate ticket. Regarding the command line, I just wanted
to clarify that both commands work and the issue is with the GUI.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:7&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by annakrat):

Try r73472. #3629 is related, needs testing too.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:8&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by cmbarton):

These are fixed in trunk but do not seem fixed in 7.4 RB.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:9&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by annakrat):

Backported to 76 and 74, please test and close if solved.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:10&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------

Comment (by cmbarton):

Thanks much. I’ll test tomorrow

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:11&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.6.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by cmbarton):

* status: new => closed
* resolution: => fixed

Comment:

This is fixed in v. 7.4 on up. Closing

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:12&gt;
GRASS GIS <https://grass.osgeo.org>

#3591: r.import does not recognize selected file
--------------------------+-------------------------
  Reporter: cmbarton | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 7.4.2
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: r.import
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by martinl):

* milestone: 7.6.0 => 7.4.2

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3591#comment:13&gt;
GRASS GIS <https://grass.osgeo.org>