[HeLP] PIL - Python

Who doesn't love third-party apps? Get together and talk about them here.
Post Reply
likasz180
Posts: 6
youtube meble na wymiar Warszawa
Joined: Tue Dec 02, 2014 2:59 am

[HeLP] PIL - Python

Post by likasz180 »

Welcome you trying to install the python PIL after the command

Code: Select all

pip install PIL


supplement but pulls a message pops up and do not know what to do next?

Code: Select all

Downloading from URL http://effbot.org/media/downloads/PIL-1.1.7.tar.gz (from http://effbot.org/downloads/)
  Running setup.py egg_info for package pil

    WARNING: '' not a valid package name; please use only.-separated package names in setup.py

    running egg_info
    creating pip-egg-info/PIL.egg-info
    writing pip-egg-info/PIL.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/PIL.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/PIL.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/PIL.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found
    

    reading manifest file 'pip-egg-info/PIL.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/PIL.egg-info/SOURCES.txt'
  Source in /tmp/pip_build_root/pil has version 1.1.7, which satisfies requirement pil
Installing collected packages: pil

  Running setup.py install for pil

    Running command /usr/local/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/pil/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eHVmcv-record/install-record.txt --single-version-externally-managed
    WARNING: '' not a valid package name; please use only.-separated package names in setup.py

    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-i686-2.7
    copying PIL/PsdImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageStat.py -> build/lib.linux-i686-2.7
    copying PIL/TgaImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/GifImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImagePath.py -> build/lib.linux-i686-2.7
    copying PIL/Image.py -> build/lib.linux-i686-2.7
    copying PIL/MpegImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/PixarImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageGL.py -> build/lib.linux-i686-2.7
    copying PIL/ImageEnhance.py -> build/lib.linux-i686-2.7
    copying PIL/PdfImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/IptcImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/IcnsImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageFile.py -> build/lib.linux-i686-2.7
    copying PIL/ImageChops.py -> build/lib.linux-i686-2.7
    copying PIL/GribStubImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/GimpGradientFile.py -> build/lib.linux-i686-2.7
    copying PIL/MicImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageColor.py -> build/lib.linux-i686-2.7
    copying PIL/ExifTags.py -> build/lib.linux-i686-2.7
    copying PIL/WmfImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageDraw2.py -> build/lib.linux-i686-2.7
    copying PIL/ImageFont.py -> build/lib.linux-i686-2.7
    copying PIL/FpxImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageMath.py -> build/lib.linux-i686-2.7
    copying PIL/ImageCms.py -> build/lib.linux-i686-2.7
    copying PIL/ContainerIO.py -> build/lib.linux-i686-2.7
    copying PIL/OleFileIO.py -> build/lib.linux-i686-2.7
    copying PIL/ImageFilter.py -> build/lib.linux-i686-2.7
    copying PIL/PcdImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/McIdasImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageFileIO.py -> build/lib.linux-i686-2.7
    copying PIL/SgiImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ArgImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/BdfFontFile.py -> build/lib.linux-i686-2.7
    copying PIL/PngImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/XVThumbImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/PcfFontFile.py -> build/lib.linux-i686-2.7
    copying PIL/ImagePalette.py -> build/lib.linux-i686-2.7
    copying PIL/BmpImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/IcoImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/TiffImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/WalImageFile.py -> build/lib.linux-i686-2.7
    copying PIL/ImageWin.py -> build/lib.linux-i686-2.7
    copying PIL/CurImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/TarIO.py -> build/lib.linux-i686-2.7
    copying PIL/ImageGrab.py -> build/lib.linux-i686-2.7
    copying PIL/GimpPaletteFile.py -> build/lib.linux-i686-2.7
    copying PIL/FontFile.py -> build/lib.linux-i686-2.7
    copying PIL/PcxImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageSequence.py -> build/lib.linux-i686-2.7
    copying PIL/ImageTk.py -> build/lib.linux-i686-2.7
    copying PIL/SpiderImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/PaletteFile.py -> build/lib.linux-i686-2.7
    copying PIL/SunImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/TiffTags.py -> build/lib.linux-i686-2.7
    copying PIL/PpmImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/FitsStubImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/PalmImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageOps.py -> build/lib.linux-i686-2.7
    copying PIL/ImageDraw.py -> build/lib.linux-i686-2.7
    copying PIL/JpegImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageMode.py -> build/lib.linux-i686-2.7
    copying PIL/DcxImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageShow.py -> build/lib.linux-i686-2.7
    copying PIL/PSDraw.py -> build/lib.linux-i686-2.7
    copying PIL/GbrImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImageQt.py -> build/lib.linux-i686-2.7
    copying PIL/GdImageFile.py -> build/lib.linux-i686-2.7
    copying PIL/ImageTransform.py -> build/lib.linux-i686-2.7
    copying PIL/EpsImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/ImtImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/MspImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/FliImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/XpmImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/BufrStubImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/XbmImagePlugin.py -> build/lib.linux-i686-2.7
    copying PIL/__init__.py -> build/lib.linux-i686-2.7
    running build_ext
    building '_imaging' extension

    creating build/temp.linux-i686-2.7
    creating build/temp.linux-i686-2.7/libImaging
    i686-asustor-linux-gnu-gcc -fno-strict-aliasing -I/asustor/cross/as-3xx/trunk/AS-3XX/staging/usr/include -I/asustor/cross/as-3xx/trunk/AS-3XX/staging/usr/builtin/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -IlibImaging -I/usr/local/AppCentral/python/include -I/usr/local/AppCentral/python/include/python2.7 -c _imaging.c -o build/temp.linux-i686-2.7/_imaging.o

    unable to execute i686-asustor-linux-gnu-gcc: No such file or directory

    error: command 'i686-asustor-linux-gnu-gcc' failed with exit status 1

    Complete output from command /usr/local/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/pil/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eHVmcv-record/install-record.txt --single-version-externally-managed:

    WARNING: '' not a valid package name; please use only.-separated package names in setup.py

