[python3] ImportError: No module named 'cStringIO'

Bug #1442745 reported by Erich E. Hoover
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-setuptools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Line 46 of pkg_resources.py currently reads:
except NameError:
However, it should read:
except (ImportError, NameError):

Since if basestring is defined then the check will cause the error "ImportError: No module named 'cStringIO'". This issue can be reproduced with the following minimal script:
#!/usr/bin/python3

import pyqtgraph
import pkg_resources

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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