'make run' error: ValueError: Invalid literal for int()

Bug #745655 reported by Asupperi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
Critical
Gediminas Paulauskas

Bug Description

I'm trying to follow the Develping Schooltool->Quickstart guide. When executing "make run" part I get the follwoing error:
....
Getting distribution for 'mechanize==0.1.11'.
While:
  Installing package.
  Getting distribution for 'mechanize==0.1.11'.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1683, in main
    getattr(buildout, command)(args)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 555, in install
    installed_files = self[part]._call(recipe.install)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/buildout.py", line 1227, in _call
    return f()
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.recipe.egg-1.2.2-py2.6.egg/zc/recipe/egg/egg.py", line 95, in install
    reqs, ws = self.working_set()
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.recipe.egg-1.2.2-py2.6.egg/zc/recipe/egg/egg.py", line 90, in working_set
    **kw)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/easy_install.py", line 800, in install
    return installer.install(specs, working_set)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/easy_install.py", line 670, in install
    for dist in self._get_dist(requirement, ws, self._always_unzip
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/easy_install.py", line 494, in _get_dist
    dist = self._fetch(avail, tmp, self._download_cache)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/zc.buildout-1.4.4-py2.6.egg/zc/buildout/easy_install.py", line 457, in _fetch
    new_location = self._index.download(dist.location, tmp)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 392, in download
    found = self._download_url(scheme.group(1), spec, tmpdir)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 614, in _download_url
    return self._attempt_download(url, filename)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 621, in _attempt_download
    headers = self._download_to(url, filename)
  File "/home/ari/DESARROLLO/SCHOOLTOOL/schooltool/eggs/setuptools-0.6c11-py2.6.egg/setuptools/package_index.py", line 553, in _download_to
    size = int(headers["Content-Length"])
ValueError: invalid literal for int() with base 10: '241357, 241357'
make: *** [bin/test] Error 1

Revision history for this message
Douglas Cerna (replaceafill) wrote :

This is a problem with sourceforge servers sending wrong HTTP headers. You can read this thread in the developers for a temporary workaround:

https://lists.launchpad.net/schooltool-developers/msg00346.html

Revision history for this message
Asupperi (arskacr) wrote :

That fixed the error. Thanks for the prompt answer.

Salu2

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

I have added the workaround to versions.cfg on the server.

http://ftp.schooltool.org/schooltool/trunk/versions.cfg
http://ftp.schooltool.org/schooltool/1.4/versions.cfg

Since all buildouts extend this one, they should magically start to work.

Changed in schooltool.gradebook:
assignee: nobody → Gediminas Paulauskas (menesis)
importance: Undecided → Critical
status: New → Fix Released
affects: schooltool.gradebook → schooltool
Revision history for this message
Alan Elkner (aelkner) wrote :

Gediminas,

If I do a fresh checkout of any schooltool package, core or otherwise, and then do a make, I get the following error:

Getting distribution for 'PIL==1.1.7'.
install_dir /home/aelkner/sandboxes/courseinfo/schooltool.courseinfo/eggs/tmpVxnCTM
error: Couldn't find a setup script in /usr/lib/python2.6/dist-packages/PIL
An error occured when trying to install PIL 1.1.7. Look above this message for any errors that were output by easy_install.
While:
  Installing package.
  Getting distribution for 'PIL==1.1.7'.
Error: Couldn't install: PIL 1.1.7
make: *** [bin/test] Error 1

At first, I hoped that it was just a matter of a server being down, but it has been half a day since then, and still the same error. Please advise.

Thanks,
Alan

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

I have added many more download sites to allow-hosts, for PIL, reportlab, Sphinx, and others.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.