En ce qui me concerne Pillow s'installe très bien:
Code : > mkvirtualenv test_pillow
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/.../.virtualenvs/test_pillow/bin/python2
Also creating executable in /home/.../.virtualenvs/test_pillow/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
Puis, dans le même terminal, dans l'environnement "test_pillow":
Code : > pip install Pillow==3.1
Collecting Pillow==3.1
Downloading Pillow-3.1.0.tar.gz (9.9MB)
100% |████████████████████████████████| 9.9MB 128kB/s
Building wheels for collected packages: Pillow
Running setup.py bdist_wheel for Pillow ... done
Stored in directory: /home/.../.cache/pip/wheels/fb/56/0f/769ecaf1f73532f679b4907a498a97024024357c601525f852
Successfully built Pillow
Installing collected packages: Pillow
Successfully installed Pillow-3.1.0
(j'ai aussi mis à jour vers la version 3.1.2 avec "pip install -U Pillow==3.1.2")
Arrivez-vous à exécuter avec succès ces 2 commandes ?
Citation :J'ai pris la dernière version
Vous êtres bien conscient que vous allez chercher la version de développement ?
C'est tout à fait possible, et nous nous efforçons de faire que la version de développement fonctionne, mais ça reste une version de développement ; si vous l'utilisez c'est plutôt pour mettre à jour régulièrement (mais si c'est le cas et que vous faites des bugs reports c'est très bien). Notez q'uil y a des petites différences avec la 1.6 pour que cela soit entièrement fonctionnelle, mais ces différences feront l'objet d'un tutoriel pour la 1.7 lorsque celle-ci sortira, dans quelques mois.
Dans tous les cas si c'est pour corriger votre problème ci-dessus avec pillow, c'est sûrement peine perdu (puisque à ce niveau pas de différence).
L a premiere commande se passe sans probleme :
Code : administrateur@cremeCRM:~$ mkvirtualenv test_pillow
New python executable in /home/administrateur/Envs/test_pillow/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/administrateur/Envs/test_pillow/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/administrateur/Envs/test_pillow/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/administrateur/Envs/test_pillow/bin/preactivate
virtualenvwrapper.user_scripts creating /home/administrateur/Envs/test_pillow/bin/postactivate
virtualenvwrapper.user_scripts creating /home/administrateur/Envs/test_pillow/bin/get_env_details
Par contre la 2ème pose souci :
Code : (test_pillow) administrateur@cremeCRM:~$ pip install Pillow==3.1
Collecting Pillow==3.1
Downloading Pillow-3.1.0.tar.gz (9.9MB)
100% |████████████████████████████████| 9.9MB 84kB/s
Building wheels for collected packages: Pillow
Running setup.py bdist_wheel for Pillow ... error
Complete output from command /home/administrateur/Envs/test_pillow/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ltJyom/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpfp51jzpip-wheel- --python-tag cp27:
Single threaded build, not installing mp_compile:1 processes
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageOps.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFilter.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Image.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegPresets.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/OleFileIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageSequence.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTk.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageWin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMorph.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_binary.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PyAccess.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMode.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PSDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WalImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageColor.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/__init__.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_util.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFont.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageChops.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTransform.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ExifTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageStat.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TarIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageCms.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/features.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ContainerIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageShow.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePalette.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageQt.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GdImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageGrab.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
running egg_info
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '.editorconfig'
writing manifest file 'Pillow.egg-info/SOURCES.txt'
copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-2.7/PIL
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ltJyom/Pillow/setup.py", line 767, in <module>
zip_safe=not debug_build(),
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/administrateur/Envs/test_pillow/local/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 179, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/tmp/pip-build-ltJyom/Pillow/setup.py", line 516, in build_extensions
(f, f))
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
----------------------------------------
Failed building wheel for Pillow
Running setup.py clean for Pillow
Failed to build Pillow
Installing collected packages: Pillow
Running setup.py install for Pillow ... error
Complete output from command /home/administrateur/Envs/test_pillow/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ltJyom/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tc3CdV-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/administrateur/Envs/test_pillow/include/site/python2.7/Pillow:
Single threaded build, not installing mp_compile:1 processes
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/PIL
copying PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageOps.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFilter.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Image.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegPresets.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/OleFileIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageSequence.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTk.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageEnhance.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageWin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SunImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMorph.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BdfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_binary.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PyAccess.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageMode.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PSDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WalImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageColor.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/__init__.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/_util.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FliImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcfFontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFont.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageChops.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageTransform.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ExifTags.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PngImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GifImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageStat.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/TarIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageCms.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FontFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw2.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/features.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/CurImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ContainerIO.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageShow.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MspImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpGradientFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePalette.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/MicImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImagePath.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageQt.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/GdImageFile.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageDraw.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/ImageGrab.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
copying PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-2.7/PIL
running egg_info
writing Pillow.egg-info/PKG-INFO
writing top-level names to Pillow.egg-info/top_level.txt
writing dependency_links to Pillow.egg-info/dependency_links.txt
reading manifest file 'Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '.editorconfig'
writing manifest file 'Pillow.egg-info/SOURCES.txt'
copying PIL/OleFileIO-README.md -> build/lib.linux-x86_64-2.7/PIL
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ltJyom/Pillow/setup.py", line 767, in <module>
zip_safe=not debug_build(),
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/administrateur/Envs/test_pillow/local/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/tmp/pip-build-ltJyom/Pillow/setup.py", line 516, in build_extensions
(f, f))
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
----------------------------------------
Command "/home/administrateur/Envs/test_pillow/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ltJyom/Pillow/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tc3CdV-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/administrateur/Envs/test_pillow/include/site/python2.7/Pillow" failed with error code 1 in /tmp/pip-build-ltJyom/Pillow/
Citation :Vous êtres bien conscient que vous allez chercher la version de développement ?
A non je n'vais pas compris cela, je reprend mon installation du départ avec la version 1.6
Merci la virtualisation
J'avance
Il manqué ce packet :
(je l'ai ajouté à mon post précédant)
Du coup j'ai continué avec la BDD
Il manquait juste un FLUSH PRIVILEGES; après
Code : INSERT INTO user(host,user,password) VALUES ('localhost','cremeuser',PASSWORD('34jkfue1dioaA'));
J'ai créé et rempli le fichier local_settings.py avec mes informations et j'ai eu l'erreur :
Code : (creme)administrateur@cremeCRM:~/creme_crm-1.6$ python manage.py migrate
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 303, in execute
settings.INSTALLED_APPS
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
self._setup(name)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
self._wrapped = Settings(settings_module)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/administrateur/creme_crm-1.6/creme/__init__.py", line 92, in <module>
from mediagenerator.management.commands.generatemedia import Command as GenerateMediaCommand
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/management/commands/generatemedia.py", line 1, in <module>
from ...api import generate_media
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/api.py", line 1, in <module>
from . import settings, utils
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/settings.py", line 16, in <module>
getattr(settings, 'GENERATED_MEDIA_DIR', _media_dir))
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in __getattr__
self._setup(name)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in _setup
self._wrapped = Settings(settings_module)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/administrateur/creme_crm-1.6/creme/settings.py", line 961, in <module>
from local_settings import *
File "/home/administrateur/creme_crm-1.6/creme/local_settings.py", line 7
SyntaxError: Non-ASCII character '\xc3' in file /home/administrateur/creme_crm-1.6/creme/local_settings.py on line 7, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Que j'ai réglé en supprimant les commentaires en face de
Code : 'HOST': '',
'PORT': '',
Et j'ai maintenant j'ai l'erreur :
Code : SystemCheckError: System check identified some issues:
ERRORS:
creme.creme_core: (creme.E002) You did not generate a secret key.
HINT: Change the SECRET_KEY setting in your local_settings.py/project_settings.py
Use the result of the command "python manage.py build_secret_key".
La commande me donne bien une clé mais je ne sais pas quoi en faire
Merci
Merci, j'ai mis à jour le tutoriel pour prendre en compte vos retours, en ce qui concerne le paquet manquant et l'erreur unicode (c'est ma faut j'ai mis des commentaires en français pour le confort des lecteurs et je n'ai pas pensé aux caractères exotiques) ; pour la commande sql des privilèges je verrai plus tard avec mon collègue.
Citation :La commande me donne bien une clé mais je ne sais pas quoi en faire
Vous devez mettre dans votre local_settings.py une ligne du genre SECRET_KEY='....' (telle que vous pouvez en voir dans settings.py) mais en utilisant la clé générée par cette commande.
Merci a vous
Donc avec le fichier local_setting.py comme ci dessous la commande fonctionne
Code : DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'bdcremecrm',
'USER': 'cremeuser',
'PASSWORD': 'MonMotDePasse',
'HOST': '',
'PORT': '',
},
}
SECRET_KEY = 'MaCle',
Code : python manage.py migrate
Par contre sur le commande ci dessous
Code : python manage.py creme_populate
J'ai l'erreur
Code : python manage.py creme_populate
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils.importlib import import_module
Disable populate for "vcfs": it does not have any "populate.py" script.
Populate "creme_core" ...
A super-user has been created with login="root" and password="root".
OK
Populate "recurrents" ... OK
Populate "documents" ... OK
Populate "assistants" ... OK
Populate "events" ... OK
Populate "crudity" ... OK
Populate "activesync" ... OK
Populate "persons" ... OK
Populate "creme_config" ... OK
Populate "media_managers" ... OK
Populate "reports" ... OK
Populate "graphs" ... OK
Populate "products" ... OK
Populate "geolocation" ...
Importing Towns database...
OK
Populate "activities" ... OK
Populate "commercial" ... OK
Populate "emails" ... OK
Populate "projects" ... OK
Populate "tickets" ... OK
Populate "billing" ... OK
Populate "opportunities" ... OK
Update sequences for models : ['Language', 'Currency', 'StaffSize', 'EventType', 'Priority', 'Civility', 'TaskStatus', 'Position', 'Status', 'CreditNoteStatus', 'LegalForm', 'ActType', 'FolderCategory', 'ProjectStatus', 'QuoteStatus', 'SettlementTerms', 'InvoiceStatus', 'Status', 'SearchConfigItem', 'Town', 'MediaCategory', 'UserMessagePriority', 'AdditionalInformation', 'Criticity', 'Sector', 'CremeUser', 'SalesOrderStatus', 'PaymentTerms'] OK
Populate is OK.
(creme)administrateur@cremeCRM:~/creme_crm-1.6$ python manage.py generatemedia
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils.importlib import import_module
Generating l10n.js with variation {'language': 'en'}
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/django/core/management/base.py", line 661, in handle
return self.handle_noargs(**options)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/management/commands/generatemedia.py", line 10, in handle_noargs
generate_media()
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/api.py", line 21, in generate_media
for key, url, content in backend.get_output():
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/generators/bundles/bundles.py", line 33, in get_output
variation, combination)
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/generators/bundles/bundles.py", line 72, in generate_file
output = list(backend.get_output(variation))
File "/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/filters/yuicompressor.py", line 31, in get_output
"Error was: %s" % e)
ValueError: Failed to execute Java VM or yuicompressor. Please make sure that you have installed Java and that it's in your PATH and that you've configured YUICOMPRESSOR_PATH in your settings correctly.
Error was: [Errno 2] No such file or directory
Et du coup je n'arrive pas à joindre mon serveur sur http://IPduServeur:8000 pourtant je n'ai pas d'erreur
Code : (creme)administrateur@cremeCRM:~/creme_crm-1.6$ python manage.py runserver
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils.importlib import import_module
/home/administrateur/Envs/creme/local/lib/python2.7/site-packages/mediagenerator/utils.py:7: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
from django.utils.importlib import import_module
Performing system checks...
System check identified no issues (0 silenced).
April 04, 2017 - 08:25:32
Django version 1.8.17, using settings 'creme.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Je touche presque au but
Merci encore
Pour l'erreur Java, j'ai installé JAVA :
Code : apt-get install default-jre
Et les commandes ci dessous sont passées.
Code : python manage.py creme_populate
Code : python manage.py generatemedia
Avec juste un erreur sur python manage.py creme_populate
Code : Disable populate for "vcfs": it does not have any "populate.py" script.
Je lance mon serveur mais je n'affiche rien http://IPduServeur:8000
Sniff
Citation :Avec juste un erreur sur python manage.py creme_populate
Ce n'est pas pas une erreur (même si c'est peut-être confusant -- je préciserai dans le tutoriel) ; l'app vcfs n'a pas de script pour initialiser des données en BD, et c'est normal.
Citation :Je lance mon serveur mais je n'affiche rien
Avez-vous lancé votre serveur en lui indiquant l'IP à utiliser ?
https://docs.djangoproject.com/en/1.8/r ... dress-port
Ça fonction
C'est bôôôôôôô
Merci encore et j’espère que mon expérience va aider les autres utilisateurs également.
Juste une dernière question, peut être hors sujet d'ailleurs ...
Existe t'il un manuel d'utilisation ou le guide du débutant de Crème CRM ?
Merci encore
Citation :Existe t'il un manuel d'utilisation ou le guide du débutant de Crème CRM ?
Il y a des PDFs dans les sources, à la racine, dans le répertoire doc/ qui expliquent les bases de l'interface.
Ici mon collègue a écrit quelques billets généraux sur la relation client: https://www.cremecrm.com/forum/forumdisplay.php?fid=4
Ici on trouve des billets présentant quelques fonctionnalités (mais c'est sommaire): https://www.cremecrm.com/forum/forumdisplay.php?fid=14
C'est loin d'être parfait mais j'espère que ça vous aidera.
|