running install

running build

running build_py

creating build

creating build/lib.linux-i686-2.7

copying PIL/PsdImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageStat.py -> build/lib.linux-i686-2.7

copying PIL/TgaImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/GifImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImagePath.py -> build/lib.linux-i686-2.7

copying PIL/Image.py -> build/lib.linux-i686-2.7

copying PIL/MpegImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/PixarImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageGL.py -> build/lib.linux-i686-2.7

copying PIL/ImageEnhance.py -> build/lib.linux-i686-2.7

copying PIL/PdfImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/IptcImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/IcnsImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageFile.py -> build/lib.linux-i686-2.7

copying PIL/ImageChops.py -> build/lib.linux-i686-2.7

copying PIL/GribStubImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/GimpGradientFile.py -> build/lib.linux-i686-2.7

copying PIL/MicImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageColor.py -> build/lib.linux-i686-2.7

copying PIL/ExifTags.py -> build/lib.linux-i686-2.7

copying PIL/WmfImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageDraw2.py -> build/lib.linux-i686-2.7

copying PIL/ImageFont.py -> build/lib.linux-i686-2.7

copying PIL/FpxImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageMath.py -> build/lib.linux-i686-2.7

copying PIL/ImageCms.py -> build/lib.linux-i686-2.7

copying PIL/ContainerIO.py -> build/lib.linux-i686-2.7

copying PIL/OleFileIO.py -> build/lib.linux-i686-2.7

copying PIL/ImageFilter.py -> build/lib.linux-i686-2.7

copying PIL/PcdImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/McIdasImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageFileIO.py -> build/lib.linux-i686-2.7

copying PIL/SgiImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ArgImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/BdfFontFile.py -> build/lib.linux-i686-2.7

