Paver 0.8.1 with python 2.6

10 views
Skip to first unread message

bertran...@gmail.com

unread,
Oct 7, 2008, 4:37:33 PM10/7/08
to paver
Hi,

I have installed Python 2.6 and I have installed paver 0.8.1 from
easy_install-2.6. Everything work fine.
Bu when I have tried to generate a new bootstrap environnement to test
my application under python 2.6. I have encountered several problems.

First one (really minor) is: the bootstrap.py file which is generate
with paver has an indentation error. I have corrected really easily.
Second one: When I launched the corrected bootstrap.py, it tries to
download the http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c8-py2.6.egg
EGG file which doesn't exist. I have tried to specify the
setuptools-0.6c9-py2.6.egg by downloading it and saving it in my
support-files directory but even if it found it, it tries to download
the 0.6c8 one from the web. Even in verbose mode, it doesn't tell me
why it tries to use this version.

Have you any idea ?

Sincerely

Bertrand Cachet

Kevin Dangoor

unread,
Oct 7, 2008, 6:51:44 PM10/7/08
to pa...@googlegroups.com
Hi Bertrand,

This is why people should distribute sdists rather than eggs,
particularly for Python packages without C extensions.

Glad to here that Paver+Python 2.6 generally work okay together. I
figured they would.

You might want to try running with virtualenv from trunk. I think Ian
made a 2.6 related fix, and I don't know if he's released an update yet.

My bootstrap.py files have never had an indentation problem... Can you
send along the offending lines (maybe with some context lines?)

Kevin

--
Kevin Dangoor
Product Manager
SitePen, Inc.
Web development experts:
development, support, training

ke...@sitepen.com
http://www.sitepen.com
650.968.8787
(Timezone: US/Eastern)


Bertrand

unread,
Oct 8, 2008, 1:40:10 AM10/8/08
to pa...@googlegroups.com
Hi Kevin,

I attach to this email the generated bootstrap.py file and the pavement.py I use.
Sorry, I don't understand something, do I need to get virtualenv or paver (with its updated virtualent) from trunk ?
Thanks for your answer
Bertrand
2008/10/8 Kevin Dangoor <dan...@gmail.com>
pavement.py
bootstrap.py

Kevin Dangoor

unread,
Oct 8, 2008, 1:36:14 PM10/8/08
to pa...@googlegroups.com
Hi Bertrand,

I haven't had a chance to look at your attached files yet, but I thought I'd toss out the clarification... I meant virtualenv from trunk.

Kevin

<pavement.py><bootstrap.py>

Bertrand

unread,
Oct 9, 2008, 2:42:24 AM10/9/08
to pa...@googlegroups.com
Hi,

I have installed SVN version of virtualenv (with easy_install-2.6 virtualenv==dev), but it still doesn't work. It still crash trying to download setuptools version 0.6c8-py2.6 instead of 0.6c9.
I have tried on linux, Mac and Windows version.
I have tried on several projects I work on.

Does anyone encounter the same problem ?

Bertrand

unread,
Oct 9, 2008, 3:02:12 AM10/9/08
to pa...@googlegroups.com
I have tried to bootstrap Paver0.8.1 build environnement for python2.6 and it doesn't work too.
I download Paver0.8.1 and then run:

[Paver-0.8.1] $ python2.6 bootstrap.py --clear --verbose
Do not need to delete ./lib/python2.6; already gone
Not deleting ./bin
Creating ./lib/python2.6
Symlinking ./lib/python2.6/codecs.py
Symlinking ./lib/python2.6/codecs.pyc
Symlinking ./lib/python2.6/codecs.pyo
Symlinking ./lib/python2.6/config
Symlinking ./lib/python2.6/copy_reg.py
Symlinking ./lib/python2.6/copy_reg.pyc
Symlinking ./lib/python2.6/copy_reg.pyo
Symlinking ./lib/python2.6/encodings
Symlinking ./lib/python2.6/fnmatch.py
Symlinking ./lib/python2.6/fnmatch.pyc
Symlinking ./lib/python2.6/fnmatch.pyo
Symlinking ./lib/python2.6/lib-dynload
Symlinking ./lib/python2.6/locale.py
Symlinking ./lib/python2.6/locale.pyc
Symlinking ./lib/python2.6/locale.pyo
Symlinking ./lib/python2.6/ntpath.py
Symlinking ./lib/python2.6/ntpath.pyc
Symlinking ./lib/python2.6/ntpath.pyo
Symlinking ./lib/python2.6/os.py
Symlinking ./lib/python2.6/os.pyc
Symlinking ./lib/python2.6/os.pyo
Symlinking ./lib/python2.6/posixpath.py
Symlinking ./lib/python2.6/posixpath.pyc
Symlinking ./lib/python2.6/posixpath.pyo
Symlinking ./lib/python2.6/re.py
Symlinking ./lib/python2.6/re.pyc
Symlinking ./lib/python2.6/re.pyo
Symlinking ./lib/python2.6/sre.py
Symlinking ./lib/python2.6/sre.pyc
Symlinking ./lib/python2.6/sre.pyo
Symlinking ./lib/python2.6/sre_compile.py
Symlinking ./lib/python2.6/sre_compile.pyc
Symlinking ./lib/python2.6/sre_compile.pyo
Symlinking ./lib/python2.6/sre_constants.py
Symlinking ./lib/python2.6/sre_constants.pyc
Symlinking ./lib/python2.6/sre_constants.pyo
Symlinking ./lib/python2.6/sre_parse.py
Symlinking ./lib/python2.6/sre_parse.pyc
Symlinking ./lib/python2.6/sre_parse.pyo
Symlinking ./lib/python2.6/stat.py
Symlinking ./lib/python2.6/stat.pyc
Symlinking ./lib/python2.6/stat.pyo
Symlinking ./lib/python2.6/types.py
Symlinking ./lib/python2.6/types.pyc
Symlinking ./lib/python2.6/types.pyo
Symlinking ./lib/python2.6/UserDict.py
Symlinking ./lib/python2.6/UserDict.pyc
Symlinking ./lib/python2.6/UserDict.pyo
Creating ./lib/python2.6/site-packages
Writing ./lib/python2.6/site.py
Writing ./lib/python2.6/orig-prefix.txt
Creating ./bin
New python executable in ./bin/python
Changed mode of ./bin/python to 0755
Symlinking ./.Python
Testing executable with ./bin/python -c "import sys; print sys.prefix"
'import site' failed; use -v for traceback
Got sys.prefix result: '/Users/bertrand/Workspace/Paver-0.8.1'
Creating ./lib/python2.6/distutils
Writing ./lib/python2.6/distutils/__init__.py
Writing ./lib/python2.6/distutils/distutils.cfg
No Setuptools egg found; downloading
Installing setuptools...
  'import site' failed; use -v for traceback
  Traceback (most recent call last):
    File "<string>", line 50, in <module>
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 49, in <module>
      import posixpath as path
    File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 15, in <module>
      import genericpath
  ImportError: No module named genericpath
  Complete output from command ./bin/python -c "#!python
