schollii / pypubsub

A Python publish-subcribe library (moved here from SourceForge.net where I had it for many years)
189 stars 29 forks source link

Compatibility with Python3.7 #52

Closed masoudl closed 3 years ago

masoudl commented 3 years ago

Hi,

I am having difficulty running pypubsub w/ python 3. Steps: 1- Brand new SD card: Used NOOB to install Raspian Buster 2- Updated the OS 3- Then installed pupubsub (pip install pypubsub) I can run the test program using Python2, but when I try to use Python3 I get a module import error (ModuleNotFoundError: No module named 'pubsub').

I need to run Python3 because other modules I will need to use for the main app need Python3. Does pypubsub support Python3?

Thanks

masoudl commented 3 years ago

Update: I had to install pypubsub for a specific version of python using this command: python3.7 -m pip install pypubsub