Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Sergej Pupykin (sergej)
Monday, 19 January 2015, 13:42 GMT
Reason for closing:  Fixed
Comment by Sergej Pupykin (sergej) - Tuesday, 29 October 2013, 10:33 GMT
should be fixed in 2.7-3

$ 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
>>>
Comment by rukai (rukai) - Monday, 19 January 2015, 13:42 GMT
  • Field changed: Percent Complete (100% → 0%)
This is now a problem again on version 2.7-4

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

Loading...