Menu

#63 mhgui error

None
wont-fix
nobody
None
5
2018-12-28
2018-08-19
akovia
No

Running arch linux.
Python 3.7.0
python2-wxpython 3 3.0.2.0-1
libconcord 1.2-1
python-libconcord 1.2-1
python-six 1.11.0-3
python-suds-jurko 0.6-3 (latest version in the arch aur)

when I attempt to run mhgui...

$ mhgui 
Traceback (most recent call last):
  File "/usr/bin/mhgui", line 11, in <module>
    load_entry_point('congruity==20', 'gui_scripts', 'mhgui')()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 479, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2703, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2321, in load
    return self.resolve()
  File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2327, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/congruity/mhgui.py", line 27, in <module>
    import wx
ModuleNotFoundError: No module named 'wx'

Do I need to run python-suds-jurko 0.7 from sourch or is this unrelated?

Discussion

  • Scott Talbert

    Scott Talbert - 2018-08-19

    It looks like you are using all Python 2 dependencies, but you installed congruity/mhgui with Python 3. Reinstalling congruity with Python 2 should resolve the problem, or switch your dependencies to Python 3. The error you are seeing is because you don't have a Python 3 version of wxPython installed.

     
  • akovia

    akovia - 2018-08-19

    Thanks for the info. From reading the help file it wasn't obvious to me that some dependancies were python 2 and others 3.

    I'd like to use python3 of course. From what I can gather I would need wxPython-4.0.1 and python-six. I have a harmony 665 so I need to use mhgui which also requires python-suds. Am I missing anything else pythin 3 related? You had mentioned I was using all python 2 dependancies, but it seems like I was only missing wxPython-4.0.1.

    I installed wxPython-4.0.1 and I now get past that first error, but now it can't find libconcord. Doing a manual search I see that it's located in the python2 location.
    /usr/lib/python2.7/site-packages/libconcord.py

    After researching some more, I found the concordance project that has a libconcord at version 1.3 that is supposed to support python 3 bindings, but it's part of the concordance package. I'm guessing libconcord 1.3 is a python 3 dependancy as well then? If so, do I need to install the entire concordance package to get it?

    I feel like I'm missing something here and hope you can help. Could you explain what I need for it to run in python 3?

     
  • Scott Talbert

    Scott Talbert - 2018-08-20

    Yes, if you want to run mhgui with Python 3, then you will need all dependencies to support Python 3 . Yes, you will need to install concordance 1.3 to get the Python 3 version of the libconcord bindings.

     
  • Scott Talbert

    Scott Talbert - 2018-12-28
    • status: open --> wont-fix
    • Group: -->
     
  • Scott Talbert

    Scott Talbert - 2018-12-28

    Closing due to no further response from reporter.

     

Log in to post a comment.