copying PIL/PngImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/XVThumbImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/PcfFontFile.py -> build/lib.linux-i686-2.7

copying PIL/ImagePalette.py -> build/lib.linux-i686-2.7

copying PIL/BmpImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/IcoImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/TiffImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/WalImageFile.py -> build/lib.linux-i686-2.7

copying PIL/ImageWin.py -> build/lib.linux-i686-2.7

copying PIL/CurImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/TarIO.py -> build/lib.linux-i686-2.7

copying PIL/ImageGrab.py -> build/lib.linux-i686-2.7

copying PIL/GimpPaletteFile.py -> build/lib.linux-i686-2.7

copying PIL/FontFile.py -> build/lib.linux-i686-2.7

copying PIL/PcxImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageSequence.py -> build/lib.linux-i686-2.7

copying PIL/ImageTk.py -> build/lib.linux-i686-2.7

copying PIL/SpiderImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/PaletteFile.py -> build/lib.linux-i686-2.7

copying PIL/SunImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/TiffTags.py -> build/lib.linux-i686-2.7

copying PIL/PpmImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/FitsStubImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/PalmImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageOps.py -> build/lib.linux-i686-2.7

copying PIL/ImageDraw.py -> build/lib.linux-i686-2.7

copying PIL/JpegImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageMode.py -> build/lib.linux-i686-2.7

copying PIL/DcxImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageShow.py -> build/lib.linux-i686-2.7

copying PIL/PSDraw.py -> build/lib.linux-i686-2.7

copying PIL/GbrImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImageQt.py -> build/lib.linux-i686-2.7

copying PIL/GdImageFile.py -> build/lib.linux-i686-2.7

copying PIL/ImageTransform.py -> build/lib.linux-i686-2.7

copying PIL/EpsImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/ImtImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/MspImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/FliImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/XpmImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/BufrStubImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/XbmImagePlugin.py -> build/lib.linux-i686-2.7

copying PIL/__init__.py -> build/lib.linux-i686-2.7

running build_ext

building '_imaging' extension

creating build/temp.linux-i686-2.7

creating build/temp.linux-i686-2.7/libImaging

i686-asustor-linux-gnu-gcc -fno-strict-aliasing -I/asustor/cross/as-3xx/trunk/AS-3XX/staging/usr/include -I/asustor/cross/as-3xx/trunk/AS-3XX/staging/usr/builtin/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -IlibImaging -I/usr/local/AppCentral/python/include -I/usr/local/AppCentral/python/include/python2.7 -c _imaging.c -o build/temp.linux-i686-2.7/_imaging.o

unable to execute i686-asustor-linux-gnu-gcc: No such file or directory

error: command 'i686-asustor-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Cleaning up...

  Removing temporary dir /tmp/pip_build_root...
Command /usr/local/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/pil/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eHVmcv-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/pil

Exception information:
Traceback (most recent call last):
  File "/usr/local/AppCentral/python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/AppCentral/python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/commands/install.py", line 241, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/local/AppCentral/python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 1298, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/local/AppCentral/python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 625, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/usr/local/AppCentral/python/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/util.py", line 670, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /usr/local/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/pil/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-eHVmcv-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/pil

sorry for my english :)
-------------------------
Asustor AS-202 TE
ADM 2.3.0.RBS1
BIOS 0.25/1.0023
-------------------------
User avatar
mafredri
Posts: 371
Joined: Sat Mar 22, 2014 8:41 am

Re: [HeLP] PIL - Python

Post by mafredri »

You could try to install Pillow instead of PIL. On the one hand if it requires compilation you will not be able to install it through the NAS anyway :/.
Hi, I'm new here. Looking to be active in the community and help with development :).
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
likasz180
Posts: 6
Joined: Tue Dec 02, 2014 2:59 am

Re: [HeLP] PIL - Python

Post by likasz180 »

