FS#37501 - [python-pyserial] packaged incorrectly for python3
Attached to Project:
Community Packages
Opened by Marek Petrik (marekpetrik) - Saturday, 26 October 2013, 12:24 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 19 January 2015, 13:42 GMT
Opened by Marek Petrik (marekpetrik) - Saturday, 26 October 2013, 12:24 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 19 January 2015, 13:42 GMT
|
Details
Description:
After updating to python-pyserial 2.7-2, the package does not work. As far as I can tell, this is because the files have not been run through 2to3. I have built the package from source (and also from upstream) and then it works fine. Additional info: * package version(s): python-pyserial 2.7-2 * config and/or log files etc. Steps to reproduce: pacman -S python-pyserial python >>> import serial Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.3/site-packages/serial/__init__.py", line 21, in <module> from serial.serialposix import * File "/usr/lib/python3.3/site-packages/serial/serialposix.py", line 58 except IOError, e: |
This task depends upon
$ python
Python 3.3.2 (default, Sep 6 2013, 09:30:10)
[GCC 4.8.1 20130725 (prerelease)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>>
$ python2
Python 2.7.5 (default, Sep 6 2013, 09:55:21)
[GCC 4.8.1 20130725 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import serial
>>>
EDIT:
Turns out the problem was because my PYTHONPATH was set to /usr/lib/python2.7/site-packages, therefore prioritising the python2 package over python3