ImportError: no module named serial

Bug #715766 reported by Dimitrios Symeonidis on 2011-02-09
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pyserial (Debian)
Fix Released
Unknown
pyserial (Ubuntu)
Medium
Unassigned

Bug Description

python-serial is installed under /usr/share/pyshared, which is not in python(2.7)'s search path. Thus it can't be imported.

The following works around the problem:
import sys
sys.path.append('/usr/share/pyshared')

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: python-serial 2.5-1
ProcVersionSignature: Ubuntu 2.6.38-2.29-generic 2.6.38-rc3
Uname: Linux 2.6.38-2-generic x86_64
Architecture: amd64
Date: Wed Feb 9 14:38:21 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_IE.utf8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: pyserial

Related branches

Dimitrios Symeonidis (azimout) wrote :
Andreas Bulling (spam-hierher) wrote :

confirmed, both the bug and the workaround, same DistroRelease and architecture

Andreas Moog (ampelbein) wrote :

Confirmed, I've linked a branch that fixes the issue by not cleaning up the /usr/lib/* in python-serial.

Changed in pyserial (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
Andreas Moog (ampelbein) on 2011-03-09
Changed in pyserial (Ubuntu):
importance: Low → Medium
Changed in pyserial (Debian):
status: Unknown → New
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pyserial - 2.5-1ubuntu1

---------------
pyserial (2.5-1ubuntu1) natty; urgency=low

  * debian/rules
    - don't delete contents of /usr/lib/* for python-serial (LP: #715766)
 -- Andreas Moog <email address hidden> Tue, 08 Mar 2011 23:18:02 +0100

Changed in pyserial (Ubuntu):
status: Confirmed → Fix Released
Andres Rodriguez (andreserl) wrote :

As this has already been released in Ubuntu, I'm unsubscribing from Ubuntu sponsors.

Thanks.

Changed in pyserial (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.