Partially solved the problem with gcc or so I think. I downloaded a pack of
ADM Toolchain build for 32 bit machine and copied it to / usr / local after
entering the command pip install PIL jumped me something but I have these
packages installed and do not know why it does not see the python?


--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.3 (default, Dec 27 2013, 16:05:18)
[GCC 4.6.3]
--------------------------------------------------------------------
*** TKINTER support not available
*** JPEG support not available
*** ZLIB (PNG/ZIP) support not available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.
changing mode of build/scripts-2.7/pilfile.py from 644 to 755
changing mode of build/scripts-2.7/pildriver.py from 644 to 755
changing mode of build/scripts-2.7/pilconvert.py from 644 to 755
changing mode of build/scripts-2.7/pilfont.py from 644 to 755
changing mode of build/scripts-2.7/pilprint.py from 644 to 755

changing mode of /usr/local/AppCentral/python/bin/pilprint.py to 755
changing mode of /usr/local/AppCentral/python/bin/pilfont.py to 755
changing mode of /usr/local/AppCentral/python/bin/pilconvert.py to 755
changing mode of /usr/local/AppCentral/python/bin/pildriver.py to 755
changing mode of /usr/local/AppCentral/python/bin/pilfile.py to 755
Successfully installed PIL
Cleaning up...


root@AS-202TE-55A7:/volume1/.@root # ipkg list_installed


bzip2 - 1.0.6-1 - Very high-quality data compression program
cyrus-sasl - 2.1.23-2 - Provides client or server side authentication (see
RFC 2222).
cyrus-sasl-libs - 2.1.23-2 - Provides client or server side authentication
(see RFC 2222).
e2fslibs - 1.41.14-1 - Ext2 Filesystem Libraries
esmtp - 1.2-1 - esmtp is a user configurable relay-only Mail Transfer Agent
(MTA) with a sendmail compatible syntax.
eventlog - 0.2.7-1 - library needed by syslog-ng
expat - 2.0.1-1 - XML Parser library
findutils - 4.2.32-1 - File finding utilities
fontconfig - 2.8.0-0 - Font configuration library
freetype - 2.3.6-1 - Free truetype library
gconv-modules - 2.5-1 - Provides gconv modules missing from the firmware.
These are used by glibc iconv() implementation.
gdb - 6.8-2 - gdb is the standard GNU debugger
gdbm - 1.8.3-4 - GNU dbm is a set of database routines that use extensible
hashing. It works similar to the standard UNIX dbm routines.
glib - 2.20.4-1 - The GLib library of C routines.
gnutls - 2.6.5-1 - GNU Transport Layer Security Library.
icecast - 2.3.2-1 - A free server software for streaming multimedia.
libcurl - 7.24.0-1 - Curl is a command line tool for transferring files
with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
libdb - 4.2.52-3 - Berkeley DB Libraries
libesmtp - 1.0.6-1 - libESMTP is a library to manage posting electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA).
libgcrypt - 1.4.6-1 - GNU cryptography libray, needed by gnutls
libgd - 2.0.35-6 - An ANSI C library for the dynamic creation of images
libgpg-error - 1.10-1 - Error handling library for libgcrypt
libgsasl - 1.6.1-1 - GNU SASL command line utility.
libidn - 1.25-1 - GNU Libidn is an implementation of the Stringprep,
Punycode and IDNA specifications defined by the IETF Internationalized Domai
libjpeg - 6b-3 - collection of jpeg tools
libnsl - 2.5-4 - Network Services Library
libogg - 1.2.1-1 - Ogg is a multimedia container format.
libpng - 1.2.44-1 - Portable Network Graphics Libraries
libstdc++ - 6.0.9-6 - Standard C++ library, needed for dynamically linked
C++ programs
libtasn1 - 2.13-1 - ASN.1 structure parser library.
libvorbis - 1.3.2-1 - Ogg Vorbis compressed audio format.
libxml2 - 2.7.8-1 - Libxml2 is the XML C parser and toolkit developed for
the Gnome project.
libxslt - 1.1.26-2 - An XML Stylesheet processor based on libxml2
mc - 4.7.5.5-1 - Midnight Commander File Manager
msmtp - 1.4.28-1 - msmtp is an SMTP client.
nano - 2.2.6-1 - A pico like editor
ncurses - 5.7-3 - NCurses libraries
ncursesw - 5.7-2 - NCurses libraries with wide char support
netcat - 1.10pl32-5 - TCP/IP swiss army knife.
openssl - 0.9.8v-2 - Openssl provides the ssl implementation in libraries
libcrypto and libssl, and is needed by many other applications and librari
pcre - 8.31-1 - Perl-compatible regular expression library
psmisc - 22.17-1 - A set of some small useful utilities that use the proc
filesystem.
readline - 6.1-2 - The GNU Readline library provides a set of functions for
use by applications that allow users to edit command lines as they are
screen - 4.0.3-2 - A screen manager that supports multiple logins on single
terminal
slang - 2.2.3-2 - S-Lang is a multi-platform library designed to allow a
developer to create robust multi-platform software.
speex - 1.2rc1-2 - Speex is an Open Source/Free Software patent-free audio
compression format designed for speech.
sqlite - 3.8.1-1 - SQLite is a small C library that implements a
self-contained, embeddable, zero-configuration SQL database engine.
sudo - 1.8.4.5-1 - System utility to execute commands as the superuser
termcap - 1.3.1-2 - Terminal emulation library
zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression
system.
Successfully terminated.


