FS#45832 - [python-qrencode] 1.01-8 does not work, ImportError
Attached to Project:
Community Packages
Opened by Martin Saraceno (tinux) - Wednesday, 29 July 2015, 19:08 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 15 January 2017, 17:37 GMT
Opened by Martin Saraceno (tinux) - Wednesday, 29 July 2015, 19:08 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 15 January 2017, 17:37 GMT
|
Details
Description:
After installing python-qrencode-1.01-8, it does not work to import the qrencode module in python 3.4. $ python Python 3.4.3 (default, Mar 25 2015, 17:13:50) [GCC 4.9.2 20150304 (prerelease)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import qrencode Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/site-packages/qrencode/__init__.py", line 1, in <module> from qr_encode import encode as _encode ImportError: /usr/lib/python3.4/site-packages/qr_encode.cpython-34m.so: undefined symbol: Py_InitModule Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: pacman -S python-qrencode python import qrencode |
This task depends upon
Closed by Doug Newgard (Scimmia)
Sunday, 15 January 2017, 17:37 GMT
Reason for closing: Fixed
Additional comments about closing: python-qrencode 1.2-1
Sunday, 15 January 2017, 17:37 GMT
Reason for closing: Fixed
Additional comments about closing: python-qrencode 1.2-1
Comment by
Felix Yan (felixonmars) - Thursday,
30 July 2015, 03:26 GMT
Comment by
Felix Yan (felixonmars) -
Wednesday, 21 October 2015, 13:33 GMT
Comment by
Levente Polyak (anthraxx) -
Saturday, 23 April 2016, 18:57 GMT
I don't think Py_InitModule would work with Python 3, some effort
should be needed to tune the code.
Just checked upstream and Python 3 compatibility was added years
ago. @Martin you may want to bump to git HEAD to make the package
useful :)
alternative approach would be to ask upstream for a new release --
this way others using it outside of our project would also benefit
from :)