[Zope3-Users] Installation problems with ztfy.webapp on fresh baked gentoo!

6 views
Skip to first unread message

Tamer Higazi

unread,
Jul 19, 2013, 5:43:54 PM7/19/13
to Zope 3 Mailinglist
Hi peeople!
I sent by mistake this question to the zope2 Mailinglist, and I hope you forgive me. I have this problem:

I am trying to install zope3 /ztfy webapp, and I face quickly a problem
by running "python bootstrap.py" after application setup. Here the problem:

README.txt bootstrap.py buildout.cfg debug.ini deploy.ini etc
extends-cache setup.py src var
tamer@tux /storage/PyProjects/ztfyAPP $ python bootstrap.py
Traceback (most recent call last):
File "bootstrap.py", line 111, in <module>
ws.find(pkg_resources.Requirement.parse(requirement)).location
AttributeError: 'NoneType' object has no attribute 'location'

This problem appears if I try to setup bluebream or a ztfy project and I am not getting smart. what could it be?!

I already spoke with somebody who had the same problem. He installed "zc.builout" globally, and it was solved for him but not me.

My problem still exist even after installing through easy_install zc.buildout globally.

Any ideas what it could be?!



For any help I would kindly thank you




Tamer

_______________________________________________
Zope3-users mailing list
Zope3...@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users

Thierry Florac

unread,
Jul 19, 2013, 7:03:51 PM7/19/13
to Tamer Higazi, Zope 3 Mailinglist

Hi,

Le Fri, 19 Jul 2013 23:43:54 +0200,
Tamer Higazi <th9...@googlemail.com> a écrit:

> Hi peeople!
> I sent by mistake this question to the zope2 Mailinglist, and I hope
> you forgive me. I have this problem:
>
> I am trying to install zope3 /ztfy webapp, and I face quickly a
> problem by running "python bootstrap.py" after application setup.
> Here the problem:
>
> README.txt bootstrap.py buildout.cfg debug.ini deploy.ini etc
> extends-cache setup.py src var
> tamer@tux /storage/PyProjects/ztfyAPP $ python bootstrap.py
> Traceback (most recent call last):
> File "bootstrap.py", line 111, in <module>
> ws.find(pkg_resources.Requirement.parse(requirement)).location
> AttributeError: 'NoneType' object has no attribute 'location'
>
> This problem appears if I try to setup bluebream or a ztfy project
> and I am not getting smart. what could it be?!
>
> I already spoke with somebody who had the same problem. He installed
> "zc.builout" globally, and it was solved for him but not me.
>
> My problem still exist even after installing through easy_install
> zc.buildout globally.
>
> Any ideas what it could be?!
>
> For any help I would kindly thank you


I don't think that this problem is strictly related to ZTFY packages.

Which Python version do you use ? On what operating system ??
I'm the creator and maintainer of all ZTFY packages, which are actually
only compatible with Python 2.6 and 2.7.

Regards,
Thierry

Tamer Higazi

unread,
Jul 19, 2013, 7:09:50 PM7/19/13
to Zope 3 Mailinglist
Hi Thierry!

I believe also that it is not related to ztfy packages, because the same
result is being displayed with bluebream as well.

I am using Python 2.7.5 on Gentoo Linux 64 Bit.



Regards



Tamer

Thierry Florac

unread,
Jul 19, 2013, 7:19:55 PM7/19/13
to Tamer Higazi, Zope 3 Mailinglist

Hi,

Le Sat, 20 Jul 2013 01:09:50 +0200,
Tamer Higazi <th9...@googlemail.com> a écrit:

> I believe also that it is not related to ztfy packages, because the
> same result is being displayed with bluebream as well.
>
> I am using Python 2.7.5 on Gentoo Linux 64 Bit.

I already had a few installation problem with zc.buildout in release
2.x.
Can you try to install release 1.5.2 of zc.buildout ?
(easy_install zc.buildout==1.5.2)

Tamer Higazi

unread,
Jul 19, 2013, 7:36:34 PM7/19/13
to Zope 3 Mailinglist
Same result as before.

I tried it globally as well as in a virtualenv



Tamer

Christopher Lozinski

unread,
Jul 19, 2013, 9:56:33 PM7/19/13
to zope3...@zope.org
First thanks Thierry for the great support.

>Can you try to install release 1.5.2 of zc.buildout ?
>(easy_install zc.buildout==1.5.2)


