Error: Couldn't install: lxml 2.1.5 when install schooltool-1.3.0
Dear all,
When I install schooltool-
$sudo make ---> ok
$ sudo make test ftest --> install requirement but error:
.......
error: Setup script exited with error: command 'gcc' failed with exit status 1
An error occured when trying to install lxml 2.1.5. Look above this message for any errors that were output by easy_install.
While:
Installing package.
Getting distribution for 'lxml==2.1.5'.
Error: Couldn't install: lxml 2.1.5
make: *** [bin/test] Error 1
$
I try to fix but not suscessful, Can you help me?
P/S: Tom Hoffman, can you help me, please?
Thanks all,
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SchoolTool Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Justas Sadzevičius
- Solved:
- Last query:
- Last reply:
Related bugs
Related FAQ:
None Link to a FAQ
Revision history for this message
|
#1 |
Sorry, that README is a little out of date. Use: http://
Revision history for this message
|
#2 |
:( Dear Hoffman,
I do by http://
~$ bzr co lp:schooltool schooltool
You have not informed bzr of your launchpad login. If you are attempting a
write operation and it fails, run "bzr launchpad-login YOUR_ID" and try again.
I try to run:
root@missthom-
bzr: ERROR: The user name missthom is not registered on Launchpad.
root@missthom-
bzr: ERROR: The user name thom43th.dhtl is not registered on Launchpad.
root@missthom-
Because that error I ignore and edit buildout.conf and run next commands:
root@missthom-
Reading package lists... Done
Building dependency tree
Reading state information... Done
bzr is already the newest version.
build-essential is already the newest version.
python-all is already the newest version.
python-all-dev is already the newest version.
libc6-dev is already the newest version.
libicu-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libsane-dev libgphoto2-2-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Installation Complete: Next... Run 'make'.
root@missthom-
bin/buildout
Develop: '/root/
warning: no files found matching '*.mo' under directory 'src'
warning: no files found matching 'version.txt'
Installing package.
While:
Installing package.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/tmp/tmpRItclV
File "/tmp/tmpRItclV
File "/tmp/tmpRItclV
File "/root/
File "/root/
File "/tmp/tmpRItclV
File "/tmp/tmpRItclV
File "/root/
raise ValueError("No requirements found", s)
ValueError: ('No requirements found', '# set to package name in buildout.cfg')
make: *** [bin/test] Error 1
root@missthom-
Who can help me fix it?
thanks and the best regards
Revision history for this message
|
#3 |
Can you paste contents of buildout.cfg here? Thanks!
Revision history for this message
|
#4 |
buildout.cfg
[buildout]
extends = base.cfg
develop = .
[package]
eggs += schooltool
base.cfg
[buildout]
extends = http://
versions = versions
newest = false
find-links = http://
http://
parts = package test scripts tags omelette
[package]
recipe = zc.recipe.egg:eggs
unzip = true
eggs = # set to package name in buildout.cfg
[scripts]
recipe = zc.recipe.
unzip = true
eggs = ${package:eggs}
schooltool
z3c.coverage
[test]
recipe = zc.recipe.
eggs = ${package:eggs}
defaults = ['--exit-
[tags]
recipe = z3c.recipe.tag:tags
eggs = ${package:eggs}
[omelette]
recipe = collective.
eggs = ${package:eggs}
Revision history for this message
|
#5 |
Perhaps try this:
#
# Type: bzr whoami to find out what bazaar thinks you are.
# Type: bzr whoami "Erik Thompson" to tell bazaar exactly who you are.
1. It is often a good idea to include an email address in your bzr identity, for example "Eric the Viking <email address hidden>"
2. If you do this, and the email address is linked to you in Launchpad, then Launchpad is able to link the revisions you created to your Launchpad identity.
Revision history for this message
|
#6 |
For the first error, lxml cannot be installed because it needs to be compiled, but the required libraries are not installed. Try
sudo apt-get install libxslt1-dev
That should be enough.
I don't understand what happened in the last traceback.
Revision history for this message
|
#7 |
I had also problems building lxml on lucid.. it looks like Makefile is missing some build dependencies. libxslt1-dev has to be installed and it pulls libxml2-dev which is also needed. lxml sources seem to include libxml so a symbolic link to libxml2/libxml was needed before the build was successful.
Revision history for this message
|
#8 |
Ahh, yes, remembered, if you had dependencies missing, you have to do:
make clean
and then:
make
or
make run
because else - virtualenv will not pick up new libraries that became available...
Revision history for this message
|
#9 |
Thansk all, but
root@missthom-
rm -rf bin develop-eggs parts python
rm -rf build dist
rm -f .installed.cfg
rm -f ID TAGS tags
find . -name '*.py[co]' -exec rm -f {} \;
find . -name '*.mo' -exec rm -f {} +
find . -name 'LC_MESSAGES' -exec rmdir -p --ignore-
root@missthom-
python2.5 bootstrap.py
Creating python
Creating python/
Creating python/
Creating python/
Creating python/bin
Copying /usr/bin/python2.5 to python/bin
Downloading http://
Creating directory '/root/
Creating directory '/root/
Creating directory '/root/
Generated script '/root/
bin/buildout
Develop: '/root/
warning: no files found matching '*.mo' under directory 'src'
warning: no files found matching 'version.txt'
Installing package.
While:
Installing package.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/root/
getattr(
File "/root/
installed_files = self[part]
File "/root/
return f()
File "/root/
reqs, ws = self.working_set()
File "/root/
**kw)
File "/root/
return installer.
File "/root/
for spec in specs]
File "/root/
raise ValueError("No requirements found", s)
ValueError: ('No requirements found', '# set to package name in buildout.cfg')
make: *** [bin/test] Error 1
root@missthom-
:(( Hic, It's very bad.
Revision history for this message
|
#10 |
You have some older checkout or something, the buildout.cfg and base.cfg do not work together.
bzr revert buildout.cfg
it should have a section
[package]
eggs = schooltool
Revision history for this message
|
#11 |
Or just start over with a new checkout? ;-)
Revision history for this message
|
#12 |
Thanks for the copy of buildout.cfg, it seems that we accidentaly triggered a bug in easy-install.
This got exposed when you used eggs+= instead of eggs=, and we didn't test for that. Or possibly the small change in base.cfg causing the havoc was not in the branch used when writing the schooltool book chapter.
We fixed the problem in schooltool project trunks (lp:schooltool, etc.). You can either merge those changes, or simply modify your buildout.cfg to contain:
[buildout]
extends = base.cfg
develop = .
[package]
eggs = schooltool
Revision history for this message
|
#13 |
As for launchpad-login:
You'll need to upload your SSH key to Launchpad first, so it can recognise you:
https:/
Logging in should work now: bzr launchpad-login thompt
You may also find this tutorial helpful (logging in, uploading branches): https:/
My sincere apologies for slow response time.
Revision history for this message
|
#14 |
Thanks Justas Sadzevičius, that solved my question.