pip install fails in Ubuntu #24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
By nemobis on 2015-10-08T19:26:34.922Z
The installation instructions work fine in fedora 21. Not so in Ubuntu.
Preparing to unpack .../python3-pil_2.3.0-1ubuntu3_amd64.deb ...
Unpacking python3-pil (2.3.0-1ubuntu3) ...
Setting up python3-pil (2.3.0-1ubuntu3) ...
$ sudo pip install img2pdf
The directory '/home/nemobis/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/nemobis/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting img2pdf
Downloading img2pdf-0.1.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/lib/python3/dist-packages (from img2pdf)
Installing collected packages: img2pdf
Running setup.py install for img2pdf
Successfully installed img2pdf-0.1.5
$ img2pdf -v -o 00050.tif.bw.pdf 00050.tif.bw.tif
D: Reading 00050.tif.bw.tif
D: input dpi = 400 x 400
D: input colorspace = 1
D: width x height = 5816 x 5064
D: imgformat = TIFF
D: Converting colorspace 1 to L
Traceback (most recent call last):
File "/usr/local/bin/img2pdf", line 9, in
load_entry_point('img2pdf==0.1.5', 'console_scripts', 'img2pdf')()
File "/usr/local/lib/python3.4/dist-packages/img2pdf.py", line 402, in main
args.verbose))
File "/usr/local/lib/python3.4/dist-packages/img2pdf.py", line 313, in convert
imgdata.close()
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 528, in getattr
raise AttributeError(name)
AttributeError: close