gotthardp / python-mercuryapi

Python wrapper for the ThingMagic Mercury API
MIT License
122 stars 63 forks source link

ImportError after installation #107

Closed martinlundin closed 4 years ago

martinlundin commented 4 years ago

Hello,

I am having trouble getting started with the package.

On my raspberry pi I run: sudo apt-get install unzip patch xsltproc gcc libreadline-dev python-dev python-setuptools

after all is installed I install python-mercuryapi with pip install python-mercuryapi

When I try it out I get an error immediately:

>>> import mercury Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/local/lib/python2.7/dist-packages/mercury.so: undefined symbol: PyUnicode_AsUTF8

Any ideas of what the problems is?

martinlundin commented 4 years ago

Fixed this by switching python version! Running fine on 3.7.3