"Permission denied" while importing _imaging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-imaging (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
STEPS TO REPRODUCE:
1. Install python-imaging
$ sudo apt-get install python-imaging
2. launch a Python shell and import _imaging
$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _imaging
EXPECTED OUTPUT:
None, it's only an import.
ACTUAL OUTPUT:
Error opening file for reading: Permission denied
ADDITIONAL INFO:
The _imaging library is actually /usr/lib/
$ strace python -c "import _imaging" 2>&1 | grep Permission
(returned no output)
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-imaging 1.1.7-4
ProcVersionSign
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
Date: Wed Jul 18 22:47:07 2012
InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Release amd64 (20120424.1)
ProcEnviron: Error: [Errno 13] Permission denied: '/proc/
SourcePackage: python-imaging
UpgradeStatus: No upgrade log present (probably fresh install)
I have this issue too. It seems that this bug effects not only PIL but every C library in python. In my case, I tried django. contrib. gis.gdal and django. contrib. gis.geos, in addition to PIL.
This bug only appears when certain conditions are met, but I don't know what they are. I tried importing these C libraries with a fresh KUbuntu 12.04, and it worked without any permission complains. However after installing some softwares and several python packages, this bug emerges.