pylons 1.0 installation failes with easy_install

23 views
Skip to first unread message

Krishnakant Mane

unread,
May 29, 2010, 5:19:14 PM5/29/10
to pylons-...@googlegroups.com
hello all.
I am trying to install pylons 1.0 using easy_install in a vertual
environment.
I get the error failed to download some packages
By the way can some one tell me where can I download all the
dependencies for off-line installation.
I had success with pylons 0.9.7 where I used to do easy_install -i
/home/user/Download/pylons_repo pylons.
I had all the dependencies including pylons itself downloaded in the
said folder and every thing worked fine.
I would like this same to happen with version 1.0. But since the direct
installation itself is not working, I think there is or might be a
mismatch with some packages and easy_install is not able to get the
right one.

has any one faced this problem?

Happy hacking.
Krishnakant.


Lance Edgar

unread,
May 29, 2010, 6:18:00 PM5/29/10
to pylons-...@googlegroups.com
I just tried this on Ubuntu 10.04, with success:

cd ~/tmp
virtualenv --no-site-packages test
cd test
bin/easy_install 'pylons==1.0'

Then just to be sure things were working I did:

bin/paster create -t pylons test-project
cd test-project
../bin/paster serve development.ini

This also worked, though granted it probably wasn't a very exhaustive
test. At any rate there are several packages installed along with
Pylons. Here's the complete list of my site-packages folder within the
virtual environment:

Beaker-1.5.3-py2.6.egg
decorator-3.2.0-py2.6.egg
easy-install.pth
FormEncode-1.2.2-py2.6.egg
Mako-0.3.2-py2.6.egg
nose-0.11.3-py2.6.egg
Paste-1.7.3.1-py2.6.egg
PasteDeploy-1.3.3-py2.6.egg
PasteScript-1.7.3-py2.6.egg
pip-0.7.2-py2.6.egg
Pygments-1.3.1-py2.6.egg
Pylons-1.0-py2.6.egg
Routes-1.12.1-py2.6.egg
setuptools-0.6c11-py2.6.egg
setuptools.pth
simplejson-2.1.1-py2.6-linux-i686.egg
Tempita-0.4-py2.6.egg
WebError-0.10.2-py2.6.egg
WebHelpers-1.0rc1-py2.6.egg
WebOb-0.9.8-py2.6.egg
WebTest-1.2.1-py2.6.egg

Hope this helps.

Lance

FZiegler

unread,
May 29, 2010, 7:19:42 PM5/29/10
to pylons-...@googlegroups.com
Krishnakant Mane wrote:
>
> I am trying to install pylons 1.0 using easy_install in a vertual
> environment. I get the error failed to download some packages

No trouble here, but I did it using the go-pylons.py script as the
download page suggests. Does that work for you?

But then, heading for the tutorial [1], I find that two of the first
four commands are busted...

1) $ easy_install QuickWiki==0.1.6
2) $ paster make-config QuickWiki test.ini
3) $ paster setup-app test.ini
4) $ paster serve test.ini

Namely, 3) fails with:
,----
| from webhelpers.html.secure_form import secure_form
| ImportError: No module named secure_form
`----
That's because this function has been moved (see [2]). This problem is
fixed by following the suggestion (in [1]) to use the latest QuickWiki
version from bickbucket. However this creates another at step 4):
,----
| Starting server in PID 2139.
| serving on 0.0.0.0:5000 view at http://127.0.0.1:5000
| Error - <type 'exceptions.ImportError'>: No module named roman
`----
That's because the bickbucket version, QuickWiki-0.1.8dev-py2.6.egg,
pulls docutils-0.6 which unlike docutils-0.4, no longer includes
'roman.py' (see [3]). In short, step 1) ought to be replaced by the
following which worked for me today:

1a) $ easy_install
http://bitbucket.org/bbangert/quickwiki/get/21520a734ca1.gz
1b) $ easy_install roman


----
[1] http://pylonshq.com/docs/en/1.0/tutorials/quickwiki_tutorial/
[2] http://bitbucket.org/bbangert/webhelpers/changeset/92d547cf8812
[3] http://thread.gmane.org/gmane.text.docutils.user/5697/focus=5699

Mike Orr

unread,
May 30, 2010, 1:51:12 AM5/30/10
to pylons-...@googlegroups.com
On Sat, May 29, 2010 at 3:18 PM, Lance Edgar <lance...@gmail.com> wrote:
> On 5/29/2010 4:19 PM, Krishnakant Mane wrote:
>>
>> hello all.
>> I am trying to install pylons 1.0 using easy_install in a vertual
>> environment.
>> I get the error failed to download some packages
>> By the way can some one tell me where can I download all the dependencies
>> for off-line installation.
>> I had success with pylons 0.9.7 where I used to do easy_install -i
>> /home/user/Download/pylons_repo pylons.
>> I had all the dependencies including pylons itself downloaded in the said
>> folder and every thing worked fine.
>> I would like this same to happen with version 1.0.  But since the direct
>> installation itself is not working, I think there is or might be a mismatch
>> with some packages and easy_install is not able to get the right one.
>>
>> has any one faced this problem?
>
> I just tried this on Ubuntu 10.04, with success:
>
> cd ~/tmp
> virtualenv --no-site-packages test
> cd test
> bin/easy_install 'pylons==1.0'

All the files required by Pylons and a few extras are here:

http://pylonshq.com/download/1.0

So you can recursively download that page to make a local cache.

--
Mike Orr <slugg...@gmail.com>

Krishnakant Mane

unread,
May 30, 2010, 2:44:02 AM5/30/10
to pylons-...@googlegroups.com, Mike Orr
On Sunday 30 May 2010 11:21 AM, Mike Orr wrote:
> All the files required by Pylons and a few extras are here:
>
> http://pylonshq.com/download/1.0
>
> So you can recursively download that page to make a local cache.
>
>

Thanks.
This works although I got a few warnings.
Thanks again all of you for the help.

Happy hacking.
Krishnakant.

Reply all
Reply to author
Forward
0 new messages