Syntax error installing with easy_install
Daniel Serodio
nabble.dserodio at neverbox.com
Wed Dec 23 04:22:41 UTC 2009
Martin Geisler-4 wrote:
>
> Daniel Serodio <nabble.dserodio at neverbox.com> writes:
>
>> Benoit Boissinot wrote:
>>>
>>> On Sat, Dec 19, 2009 at 11:08:29AM -0800, Daniel Serodio wrote:
>>>>
>>>> I'm trying to update my Mercurial 1.2.1 install at DreamHost to 1.4.1,
>>>> but
>>>> easy_install is failing:
>>>>
>>>> $ python setup.py
>>>> File "setup.py", line 147
>>>> for l in open('.hg_archival.txt'))
>>>> ^
>>>> SyntaxError: invalid syntax
>>>>
>>>> Does Mercurial 1.4.x need a newer Python then I have installed (2.3.5)?
>
> I'm on DreamHost too, and as far as I remember you can just call
> python2.4 explicitly. I've since then been moved to one of their newer
> machines which run Debian etch. There Python 2.4 is the default version.
> You can just ask them to move you.
>
Thanks for the tip, I ran "python2.4 virtual_python.py" and now 2.4 is the
default for me.
>>> Yes, you need at least 2.4.
>>>
>> Thanks for the clarification. Shouldn't the setup script detect this
>> broken
>> requirement and report a more useful error message?
>
> The setup.py script does actually have such a check:
>
> import sys
> if not hasattr(sys, 'version_info') or sys.version_info < (2, 4, 0,
> 'final'):
> raise SystemExit("Mercurial requires Python 2.4 or later.")
>
> Does that not work on your system?
>
How odd, it doesn't work in setup.py but if I type this exact same code in
the Python shell it errors as expected...
>> And shouldn't this requirement be stated in the download page or
>> similar?
>
> It does say 'Requirements: Python 2.4' beneath the big blue download
> button on the homepage:
>
> http://mercurial.selenic.com/
>
> Did you download from some other source where it's not present?
>
You're right, I had followed the instructions on some Mercurial tutorial for
easy_install'ing it but hadn't checked Mercurial's homepage yet.
Regards,
Daniel Serodio
--
View this message in context: http://old.nabble.com/Syntax-error-installing-with-easy_install-tp26857721p26897602.html
Sent from the Mercurial mailing list archive at Nabble.com.
More information about the Mercurial
mailing list