Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] GUI doesn't start when watchdog library is not installed #1097

Closed
landam opened this issue Nov 18, 2020 · 4 comments · Fixed by #1099
Closed

[Bug] GUI doesn't start when watchdog library is not installed #1097

landam opened this issue Nov 18, 2020 · 4 comments · Fixed by #1099
Assignees
Labels
bug Something isn't working GUI wxGUI related

Comments

@landam
Copy link
Member

landam commented Nov 18, 2020

Describe the bug

GUI doesn't start when watchdog library is not installed. This issue has been introduced by 32bb3de

To Reproduce
Steps to reproduce the behavior:

  1. Start GRASS in GUI mode / g.gui
Traceback (most recent call last):
  File "/opt/src/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/wxgui.py", line 104, in OnInit
    from lmgr.frame import GMFrame
  File "/opt/src/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/lmgr/frame.py", line 69, in <module>
    from datacatalog.catalog import DataCatalog
  File "/opt/src/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/datacatalog/catalog.py", line 22, in <module>
    from datacatalog.tree import DataCatalogTree
  File "/opt/src/grass/dist.x86_64-pc-linux-gnu/gui/wxpython/datacatalog/tree.py", line 189, in <module>
    class MapWatch(PatternMatchingEventHandler):
NameError: name 'PatternMatchingEventHandler' is not defined

Expected behavior

Watchdog is not a core dependency, GUI should work when watchdog is not installed.

System description:

  • Operating System: Linux
  • GRASS GIS version master
@landam landam added bug Something isn't working GUI wxGUI related labels Nov 18, 2020
@landam landam modified the milestone: 8.0.0/7.10 Nov 18, 2020
@petrasovaa
Copy link
Contributor

Since watchdog is not part of the standard Python installation, would it be worth it to add it as a dependency? Alternatively, maybe on Linux (where it would be most relevant for users and easiest to install) we could use the infobars to pop up a suggestion to install watchdog to automatically update. The infobar could be triggered when you reload manually using the toolbar button.

@ninsbl
Copy link
Member

ninsbl commented Nov 19, 2020

would it be worth it to add it as a dependency

Sounds reasonable to me to add "watchddog" as an optional requirement as the gain in functionality sounds pretty useful.

BTW. is the optional packages list:
https://github.com/OSGeo/grass/blob/master/REQUIREMENTS.html
complete? I did not find OpenMP for example....

@mlennert
Copy link
Contributor

mlennert commented Nov 19, 2020 via email

@ninsbl
Copy link
Member

ninsbl commented Nov 19, 2020

In the requrements list, there are plenty of libs and modules that only benefit a specific component of GRASS (GUI, TGRASS, PyGRASS, ...) and each list element comes with an explanation what it is good for.

Do packagers use that requirements list or do they package based on experience? Just asking how to pass that information best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants