|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Some issue with easy_install and PIL/ImagingHi,
I would like to insert Imaging dependence in my setup.py file. Resume : 1. first question : why PIL package in "pypi" don't work ? 2. second question : when I add PIL dependence in my setup.py and I do "python setup.py develop", I've this error : "error: Could not find required distribution Imaging". Why ? Full explication : First, I test manualy installation : :: (env1)sklein@eee-sklein:$ easy_install pil Searching for pil Reading http://pypi.python.org/simple/pil/ Reading http://www.pythonware.com/products/pil Reading http://effbot.org/zone/pil-changes-115.htm Reading http://effbot.org/downloads/#Imaging No local packages or download links found for pil error: Could not find suitable distribution for Requirement.parse('pil') This command fail ! Now, I try with Imaging package name : :: (env1)sklein@eee-sklein:$ easy_install Imaging Searching for Imaging Reading http://pypi.python.org/simple/Imaging/ Couldn't find index page for 'Imaging' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ No local packages or download links found for Imaging error: Could not find suitable distribution for Requirement.parse('Imaging') This command fail also. Now, I add --find-links parameter to easy_install : :: (env1)sklein@eee-sklein:$ easy_install --find-links http://www.pythonware.com/products/pil/ Imaging Searching for Imaging Reading http://www.pythonware.com/products/pil/ Best match: Imaging 1.1.6 Downloading http://effbot.org/downloads/Imaging-1.1.6.tar.gz Processing Imaging-1.1.6.tar.gz Running Imaging-1.1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rF1PG1/Imaging-1.1.6/egg-dist-tmp-Xtv8GV libImaging/Effects.c:210: attention : ‘perlin_init’ defined but not used libImaging/File.c: In function ‘ImagingOpenPPM’: libImaging/File.c:112: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result libImaging/File.c:119: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result libImaging/Geometry.c:236: attention : ‘quadratic_transform’ defined but not used libImaging/Quant.c:311: attention : ‘test_sorted’ defined but not used libImaging/Quant.c:676: attention : ‘checkContained’ defined but not used libImaging/QuantHash.c:136: attention : ‘_hashtable_test’ defined but not used -------------------------------------------------------------------- PIL 1.1.6 BUILD SUMMARY -------------------------------------------------------------------- version 1.1.6 platform linux2 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] -------------------------------------------------------------------- *** TKINTER support not available (Tcl/Tk 8.5 libraries needed) --- JPEG support ok --- ZLIB (PNG/ZIP) support ok --- FREETYPE2 support ok -------------------------------------------------------------------- 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. zip_safe flag not set; analyzing archive contents... Image: module references __file__ Adding PIL 1.1.6 to easy-install.pth file Installing pilprint.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pilfile.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pilconvert.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pilfont.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pildriver.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installed /home/sklein/tests/test_eggs_pil/env1/lib/python2.6/site-packages/PIL-1.1.6-py2.6-linux-i686.egg Skipping dependencies for PIL 1.1.6 This command work very well. First question : why PIL package in "pypi" don't work ? Now, I remove PIL in my virtualenv to test setup.py installation : :: (env1)sklein@eee-sklein:$ rm /home/sklein/tests/test_eggs_pil/env1/lib/python2.6/site-packages/PIL-1.1.6-py2.6-linux-i686.egg/ -rf (env1)sklein@eee-sklein:$ cat setup.py from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='test_pil', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', author_email='', url='', license='', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, dependency_links=['http://www.pythonware.com/products/pil/'], install_requires=[ # -*- Extra requirements: -*- 'Imaging' ], entry_points=""" # -*- Entry points: -*- """, ) (env1)sklein@eee-sklein:$ python setup.py develop running develop running egg_info writing requirements to test_pil.egg-info/requires.txt writing test_pil.egg-info/PKG-INFO writing top-level names to test_pil.egg-info/top_level.txt writing dependency_links to test_pil.egg-info/dependency_links.txt writing entry points to test_pil.egg-info/entry_points.txt reading manifest file 'test_pil.egg-info/SOURCES.txt' writing manifest file 'test_pil.egg-info/SOURCES.txt' running build_ext Creating /home/sklein/tests/test_eggs_pil/env1/lib/python2.6/site-packages/test-pil.egg-link (link to .) test-pil 0.0dev is already the active version in easy-install.pth Installed /home/sklein/tests/test_eggs_pil/test_pil Processing dependencies for test-pil==0.0dev Searching for Imaging Reading http://www.pythonware.com/products/pil/ Best match: Imaging 1.1.6 Downloading http://effbot.org/downloads/Imaging-1.1.6.tar.gz Processing Imaging-1.1.6.tar.gz Running Imaging-1.1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OpIvPF/Imaging-1.1.6/egg-dist-tmp-uNmpa5 libImaging/Effects.c:210: attention : ‘perlin_init’ defined but not used libImaging/File.c: In function ‘ImagingOpenPPM’: libImaging/File.c:112: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result libImaging/File.c:119: attention : ignoring return value of ‘fread’, declared with attribute warn_unused_result libImaging/Geometry.c:236: attention : ‘quadratic_transform’ defined but not used libImaging/Quant.c:311: attention : ‘test_sorted’ defined but not used libImaging/Quant.c:676: attention : ‘checkContained’ defined but not used libImaging/QuantHash.c:136: attention : ‘_hashtable_test’ defined but not used -------------------------------------------------------------------- PIL 1.1.6 BUILD SUMMARY -------------------------------------------------------------------- version 1.1.6 platform linux2 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3] -------------------------------------------------------------------- *** TKINTER support not available (Tcl/Tk 8.5 libraries needed) --- JPEG support ok --- ZLIB (PNG/ZIP) support ok --- FREETYPE2 support ok -------------------------------------------------------------------- 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. zip_safe flag not set; analyzing archive contents... Image: module references __file__ Adding PIL 1.1.6 to easy-install.pth file Installing pilprint.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pilfile.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pilconvert.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pilfont.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installing pildriver.py script to /home/sklein/tests/test_eggs_pil/env1/bin Installed /home/sklein/tests/test_eggs_pil/env1/lib/python2.6/site-packages/PIL-1.1.6-py2.6-linux-i686.egg error: Could not find required distribution Imaging This commend work but I have this error : "error: Could not find required distribution Imaging". Why ? Thanks for your help, Stephane _______________________________________________ Image-SIG maillist - Image-SIG@... http://mail.python.org/mailman/listinfo/image-sig |
|
|
Re: Some issue with easy_install and PIL/ImagingKlein Stéphane wrote:
> Resume : > 1. first question : why PIL package in "pypi" don't work ? Because Fred Lundh have his package distributions unfortunate names that setuptools doesn't like... > 2. second question : when I add PIL dependence in my setup.py and I do > "python setup.py develop", I've this error : > "error: Could not find required distribution Imaging". > Why ? See above. > Now, I add --find-links parameter to easy_install : If you google harder, you'll find there are packagings of PIL that do work with setuptools... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Image-SIG maillist - Image-SIG@... http://mail.python.org/mailman/listinfo/image-sig |
|
|
Re: Some issue with easy_install and PIL/ImagingOn Fri, Sep 11, 2009 at 3:49 PM, Chris Withers <chris@...> wrote:
> Klein Stéphane wrote: >> >> Resume : >> 1. first question : why PIL package in "pypi" don't work ? > > Because Fred Lundh have his package distributions unfortunate names that > setuptools doesn't like... It used to support this, but no longer does. To me, that says more about the state of setuptools than it does about the state of PIL, which has been using the same naming convention for 15 years. </F> _______________________________________________ Image-SIG maillist - Image-SIG@... http://mail.python.org/mailman/listinfo/image-sig |
|
|
Re: Some issue with easy_install and PIL/ImagingFredrik Lundh a écrit :
> On Fri, Sep 11, 2009 at 3:49 PM, Chris Withers <chris@...> wrote: >> Klein Stéphane wrote: >>> Resume : >>> 1. first question : why PIL package in "pypi" don't work ? >> Because Fred Lundh have his package distributions unfortunate names that >> setuptools doesn't like... > > It used to support this, but no longer does. To me, that says more > about the state of setuptools than it does about the state of PIL, > which has been using the same naming convention for 15 years. Ok, and what can we do ? Is a setuptools issue ? Can distribute (http://bitbucket.org/tarek/distribute/wiki/Home setuptools fork) fix this issue easily ? Regards, Stephane _______________________________________________ Image-SIG maillist - Image-SIG@... http://mail.python.org/mailman/listinfo/image-sig |
|
|
Re: Some issue with easy_install and PIL/ImagingFredrik Lundh wrote:
> On Fri, Sep 11, 2009 at 3:49 PM, Chris Withers <chris@...> wrote: >> Klein Stéphane wrote: >>> Resume : >>> 1. first question : why PIL package in "pypi" don't work ? >> Because Fred Lundh have his package distributions unfortunate names that >> setuptools doesn't like... > > It used to support this, but no longer does. To me, that says more > about the state of setuptools than it does about the state of PIL, > which has been using the same naming convention for 15 years. Yep, but it is now in the minority, and consistency in package naming is always good. Would there be any problems for you in naming the distribution in a setuptools-friendly way from the next point release? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Image-SIG maillist - Image-SIG@... http://mail.python.org/mailman/listinfo/image-sig |
|
|
Re: Some issue with easy_install and PIL/ImagingThe problem is that too many people arguing for eggs do this by
sending nastygrams, which doesn't really provide much motivation for doing anything about it (I don't do asshole-driven development). The public review PIL got a couple a minutes ago matches some of the private mail I've gotten: no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) </F> On Wed, Sep 30, 2009 at 6:24 PM, Chris Withers <chris@...> wrote: > Fredrik Lundh wrote: >> >> On Fri, Sep 11, 2009 at 3:49 PM, Chris Withers <chris@...> >> wrote: >>> >>> Klein Stéphane wrote: >>>> >>>> Resume : >>>> 1. first question : why PIL package in "pypi" don't work ? >>> >>> Because Fred Lundh have his package distributions unfortunate names that >>> setuptools doesn't like... >> >> It used to support this, but no longer does. To me, that says more >> about the state of setuptools than it does about the state of PIL, >> which has been using the same naming convention for 15 years. > > Yep, but it is now in the minority, and consistency in package naming is > always good. > > Would there be any problems for you in naming the distribution in a > setuptools-friendly way from the next point release? > > cheers, > > Chris > > -- > Simplistix - Content Management, Batch Processing & Python Consulting > - http://www.simplistix.co.uk > Image-SIG maillist - Image-SIG@... http://mail.python.org/mailman/listinfo/image-sig |
|
|
Re: Some issue with easy_install and PIL/ImagingFredrik Lundh wrote:
> The problem is that too many people arguing for eggs do this by > sending nastygrams, which doesn't really provide much motivation for > doing anything about it (I don't do asshole-driven development). Indeed, I couldn't agree more, and I'm sorry you've been subjected to this. My (hopefully more polite) request still stands though: >> Would there be any problems for you in naming the distribution in a >> setuptools-friendly way from the next point release? > The > public review PIL got a couple a minutes ago matches some of the > private mail I've gotten: > > no egg - worst seen ever, remove it from pypi or provide an egg > (jensens, 2009-10-05, 0 points) *sigh* Interesting timing, myself and Doug Hellmann have been trying to persuade Martin von Lewis that while ratings are fine, the commenting system is likely to be abused: https://sourceforge.net/tracker/?func=detail&atid=513503&aid=2866081&group_id=66150 https://sourceforge.net/tracker/?func=detail&atid=513503&aid=2872293&group_id=66150 I'll put in a request to have that comment removed... Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk _______________________________________________ Image-SIG maillist - Image-SIG@... http://mail.python.org/mailman/listinfo/image-sig |
| Free embeddable forum powered by Nabble | Forum Help |