\"\"\"Bootstrap setuptoo...




" -v --always-copy -U setuptools:
  'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 50, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py", line 49, in <module>
    import posixpath as path
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/posixpath.py", line 15, in <module>
    import genericpath
ImportError: No module named genericpath
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
  File "bootstrap.py", line 841, in <module>
    main()
  File "bootstrap.py", line 339, in main
    create_environment(home_dir, site_packages=not options.no_site_packages, clear=options.clear)
  File "bootstrap.py", line 538, in create_environment
    install_setuptools(py_executable)
  File "bootstrap.py", line 262, in install_setuptools
    extra_env=env)
  File "bootstrap.py", line 400, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command ./bin/python -c "#!python
\"\"\"Bootstrap setuptoo...




" -v --always-copy -U setuptools failed with error code 1




The problem is different here.
Also there is a strange behavior, your bootstrap.py doesn't support --python options, why ?

I'm currently at the office, but I will have a look tonight to all that stuff.

Sincerely

Bertrand


2008/10/9 Bertrand <bertran...@gmail.com>

Kevin Dangoor

unread,
Oct 9, 2008, 8:12:30 AM10/9/08
to pa...@googlegroups.com
Something just occurred to me... I think virtualenv sometimes just installs what is installed on your system. Do you have any setuptools on your system that virtualenv might be trying to use?

Bertrand

unread,
Oct 9, 2008, 8:20:34 AM10/9/08
to pa...@googlegroups.com
Yes I have installed setuptools to be able to generate bootstrap.py file some time ago.
I will try to remove all setuptools egg/directory files I encounter on my system and relaunch the bootstrap process
I will give you information about the issue.

2008/10/9 Kevin Dangoor <dan...@gmail.com>

Bertrand

unread,
Oct 9, 2008, 8:51:07 AM10/9/08
to pa...@googlegroups.com
I have deleted all the setuptools EGG file or directory I have found on the sys.path of python.
It still doesn't work with the same error.

Do you manage to make it work with Paver's bootstrap.py file and python 2.6 ?



2008/10/9 Bertrand <bertran...@gmail.com>

Kevin Dangoor

unread,
Oct 9, 2008, 8:59:17 AM10/9/08
to pa...@googlegroups.com
I got it working...the short story is that you can check out Paver from launchpad (bzr branch lp:paver) and you should be able to run bootstrap.py from there.

The long story is that I did this:

- download ez_setup.py
- run python2.6 ez_setup.py
- python2.6 -m easy_install http://svn.colorstudy.com/virtualenv/trunk/
- python2.6 -m easy_install Paver
- (path to the python 2.6 paver)/paver bootstrap

And now I've checked the new bootstrap in. It works on 2.6, and will hopefully still work on 2.5 ;)

Kevin

Bertrand

unread,
Oct 9, 2008, 9:09:12 AM10/9/08
to pa...@googlegroups.com
Yeah it works now.
The only difference is that I install virtualenv svn version using easy_install virtualenv==dev instead of giving the svn location.

One thing, the bootstrap.py file generated still have an indentation error.
I attach it to this email.

Thanks a lot for your help.

Bertrand

2008/10/9 Kevin Dangoor <dan...@gmail.com>
bootstrap.py

Kevin Dangoor

unread,
Oct 9, 2008, 9:21:05 AM10/9/08
to pa...@googlegroups.com
Ahh, I think I see the problem...

Just delete the bootstrap task that you have in your pavement. The one you have is copied from Paver's, and Paver had to do some extra stuff to bootstrap itself that you shouldn't have to do.

And, if your intention is to run develop, you should set your paver_command_line to "develop".

Kevin

Bertrand

unread,
Oct 9, 2008, 9:43:43 AM10/9/08
to pa...@googlegroups.com
Ok thanks, I will have a look to it.

2008/10/9 Kevin Dangoor <dan...@gmail.com>
Reply all
Reply to author
Forward
0 new messages