#852 closed defect (invalid)

Install problems Red Hat ES 4.0

Reported by: imhavoc Owned by: imhavoc
Priority: major Milestone: undecided
Component: packaging Version: 1.5.0
Keywords: Red Hat Cc:
Launchpad Bug:

Description

I am attempting to install tahoe on my Red Hat ES 4.0 server.

When I first attempted to install (python setup.py build), I got an error complaining that I needed a newer version of Python 2.4.2 or newer.

After installing an alternate Python (2.6.4), I continued to encounter failures to build.

The first complaint by the system was that the setuptool Python module was not available. I addressed that and tried again.

I continued to have build failures and eventually found an obscure reference to the tahoe-deps collection and _auto_deps.py. After putting those in the source tree, I am able to run the "python2.6 setup.py build" command without errors, but all I get in response is the line, "running build."

Nothing else happens. No tahoe executable is generated.

Change History (13)

comment:1 follow-up: Changed at 2009-12-10T23:04:25Z by zooko

The first complaint by the system was that the setuptool Python module was not available. I addressed that and tried again.

Can you please paste in the command that you executed and the output that resulted which was a complaint that setuptools was not available? That shouldn't happen and I can't think of any way that it could happen so something is not right at this step.

You should not need to install setuptools.

comment:2 Changed at 2009-12-10T23:05:02Z by zooko

  • Component changed from unknown to packaging
  • Keywords install Python removed
  • Owner changed from nobody to imhavoc

comment:3 in reply to: ↑ 1 Changed at 2009-12-10T23:09:59Z by imhavoc

Replying to zooko:

The first complaint by the system was that the setuptool Python module was not available. I addressed that and tried again.

Can you please paste in the command that you executed and the output that resulted which was a complaint that setuptools was not available? That shouldn't happen and I can't think of any way that it could happen so something is not right at this step.

Unfortunately, I have been unable to reproduce that error, and the output has been bumped out of my scrollback buffer.

The command was simply "python2.6 setup.py build."

comment:4 Changed at 2009-12-10T23:36:08Z by zooko

You can't reproduce it because now when you run python2.6 setup.py build it no longer gives that error message, right? This is almost certainly because you subsequently installed setuptools. Could you please uninstall setuptools and try again?

comment:5 Changed at 2009-12-11T01:17:52Z by imhavoc

I removed or disabled setuptools:

$ python2.6 setup.py build Traceback (most recent call last):

File "setup.py", line 38, in <module>

from setuptools import find_packages, setup

ImportError?: No module named setuptools

comment:6 Changed at 2009-12-11T01:18:56Z by imhavoc

Let me repost that:

$ python2.6 setup.py build

Traceback (most recent call last):

File "setup.py", line 38, in <module>

from setuptools import find_packages, setup

ImportError?: No module named setuptools

comment:7 Changed at 2009-12-11T02:39:39Z by zooko

Trac interprets everything you write as being "trac markup". To escape from that an include literal stuff such as command-line output, use triple curly braces, like this:

{{{
$ python2.6 setup.py build
Traceback (most recent call last):
    File "setup.py", line 38, in <module>
        from setuptools import find_packages, setup
ImportError?: No module named setuptools 
}}}

which comes out as:

$ python2.6 setup.py build
Traceback (most recent call last):
    File "setup.py", line 38, in <module>
        from setuptools import find_packages, setup
ImportError?: No module named setuptools 

comment:8 follow-up: Changed at 2009-12-11T02:43:32Z by zooko

Okay, so line 38 of setup.py at version 1.5.0 (which is the version you get by following http://allmydata.org/source/tahoe/trunk/docs/install.html ), is: setup.py@#L36. Hrm, but that line doesn't say from setuptools import find_packages, setup. Are you following the instructions on http://allmydata.org/source/tahoe/trunk/docs/install.html ? In particular, the part that says "Download the 1.5.0 release zip file:

http://allmydata.org/source/tahoe/releases/allmydata-tahoe-1.5.0.zip"?

comment:9 in reply to: ↑ 8 Changed at 2009-12-11T02:51:39Z by imhavoc

Replying to zooko:

Okay, so line 38 of setup.py at version 1.5.0 (which is the version you get by following http://allmydata.org/source/tahoe/trunk/docs/install.html ), is: setup.py@#L36. Hrm, but that line doesn't say from setuptools import find_packages, setup. Are you following the instructions on http://allmydata.org/source/tahoe/trunk/docs/install.html ? In particular, the part that says "Download the 1.5.0 release zip file:

http://allmydata.org/source/tahoe/releases/allmydata-tahoe-1.5.0.zip"?

Yes, those are precisely the instructions, including downloading that link to that zip, that I am attempting to follow.

I see that the following lines in setup.py "might" be looking for setuptools:

{{{
     38 from setuptools import find_packages, setup
     39 from setuptools.command import sdist
     40 from setuptools import Command
}}}

I will re-download the zip file and try again.

comment:10 Changed at 2009-12-11T03:07:38Z by imhavoc

Well, it worked that time. I guess you can close this ticket. Sorry for the disruption.

comment:11 follow-up: Changed at 2009-12-11T03:20:52Z by zooko

Well, since you had a setup.py file that had something else on line 38, I guess you must have downloaded the wrong version the first time. But how could that happen? Did you just click the link in http://allmydata.org/source/tahoe/trunk/docs/install.html which leads to http://allmydata.org/source/tahoe/releases/allmydata-tahoe-1.5.0.zip or did you manually enter in a url such as http://allmydata.org/source/tahoe/releases/ and explore, or what? Hm, a little exploring the source code browser shows me that the setup.py that came with Tahoe-LAFS v1.4.1 had the line from your stack trace on line 38:

from setuptools import find_packages, setup

So unless you tell me otherwise, I'm guessing that you somehow got v1.4.1. Maybe you had already downloaded it long ago when it was the current version and then you accidentally used it, thinking you were using the current version, today?

comment:12 in reply to: ↑ 11 Changed at 2009-12-11T03:38:17Z by imhavoc

So unless you tell me otherwise, I'm guessing that you somehow got v1.4.1. Maybe you had already downloaded it long ago when it was the current version and then you accidentally used it, thinking you were using the current version, today?

I wish I had an explanation for it. I redownloaded the zip from the link on the page and did a checksum on both files -- exact match. I must have done something out of order in the process.

It's running now: http://bigpig.org:5234/

I'm stumped.

comment:13 Changed at 2009-12-11T04:00:21Z by zooko

  • Resolution set to invalid
  • Status changed from new to closed

Okay, I can't figure out how to prevent the next person from stepping into whatever hole you stepped into, so let's close this ticket now. Cool that it (eventually) worked!

Note: See TracTickets for help on using tickets.