Skip to content

Python 2 problem when importing the library #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
orestisvaresis opened this issue Jun 6, 2018 · 1 comment
Closed

Python 2 problem when importing the library #49

orestisvaresis opened this issue Jun 6, 2018 · 1 comment

Comments

@orestisvaresis
Copy link

I tried installing pypozyx via pip install pypozyx and this installs it for python 3.5
I then tried pip2 install pypozyx and this is getting the library installed for python 2.7
But when I try to import the library I get the following error.
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/orestis/.local/lib/python2.7/site-packages/pypozyx/__init__.py", line 90, in <module> from pypozyx.pozyx_serial import * File "/home/orestis/.local/lib/python2.7/site-packages/pypozyx/pozyx_serial.py", line 7, in <module> from pypozyx.lib import PozyxLib File "/home/orestis/.local/lib/python2.7/site-packages/pypozyx/lib.py", line 925 def getPositioningData(self, positioning_data: PositioningData): ^ SyntaxError: invalid syntax

@laurentva
Copy link
Collaborator

Hi!

This is fixed in release 1.2.1. Please update or run pip2 install "pypozyx==1.2.1"

Kind regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants