Modify

Opened 14 years ago

Closed 14 years ago

#6321 closed defect (fixed)

Install fails

Reported by: anonymous Owned by: Álvaro Iradier
Priority: normal Component: TracWikiPrintPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Try to install, getting errors...

First, just an F.Y.I: PIL fails to install with a bunch of syntax errors like these:

[...snip...]
Running PIL-1.1.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-QOQ7e1/PIL-1.1.7/egg-dist-tmp-KyghDe
WARNING: '' not a valid package name; please use only.-separated package names in setup.py
_imaging.c:75:20: error: Python.h: No such file or directory
In file included from libImaging/Imaging.h:14,
                 from _imaging.c:77:
libImaging/ImPlatform.h:10:20: error: Python.h: No such file or directory
libImaging/ImPlatform.h:14:2: error: #error Sorry, this library requires support for ANSI prototypes.
libImaging/ImPlatform.h:17:2: error: #error Sorry, this library requires ANSI header files.
libImaging/ImPlatform.h:55:2: error: #error Cannot find required 32-bit integer type
In file included from _imaging.c:77:
libImaging/Imaging.h:90: error: expected specifier-qualifier-list before ‘INT32’
libImaging/Imaging.h:264: error: expected specifier-qualifier-list before ‘INT32’
[...snip...]

I fixed that by running apt-get install python-imaging.

Next, the plugin itself failed with similar errors:

[...snip...]
Installed /usr/lib/python2.5/site-packages/TracWikiPrintPlugin-1.6-py2.5.egg
Processing dependencies for TracWikiPrintPlugin==1.6
Searching for reportlab>=2.2
Reading http://pypi.python.org/simple/reportlab/
Reading http://www.reportlab.com/
Best match: reportLab 2.3
Downloading http://pypi.python.org/packages/source/r/reportlab/reportLab-2.3.zip#md5=7d98b26fa287a9e4be4d35d682ce64ac
Processing reportLab-2.3.zip
Running ReportLab_2_3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_4hEDa/ReportLab_2_3/egg-dist-tmp-DGrUMs
################################################
#Attempting install of _rl_accel, sgmlop & pyHnj
#extensions from '/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from '/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM'
# installing without freetype no ttf, sorry!
################################################
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c: In function ‘gt1_name_context_strdup’:
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c:100: warning: implicit declaration of function ‘strlen’
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c:100: warning: incompatible implicit declaration of built-in function ‘strlen’
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c:102: warning: implicit declaration of function ‘memcpy’
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c:102: warning: incompatible implicit declaration of built-in function ‘memcpy’
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c: In function ‘gt1_name_context_strdup_size’:
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c:125: warning: incompatible implicit declaration of built-in function ‘memcpy’
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c: In function ‘gt1_name_context_intern’:
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/gt1-namecontext.c:172: warning: implicit declaration of function ‘strcmp’
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/parseAFM.c:162: warning: function declaration isn’t a prototype
/tmp/easy_install-_4hEDa/ReportLab_2_3/src/rl_addons/renderPM/gt1/parseAFM.c:198: warning: function declaration isn’t a prototype
[...snip...]

Attachments (0)

Change History (3)

comment:1 Changed 14 years ago by anonymous

Got it compile by doing this:

sudo apt-get install -y python-dev

That gave my Python.h, etc. so the compile worked. But there are still a ton of C warnings, they scare me!

Also, still got this at the top:

########## SUMMARY INFO #########
################################################
#Attempting install of _rl_accel, sgmlop & pyHnj
#extensions from '/tmp/easy_install-l8Zbrf/ReportLab_2_3/src/rl_addons/rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from '/tmp/easy_install-l8Zbrf/ReportLab_2_3/src/rl_addons/renderPM'
# installing without freetype no ttf, sorry!
################################################

comment:2 Changed 14 years ago by anonymous

I think I got rid of the warning of the top... haven't tested yet.

First, I uninstalled the plugin:

sudo nano /usr/lib/python2.5/site-packages/easy-install.pth
# Remove the TracWikiPrintPlugin line, then:
rm /usr/lib/python2.5/site-packages/TracWikiPrintPlugin-1.6-py2.5.egg

Then I installed the dev package (and fonts, too) for FreeType:

sudo apt-get install -y libfreetype6-dev msttcorefonts

That seemed to fix it.

It would be nice if these deps were mentioned on the install page. It took time to try to figure this out. I'm leaving the issue open as a documentation "bug".

comment:3 Changed 14 years ago by Álvaro Iradier

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Álvaro Iradier.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.