after running xbmc and turned movielib addition, pops up a message in the log:

17:48:07 T:2738879344 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named PIL
Traceback (most recent call last):
File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py", line 16, in <module>
import sync
File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/lib/sync.py", line 21, in <module>
import art
File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/lib/art.py", line 7, in <module>
from PIL import Image
ImportError: No module named PIL
-->End of Python script error report<--
17:48:09 T:2738879344 NOTICE: Thread Background Loader start, auto delete: false
-------------------------
Asustor AS-202 TE
ADM 2.3.0.RBS1
BIOS 0.25/1.0023
-------------------------
User avatar
mafredri
Posts: 371
Joined: Sat Mar 22, 2014 8:41 am

Re: [HeLP] PIL - Python

Post by mafredri »

Download this zip: https://app.box.com/s/3xl3w1cl3w3twq0f9662
It contains two folders, you should put them in /usr/local/AppCentral/python/lib/python2.7/site-packages/

Should work after that.

PS. If you have any pervious PIL/Pillow packages installed, I would recommend you remove them first.

PPS. If that still doesn't work, try placing them in /usr/local/AppCentral/xbmc/usr/lib/python2.7/dist-packages/
For some reason Asustor uses a different build of Python for XBMC *shakes head*...

Regards,
Mathias
Hi, I'm new here. Looking to be active in the community and help with development :).
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
likasz180
Posts: 6
Joined: Tue Dec 02, 2014 2:59 am

Re: [HeLP] PIL - Python

Post by likasz180 »

I uninstalled the old version of PIL and copied the files from your post but I still got the error message this time a python.

ps. asustor have installed Python 2.7 and version 2.6 xbmc

This is the problem?

Code: Select all

21:23:17 T:2895326064  NOTICE: -->Python Interpreter Initialized<--
21:23:17 T:2895326064   DEBUG: Process - The source file to load is /usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py
21:23:17 T:2895326064   DEBUG: Process - Setting the Python path to /usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.t0mm0.common/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/share/xbmc/addons/weather.wunderground/resources/lib/wunderground:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.simplejson/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.beautifulsoup4/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/share/xbmc/addons/script.module.pil/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.requests/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.keyboard.chinese/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.mechanize/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.xbmcswift2/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/lib-dynload:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python26.zip:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/plat-linux3:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/lib-tk:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/lib-old:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/site-packages:
21:23:17 T:2895326064   DEBUG: Process - Entering source directory /usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib
21:23:17 T:2895326064   DEBUG: Instantiating addon using automatically obtained id of "script.movielib" dependent on version 2.1.0 of the xbmc.python api
21:23:17 T:2937052016   DEBUG: ### [Qlock] - Set new Language - [English]
21:23:17 T:2895326064   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
                                            Traceback (most recent call last):
                                              File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py", line 16, in <module>
                                                import sync
                                              File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/lib/sync.py", line 21, in <module>
                                                import art
                                              File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/lib/art.py", line 7, in <module>
                                                from PIL import Image
                                              File "/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/site-packages/PIL/Image.py", line 61, in <module>
                                                from PIL import _imaging as core
                                            ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
                                            -->End of Python script error report<--