I deleted all my zc.buildouts, and easy installed it as suggested, and then tried to install ztfy.webapp.

But the whole thing still does not work.

I was wondering how could it work last time, but not this time, and what your suggestion tells me, is that the problem is not that ztfy changed, the problem is that the
tools which we use to install ztfy have changed. So time to figure out what those tools do.

I find the best way to understand all this stuff is to document it, so I went ahead and upgraded the ztfy installation documentation.

http://wiki.ztfy.org/InstallationInstructions

I still do not know what the problem is, but I am making progress on understanding all of this stuff.

It is so nice to have you and Tamer also working on this. Thanks.

Regards
Chris

Thierry Florac

unread,
Jul 20, 2013, 2:50:17 AM7/20/13
to zope3...@zope.org

Could you give me your versions of setuptools, distribute and
zc.buildout ?

Thierry


Le Sat, 20 Jul 2013 01:36:34 +0200,
Tamer Higazi <th9...@googlemail.com> a écrit:

> Same result as before.
>
> I tried it globally as well as in a virtualenv
>
>
>
> Tamer
>
>
> On 07/20/13 01:19, Thierry Florac wrote:
> >
> > Hi,
> >
> > Le Sat, 20 Jul 2013 01:09:50 +0200,
> > Tamer Higazi <th9...@googlemail.com> a écrit:
> >
> >> I believe also that it is not related to ztfy packages, because the
> >> same result is being displayed with bluebream as well.
> >>
> >> I am using Python 2.7.5 on Gentoo Linux 64 Bit.
> >
> > I already had a few installation problem with zc.buildout in release
> > 2.x.
> > Can you try to install release 1.5.2 of zc.buildout ?
> > (easy_install zc.buildout==1.5.2)

Thierry Florac

unread,
Jul 20, 2013, 3:01:20 AM7/20/13
to Tamer Higazi, Zope 3 Mailinglist

Hi,

I've tried to create a new ztfy.webapp site from a fresh virtual
environment and didn't had any "real" problem.
I've tried using several environments (based on setuptools or
distribute) always with good results.
The only thing I had to do was to upgrade my setuptools package
("easy_install -U setuptools" or "pip install -U setuptools").

I work with an up-to-date Debian "sid" operating system (unstable,
amd64).

Regards,
Thierry


Le Sat, 20 Jul 2013 01:36:34 +0200,

Christopher Lozinski

unread,
Jul 20, 2013, 3:04:26 PM7/20/13
to zope3...@zope.org
On 7/20/13 1:50 AM, Thierry Florac wrote:
> Could you give me your versions of setuptools, distribute and
> zc.buildout ?
>
> Thierry

Python 2.7.3

ls /usr/local/lib/python2.7/site-packages/

Paste-1.7.5.1-py2.7.egg
PasteDeploy-1.5.0-py2.7.egg
setuptools-0.7.8-py2.7.egg
PasteScript-1.7.5-py2.7.egg
zc.buildout-2.2.0-py2.7.egg
ztfy.webapp-1.1.4-py2.7.egg

Anyhow your point is well taken. The problem is not with ztfy, the
problem is that some of the installation tools changed.

So I took a quick look on pypi.

https://pypi.python.org/pypi/zc.buildout/2.2.0
Buildout just got updated july 5th

Setup tools got updated on the 18th of July.

I first had this problem on July 15th, Tamer on July 16th, so we thought
that buildout had changed.

My guess is that python bootstrap.py downloads the newest version of
buildout, which is what breaks.

I told this to Tamer, he immediately started reading the source code,
and pointed out the options. One option was to
use setuptools rather than distribute. We tried that and it worked. So
here is the fix.

python bootstrap.py --setuptools

And that does the needful happily for Tamer and myself.

The larger point is that we have multiple versions of things.
Buildout.cfg manages all of that correctly, but bootstrap.py just grabs
the newest
version of buildout, and so caused trouble.

It was a very weird bug, where something that was working one week, was
not working the next week.

Maybe I should report that as a bug on zope-dev

I also want to say that it is a huge pleasure working with Thierry and
Tamer. Thierry pointed us in the right direction, at a high level I
figured out what the problem was, Tamer got into the details of the code
to find out the options. Much more fun than working alone.

Chris
Zopache.com
Reply all
Reply to author
Forward
0 new messages