nhfruchter / pgh-bustime

Real time bus location data for the Port Authority (Pittsburgh) bus system.
MIT License
18 stars 5 forks source link

ModuleNotFoundError: No module named 'interface' #2

Closed dalealleshouse closed 2 years ago

dalealleshouse commented 7 years ago

I get the following error when i try to use pgh-bustime after installing it via pip

Traceback (most recent call last):
  File "C:\src\phg-bus-tracker\bus-tracker.py", line 1, in <module>
    from pghbustime import *
  File "C:\Program Files\Python36\lib\site-packages\pghbustime\__init__.py", line 1, in <module>
    from interface import BustimeAPI
ModuleNotFoundError: No module named 'interface'
Press any key to continue . . .

I cloned your repo and I get the same thing when I attempt to run the tests

ulfmagnetics commented 6 years ago

Looks like some minor changes are needed in order to support the changes to imports in Python 3. I have this working fine with Python 2.7 if that's an option for you.

jaredcoh commented 1 year ago

Thank you for letting me know! I'll take a look at the imports to determine how they can be changed to fit Py3 but because I am stuck on Python 3 for some other projects I'm looking to integrate this into, I'll have to manually modify it, thank you though!