robotpy / pynetworktables

Pure python implementation of the FRC NetworkTables protocol
Other
60 stars 30 forks source link

pynetworktables installed, getting error import error #93

Closed KenwoodFox closed 5 years ago

KenwoodFox commented 5 years ago

Im getting this error ImportError: No module named 'networktables' when running any of the sample code

pip freeze shows pynetworktables==2019.0.2 Thank you

auscompgeek commented 5 years ago

What version of Python are you using (python --version), and which version of Python did you install it under (pip --version)?

KenwoodFox commented 5 years ago
$ python --version
Python 2.7.12
$ pip --version
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
$ python3 --version
Python 3.5.2
$

Thanks so much for replying

andrewda commented 5 years ago

pynetworktables is only compatible with Python 3.5 or later (see README). You'll have to install it with either pip3 install pynetworktables or python3 -m pip install pynetworktables, then run your code with python3 some_networktables_program.py

KenwoodFox commented 5 years ago

Thank you so much! This fixed my problem.