21:23:17 T:3048749408   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
21:23:18 T:2895326064    INFO: Python script stopped
21:23:18 T:2895326064   DEBUG: Thread XBPyThread 2895326064 terminating
21:23:18 T:3048749408   DEBUG: waiting for python thread 6 (/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py) to stop
21:23:18 T:3048749408   DEBUG: python thread 6 (/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py) destructed
-------------------------
Asustor AS-202 TE
ADM 2.3.0.RBS1
BIOS 0.25/1.0023
-------------------------
User avatar
mafredri
Posts: 371
Joined: Sat Mar 22, 2014 8:41 am

Re: [HeLP] PIL - Python

Post by mafredri »

likasz180 wrote:I uninstalled the old version of PIL and copied the files from your post but I still got the error message this time a python.

ps. asustor have installed Python 2.7 and version 2.6 xbmc

This is the problem?

Code: Select all

21:23:17 T:2895326064  NOTICE: -->Python Interpreter Initialized<--
21:23:17 T:2895326064   DEBUG: Process - The source file to load is /usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py
21:23:17 T:2895326064   DEBUG: Process - Setting the Python path to /usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.t0mm0.common/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/share/xbmc/addons/weather.wunderground/resources/lib/wunderground:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.simplejson/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.beautifulsoup4/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/share/xbmc/addons/script.module.pil/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.common.plugin.cache/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.requests/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.keyboard.chinese/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.mechanize/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.xbmcswift2/lib:/usr/local/AppCentral/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/lib-dynload:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python26.zip:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/plat-linux3:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/lib-tk:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/lib-old:/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/site-packages:
21:23:17 T:2895326064   DEBUG: Process - Entering source directory /usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib
21:23:17 T:2895326064   DEBUG: Instantiating addon using automatically obtained id of "script.movielib" dependent on version 2.1.0 of the xbmc.python api
21:23:17 T:2937052016   DEBUG: ### [Qlock] - Set new Language - [English]
21:23:17 T:2895326064   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
                                            Traceback (most recent call last):
                                              File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py", line 16, in <module>
                                                import sync
                                              File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/lib/sync.py", line 21, in <module>
                                                import art
                                              File "/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/lib/art.py", line 7, in <module>
                                                from PIL import Image
                                              File "/usr/local/AppCentral/xbmc/xbmc-mplayer/lib/python2.6/site-packages/PIL/Image.py", line 61, in <module>
                                                from PIL import _imaging as core
                                            ImportError: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
                                            -->End of Python script error report<--
21:23:17 T:3048749408   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
21:23:18 T:2895326064    INFO: Python script stopped
21:23:18 T:2895326064   DEBUG: Thread XBPyThread 2895326064 terminating
21:23:18 T:3048749408   DEBUG: waiting for python thread 6 (/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py) to stop
21:23:18 T:3048749408   DEBUG: python thread 6 (/usr/local/AppCentral/xbmc/.xbmc/addons/script.movielib/default.py) destructed
Oh, didn't realize they used 2.6, perhaps only on AS-2/3? Either way, it might work if I provide you with libpython2.7.so and you dump that also into the libraries folder of XBMC, although I guess it would be safest to compile it with python-2.6. I'll have a look when I get home.

Cheers,
Mathias
Hi, I'm new here. Looking to be active in the community and help with development :).
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
Post Reply

Return to “Developer's Corner”