INTO-CPS-Association / unifmu

A universal mechanism for implementing Functional Mock-up Units (FMUs) in various languages
41 stars 4 forks source link

ModuleNotFoundError: No module named 'pubsub' #11

Closed gitting-around closed 3 years ago

gitting-around commented 3 years ago

After installing unifmu and running in the shell:

$ unifmu --help

I get the following error

Traceback (most recent call last):
  File "/usr/local/bin/unifmu", line 5, in <module>
    from unifmu.cli import main
  File "/usr/local/lib/python3.8/site-packages/unifmu/cli.py", line 3, in <module>
    from unifmu.gui import show_gui
  File "/usr/local/lib/python3.8/site-packages/unifmu/gui.py", line 5, in <module>
    from pubsub.pub import validate
ModuleNotFoundError: No module named 'pubsub'

(Running it on macos Catalina)

gitting-around commented 3 years ago

After the suggestion from Christian I installed pubsub:

$ pip install pubsub

I also needed to do:

$ pip install Pypubsub $ pip install wxpython

on my system for it to work.

clegaard commented 3 years ago

solved by f224340

To install gui dependencies use:

pip install .[gui]

A error message has been added to describe this if the gui is launched without these dependencies