another setup issue, reportlab and pil can't be installed

14 views
Skip to first unread message

Krishnakant Mane

unread,
Jun 24, 2010, 2:53:35 PM6/24/10
to pylons-...@googlegroups.com
Hello,
This might be an issue related to the virtual environment I don't know.
In that case it is off topic.
But some how once I install Pylons inside a virtual environment, I can't
install reportlab and pil using easy_install.
Actually I need these packages for generating reports for my web
application in pdf.

Can any one guess what the problem could be?

Happy hacking.
Krishnakant.

Kevin J. Smith

unread,
Jun 24, 2010, 3:05:27 PM6/24/10
to pylons-...@googlegroups.com
I experienced an issue with installing PIL v.1.1.7 for py2.6 on mac osx 10.6.  The egg on pypi was mis-organized.  It installed fine but I would receive errors when I tried to import PIL.  It was easily rectified by adding a PIL directory below the installed egg directory.  Maybe you are experiencing the same problem?

Here is what PIL looked like straight from pypi:

Under the following directory was only one directory, EGG-INFO, and then all of the *.py files that make up the PIL library.

site-packages/PIL-1.1.7-py2.6-macosx-10.6-universal.egg/

But for the importer to properly recognize the package it should look like the following with all the *.py files in the PIL directory:

site-packages/PIL-1.1.7-py2.6-macosx-10.6-universal.egg/
    /EGG-INFO
    /PIL

Therefore, just create a PIL directory and move all the .py files there.

Cheers


--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To post to this group, send email to pylons-...@googlegroups.com.
To unsubscribe from this group, send email to pylons-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.




--
Never take life seriously. Nobody gets out alive anyway.

Krishnakant Mane

unread,
Jun 24, 2010, 3:21:23 PM6/24/10
to pylons-...@googlegroups.com, Kevin J. Smith
I get error gcc failed with exit status 1.
I can't figure out why would gcc have a problem when all the built tools are in place.
Happy hacking.
Krishnakant.

cd34

unread,
Jun 24, 2010, 5:44:53 PM6/24/10
to pylons-discuss
If I recall, both of those require gcc to compile portions of the
package. I believe the issue you are probably hitting is that the
python-dev libraries that match your version of python are not
installed. The xcode libraries are not updated when the general
system is upgraded, so, you are probably running a different version
of python than the dev libraries.

http://developer.apple.com/technologies/xcode.html

You can become a developer at no cost, but, I believe xcode 3.2.3
contains the python dev that matches 10.6.4 I cannot find the release
notes for xcode 3.2.3, but, I believe that is the issue you're running
into.

Krishnakant Mane

unread,
Jun 25, 2010, 4:19:09 AM6/25/10
to pylons-...@googlegroups.com, cd34
Python dev libraries are indeed needed.
I fixt it by installing the libraries.
thanks every one.

Happy hacking.
Krishnakant.

Reply all
Reply to author
Forward
0 new messages