Discussion:
[Zope3-Users] Installation problems with ztfy.webapp on fresh baked gentoo!
Tamer Higazi
2013-07-19 21:43:54 UTC
Permalink
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
***@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
Thierry Florac
2013-07-19 23:03:51 UTC
Permalink
Content preview: Hi, Le Fri, 19 Jul 2013 23:43:54 +0200, Tamer Higazi <***@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 > ***@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 [...]

Content analysis details: (-1.4 points, 4.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-0.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
Cc: Zope 3 Mailinglist <zope3-***@zope.org>
Subject: Re: [Zope3-Users] Installation problems with ztfy.webapp on fresh
baked gentoo!
X-BeenThere: zope3-***@zope.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Users of Zope 3 <zope3-users.zope.org>
List-Unsubscribe: <https://mail.zope.org/mailman/options/zope3-users>,
<mailto:zope3-users-***@zope.org?subject=unsubscribe>
List-Archive: <http://mail.zope.org/pipermail/zope3-users/>
List-Post: <mailto:zope3-***@zope.org>
List-Help: <mailto:zope3-users-***@zope.org?subject=help>
List-Subscribe: <https://mail.zope.org/mailman/listinfo/zope3-users>,
<mailto:zope3-users-***@zope.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Jul 2013 23:03:55 -0000


Hi,

Le Fri, 19 Jul 2013 23:43:54 +0200,
Hi peeople!
I sent by mistake this question to the zope2 Mailinglist, and I hope
I am trying to install zope3 /ztfy webapp, and I face quickly a
problem by running "python bootstrap.py" after application setup.
README.txt bootstrap.py buildout.cfg debug.ini deploy.ini etc
extends-cache setup.py src var
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
2013-07-19 23:09:50 UTC
Permalink
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
Post by Thierry Florac
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
Thierry Florac
2013-07-19 23:19:55 UTC
Permalink
Content preview: Hi, Le Sat, 20 Jul 2013 01:09:50 +0200, Tamer Higazi <***@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. [...]

Content analysis details: (-1.4 points, 4.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-0.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
Cc: Zope 3 Mailinglist <zope3-***@zope.org>
Subject: Re: [Zope3-Users] Installation problems with ztfy.webapp on fresh
baked gentoo!
X-BeenThere: zope3-***@zope.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Users of Zope 3 <zope3-users.zope.org>
List-Unsubscribe: <https://mail.zope.org/mailman/options/zope3-users>,
<mailto:zope3-users-***@zope.org?subject=unsubscribe>
List-Archive: <http://mail.zope.org/pipermail/zope3-users/>
List-Post: <mailto:zope3-***@zope.org>
List-Help: <mailto:zope3-users-***@zope.org?subject=help>
List-Subscribe: <https://mail.zope.org/mailman/listinfo/zope3-users>,
<mailto:zope3-users-***@zope.org?subject=subscribe>
X-List-Received-Date: Fri, 19 Jul 2013 23:19:57 -0000


Hi,

Le Sat, 20 Jul 2013 01:09:50 +0200,
Post by Tamer Higazi
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)


Regards,
Thierry
Tamer Higazi
2013-07-19 23:36:34 UTC
Permalink
Same result as before.

I tried it globally as well as in a virtualenv



Tamer
Post by Thierry Florac
Hi,
Le Sat, 20 Jul 2013 01:09:50 +0200,
Post by Tamer Higazi
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)
Regards,
Thierry
Christopher Lozinski
2013-07-20 01:56:33 UTC
Permalink
First thanks Thierry for the great support.
Post by Thierry Florac
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
2013-07-20 06:50:17 UTC
Permalink
Content preview: Could you give me your versions of setuptools, distribute
and zc.buildout ? Thierry Le Sat, 20 Jul 2013 01:36:34 +0200, Tamer Higazi
<***@googlemail.com> a écrit: [...]

Content analysis details: (-1.4 points, 4.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-0.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
Subject: Re: [Zope3-Users] Installation problems with ztfy.webapp on fresh
baked gentoo!
X-BeenThere: zope3-***@zope.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Users of Zope 3 <zope3-users.zope.org>
List-Unsubscribe: <https://mail.zope.org/mailman/options/zope3-users>,
<mailto:zope3-users-***@zope.org?subject=unsubscribe>
List-Archive: <http://mail.zope.org/pipermail/zope3-users/>
List-Post: <mailto:zope3-***@zope.org>
List-Help: <mailto:zope3-users-***@zope.org?subject=help>
List-Subscribe: <https://mail.zope.org/mailman/listinfo/zope3-users>,
<mailto:zope3-users-***@zope.org?subject=subscribe>
X-List-Received-Date: Sat, 20 Jul 2013 06:50:20 -0000


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

Thierry


Le Sat, 20 Jul 2013 01:36:34 +0200,
Post by Tamer Higazi
Same result as before.
I tried it globally as well as in a virtualenv
Tamer
Post by Thierry Florac
Hi,
Le Sat, 20 Jul 2013 01:09:50 +0200,
Post by Tamer Higazi
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)
Christopher Lozinski
2013-07-20 19:04:26 UTC
Permalink
Post by Thierry Florac
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

Thierry Florac
2013-07-20 07:01:20 UTC
Permalink
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,
Post by Tamer Higazi
Same result as before.
I tried it globally as well as in a virtualenv
Tamer
Post by Thierry Florac
Hi,
Le Sat, 20 Jul 2013 01:09:50 +0200,
Post by Tamer Higazi
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)
Regards,
Thierry
Loading...