getPaid buildout [Errno 2] The system cannot find the file specified

22 views
Skip to first unread message

Taun

unread,
Nov 19, 2007, 9:41:10 PM11/19/07
to getpaid-dev
I have thrown in the independent towel.

I am trying to get a development version of Plone 2.5.x with GetPaid
running on my laptop.

Using Python2.4.3 with win32 extensions.

I followed the Plone buildout prerequisites instructions here
http://plone.org/documentation/tutorial/buildout/prerequisites and
then the getPaid instructions at http://code.google.com/p/getpaid/wiki/DevGettingStarted.

GetPaid buildout from https://getpaid.googlecode.com/svn/trunk/getpaid.buildout

The buildout.exe execution never gets past the products-plone part.
The error is:
--------------------------------------
Installing products-plone.
products-plone: DEST=C:\tools\Products\BuildOutLinks\getpaid/parts/
plone-2.5.4
products-plone: REMOVING dir C:\tools\Products\BuildOutLinks\getpaid/
parts/plone
-2.5.4
While:
Installing products-plone.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:

WindowsError:
[Errno 2] The system cannot find the file specified
---------------------------------------
I used the commandline svn with Subversion command-line client 1.4.2
All of the externals appear to have been fetched.
The Plone tar is in the downloads directory.
A plone-2.5.4 directory is created.

I have checked Google, wiki and this group for hints to no avail.

In addition, the md5sum in the buildout doesn't match for the plone
download. Perhaps because this is on a windows platform? I had to
manually calculate a new md5 sum based on the downloaded file. To add
insult to injury, the script requires md5sum but google code gives
sha1.

Any help greatly appreciated. I have been at it for two days now.


Thanks
taun

Reed O'Brien

unread,
Nov 20, 2007, 3:10:27 AM11/20/07
to getpa...@googlegroups.com
On Nov 19, 2007, at 9:41 PM, Taun wrote:

>
> I have thrown in the independent towel.
>
> I am trying to get a development version of Plone 2.5.x with GetPaid
> running on my laptop.
>
> Using Python2.4.3 with win32 extensions.
>
> I followed the Plone buildout prerequisites instructions here
> http://plone.org/documentation/tutorial/buildout/prerequisites and
> then the getPaid instructions at http://code.google.com/p/getpaid/
> wiki/DevGettingStarted.
>
> GetPaid buildout from https://getpaid.googlecode.com/svn/trunk/
> getpaid.buildout
>
> The buildout.exe execution never gets past the products-plone part.
> The error is:
> --------------------------------------
> Installing products-plone.
> products-plone: DEST=C:\tools\Products\BuildOutLinks\getpaid/parts/
> plone-2.5.4

Windows doesn't support forward slashes as file separators does it?
Perhaps some paths are hard coded instead of using os.sep or
os.path.join... wait os.path.join doesn't appear to use os.sep
itself, maybe that is the problem. Then again windows may load
another module (instead of posixpath) to do joins. I do not have
windows to test on, fortunately.

>>> os.path.join??
Type: function
Base Class: <type 'function'>
String Form: <function join at 0x54470>
Namespace: Interactive
File: /Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/posixpath.py
Definition: os.path.join(a, *p)
Source:
def join(a, *p):
"""Join two or more pathname components, inserting '/' as needed"""
path = a
for b in p:
if b.startswith('/'):
path = b
elif path == '' or path.endswith('/'):
path += b
else:
path += '/' + b
return path

Maurits van Rees

unread,
Nov 20, 2007, 4:47:40 AM11/20/07
to getpa...@googlegroups.com
On Mon, Nov 19, 2007 at 06:41:10PM -0800, Taun wrote:
> The buildout.exe execution never gets past the products-plone part.
> The error is:
> --------------------------------------
> Installing products-plone.
> products-plone: DEST=C:\tools\Products\BuildOutLinks\getpaid/parts/
> plone-2.5.4
> products-plone: REMOVING dir C:\tools\Products\BuildOutLinks\getpaid/
> parts/plone
> -2.5.4
> While:
> Installing products-plone.
>
>
> An internal error occured due to a bug in either zc.buildout or in a
> recipe being used:

Those paths should not look like that. This seems a bug in the recipe
that handles products-plone. That is inquant.recipe.download, which
itself is a wrapper around gocept.download. If you know your way
around python you could try to edit

eggs/gocept.download-0.9.3-py2.4.egg/gocept/download/__init__.py

Well, replace the slashes in that path by backslashes. :)

Whether you can fix it that way or not, please report this to gocept,
see http://gocept.com

(Or report it to inquant, but their recipe does not seem to do
anything with paths itself.)

--
Maurits van Rees | http://maurits.vanrees.org/ [NL]
Work | http://zestsoftware.nl/
"I am trapped in a Klein Bottle and can't get in."

Christopher Johnson

unread,
Nov 20, 2007, 1:15:43 PM11/20/07
to getpa...@googlegroups.com
Does this mean that the tarballs generated from the buildout code (via
nightly) will not run correctly on Windows also?

I just heard word of windows woes...not sure if anyone is running
buildout or the tarballs successfully on a windows box??

-chris

--
Cofounder and CEO
ifPeople - Innovation for People
www.ifpeople.net
t: 678-608-3408
130 Boulevard NE, #6
Atlanta, GA 30312

Fabio Corneti

unread,
Nov 20, 2007, 1:43:17 PM11/20/07
to getpa...@googlegroups.com
I currently use the plone.recipe.plone25install recipe on Windows in
other projects without problems, maybe it could help to
solve the issue described.

For Plone 2.5.4, the buildout section would look like this:

[plone]
recipe = plone.recipe.plone25install
url =
http://plone.googlecode.com/files/Plone-2.5.4-final.tar.gz

Best,
Fabio Corneti
in...@corneti.com

Maurits van Rees

unread,
Nov 20, 2007, 2:09:30 PM11/20/07
to getpa...@googlegroups.com
On Tue, Nov 20, 2007 at 07:43:17PM +0100, Fabio Corneti wrote:
> I currently use the plone.recipe.plone25install recipe on Windows in
> other projects without problems, maybe it could help to
> solve the issue described.
>
> For Plone 2.5.4, the buildout section would look like this:
>
> [plone]
> recipe = plone.recipe.plone25install
> url =
> http://plone.googlecode.com/files/Plone-2.5.4-final.tar.gz


That looks like it could work (though I have not done much with
buildout on Plone 2.5). The products-plone part was changed in
revision 788 by Kapil. Part of the changeset:

[products-plone]
-recipe = plone.recipe.distros
-urls = http://plone.googlecode.com/files/Plone-2.5.3-final.tar.gz
+recipe = inquant.recipe.download
+url = http://plone.googlecode.com/files/Plone-2.5.3-final.tar.gz
+destination = ${buildout:directory}/parts/plone-2.5.3
+md5sum = 36117b0757982d66d445b6c6b9df0e25
+clean-destination = true

Looks like the inquant recipe has more options, which may have been a
reason. But when this fails on Windows that is a definite downside.
It looks like it should be fixable in the original gocept.download
recipe, but I have no Windows.

Kapil, do you mind using the plone.recipe.plone25install recipe
instead, like Fabio wrote?


For the record, in the getpaid buildout for Plone 3 at
http://getpaid.googlecode.com/svn/trunk/getpaid-30.buildout
this is what I am using:

[plone]
recipe = plone.recipe.plone>=3.0,<3.1dev

Kapil Thangavelu

unread,
Nov 20, 2007, 2:14:43 PM11/20/07
to getpa...@googlegroups.com

that sounds good, i was fond of the md5 checksum for sanity checking
since we're dealing with money.. but loosing a platform is more
problematic... probably should switch to the productdistros recipe as
well.

also on packaging front end, i'd like to note that the authorize.net
provider just got infinitely easier to install since m2crypto is no
longer a dependency, any python with ssl support will satisfy the
dependency.

and fwiw, i'm now using plone 3.0 for testing and development.

cheers,

kapil

Barry Page

unread,
Nov 20, 2007, 3:49:35 PM11/20/07
to getpa...@googlegroups.com
I've been unable to get recent tarballs running on Windows/ Plone 2.5.4 (even the default Plone page errors). Seems to be a problem with five rather than getpaid, looking at the install logs. Unfortunately I don't have access to that machine at present to give you debugs.
 
Regards,
Barry Page

Taun

unread,
Nov 20, 2007, 5:07:33 PM11/20/07
to getpaid-dev
Thanks for all the input so far.

I noticed the paths and tried changing them before sending the initial
post. I had also tried to replace the inquant recipe with a standard
plone recipe but ran into other problems due to my lack of familiarity
with buildout syntax and procedures.

The current plan of attack is to get a basic plone25 buildout working
using the paster template on Windows then try and add the GetPaid
buildout components to the base plone25 buildout.cfg. I notice there
are lots of interesting issues around Five. Hopefully I can get past
them without too much additional time spent.

One related note to reiterate is the md5 in the GetPaid (plone25)
buildout seems to be wrong when run on the Windows platform. It seems
the md5 in the buildout should be optional but there is a 'missing
md5' error if it is left off. I found the function in the recipe used
to calc the md5 for comparison and ran it on the file manually just to
get past that point. Note this shows the recipe code is able to open
the plone tar despite the path looking like a mixture of unix/windows.
My point is, the problems with the buildout on the Windows platform go
beyond just the path which is why I am now trying the approach
outlined above.

Thanks
Taun

Yes, I am stuck with Plone25 and Windows for the development platform.
On Nov 20, 3:49 pm, Barry Page <barry_p...@yahoo.co.nz> wrote:
> I've been unable to get recent tarballs running on Windows/ Plone 2.5.4 (even the default Plone page errors). Seems to be a problem with five rather than getpaid, looking at the install logs. Unfortunately I don't have access to that machine at present to give you debugs.
>
> Regards,
> Barry Page
>
> ----- Original Message ----
> From: Christopher Johnson <cjj.ifpeo...@gmail.com>
> To: getpa...@googlegroups.com
> Sent: Wednesday, 21 November, 2007 7:15:43 AM
> Subject: Re: getPaid buildout [Errno 2] The system cannot find the file specified
>
> Does this mean that the tarballs generated from the buildout code (via
> nightly) will not run correctly on Windows also?
>
> I just heard word of windows woes...not sure if anyone is running
> buildout or the tarballs successfully on a windows box??
>
> -chris
>
> On Nov 20, 2007 4:47 AM, Maurits van Rees <maurits.vanr...@gmail.com>
> > seehttp://gocept.com

Taun

unread,
Nov 20, 2007, 5:41:04 PM11/20/07
to getpaid-dev
Thanks!
I decided to give the base GetPaid buildout another chance using
Fabio's recommended plone recipe.

A development Plone/GetPaid is now working on my test platform. Now to
learn GetPaid.

-[products-plone]
-recipe = inquant.recipe.download
-url = http://plone.googlecode.com/files/Plone-2.5.4-2.tar.gz
-destination = ${buildout:directory}/parts/plone-2.5.4
-md5sum = a05f4411ce9f39e9b09c4aa14097caf0
-clean-destination = true
+[products-plone]
+recipe = plone.recipe.plone25install
+url = http://plone.googlecode.com/files/Plone-2.5.4-final.tar.gz

[five]
recipe = plone.recipe.distros
@@ -100,7 +97,7 @@
products =
${buildout:directory}/develop-products
${buildout:directory}/develop-debug
- ${buildout:directory}/parts/plone-2.5.4
+ ${buildout:directory}/parts/products-plone
${buildout:directory}/parts/test-recorder
${buildout:directory}/parts/five

Taun

On Nov 20, 1:43 pm, Fabio Corneti <i...@corneti.com> wrote:
> I currently use the plone.recipe.plone25install recipe on Windows in
> other projects without problems, maybe it could help to
> solve the issue described.
>
> For Plone 2.5.4, the buildout section would look like this:
>
> [plone]
> recipe = plone.recipe.plone25install
> url =
> http://plone.googlecode.com/files/Plone-2.5.4-final.tar.gz
>
> Best,
> Fabio Corneti
> i...@corneti.com
>
> On 20/nov/07, at 19:15, Christopher Johnson wrote:
>
>
>
> > Does this mean that the tarballs generated from the buildout code (via
> > nightly) will not run correctly on Windows also?
>
> > I just heard word of windows woes...not sure if anyone is running
> > buildout or the tarballs successfully on a windows box??
>
> > -chris
>
> > On Nov 20, 2007 4:47 AM, Maurits van Rees
> > <maurits.vanr...@gmail.com> wrote:
>
> >> On Mon, Nov 19, 2007 at 06:41:10PM -0800, Taun wrote:
> >>> The buildout.exe execution never gets past the products-plone part.
> >>> The error is:
> >>> --------------------------------------
> >>> Installing products-plone.
> >>> products-plone: DEST=C:\tools\Products\BuildOutLinks\getpaid/parts/
> >>> plone-2.5.4
> >>> products-plone: REMOVING dir C:\tools\Products\BuildOutLinks
> >>> \getpaid/
> >>> parts/plone
> >>> -2.5.4
> >>> While:
> >>> Installing products-plone.
>
> >>> An internal error occured due to a bug in either zc.buildout or in a
> >>> recipe being used:
>
> >> Those paths should not look like that. This seems a bug in the
> >> recipe
> >> that handles products-plone. That is inquant.recipe.download, which
> >> itself is a wrapper around gocept.download. If you know your way
> >> around python you could try to edit
>
> >> eggs/gocept.download-0.9.3-py2.4.egg/gocept/download/__init__.py
>
> >> Well, replace the slashes in that path by backslashes. :)
>
> >> Whether you can fix it that way or not, please report this to gocept,
> >> seehttp://gocept.com

Christopher Johnson

unread,
Nov 20, 2007, 6:28:26 PM11/20/07
to getpa...@googlegroups.com
Barry - I would be interested to know what versions of the tarballs or
if it is still happening. That was a symptom (all platforms) of the
five/Five changes that happened at the sprint in Naples. A few of the
tarballs that came out caused a five error...I removed those from the
downloads area but they were downloaded a couple dozen
times...hopefully is fixed in the recent ones.

-chris

--

Christopher Johnson

unread,
Nov 20, 2007, 6:53:31 PM11/20/07
to getpa...@googlegroups.com
Taun - this sounds like good news (I think :). Were you able to get
the new buildout working? If so, is this something we need to get
checked in?

I filed an issue for this here:
http://code.google.com/p/getpaid/issues/detail?id=145&q=milestone:M1
(re buildout not working on windows). hopefully we can see it through
completion.

Thanks for bringing this up and helping us find it! I guess less
Windows users out there than I thought since it didn't really come up
till now :)

-chris

Barry Page

unread,
Nov 20, 2007, 8:01:11 PM11/20/07
to getpa...@googlegroups.com
This was the Oct 31 'Spooky' release
 
Regards,
Barry Page
021 438 695

Information, news, discussions, polls and classifieds online at greenhithe.org.nz and coming soon to albanynz.com




----- Original Message ----
From: Christopher Johnson <cjj.if...@gmail.com>
To: getpa...@googlegroups.com
Sent: Wednesday, 21 November, 2007 12:28:26 PM
Subject: Re: getPaid buildout [Errno 2] The system cannot find the file specified


Barry - I would be interested to know what versions of the tarballs or
if it is still happening. That was a symptom (all platforms) of the
five/Five changes that happened at the sprint in Naples. A few of the
tarballs that came out caused a five error...I removed those from the
downloads area but they were downloaded a couple dozen
times...hopefully is fixed in the recent ones.

-chris

On Nov 20, 2007 3:49 PM, Barry Page <barry...@yahoo.co.nz> wrote:
>
> I've been unable to get recent tarballs running on Windows/ Plone 2.5.4
> (even the default Plone page errors). Seems to be a problem with five rather
> than getpaid, looking at the install logs. Unfortunately I don't have access
> to that machine at present to give you debugs.
>  Regards,
> Barry Page
>
>
>
> ----- Original Message ----
> From: Christopher Johnson <cjj.if...@gmail.com>
> To: getpa...@googlegroups.com
> Sent: Wednesday, 21 November, 2007 7:15:43 AM
> Subject: Re: getPaid buildout [Errno 2] The system cannot find the file
> specified
>
>
> Does this mean that the tarballs generated from the buildout code (via
> nightly) will not run correctly on Windows also?
>
> I just heard word of windows woes...not sure if anyone is running
> buildout or the tarballs successfully on a windows box??
>
> -chris
>
> On Nov 20, 2007 4:47 AM, Maurits van Rees <maurits...@gmail.com> wrote:
> >
> > On Mon, Nov 19, 2007 at 06:41:10PM -0800, Taun wrote:
> > > The buildout.exe execution never gets past the products-plone part.
> > > The error is:
> > > --------------------------------------
> > > Installing products-plone.
> > > products-plone: DEST=C:\tools\Products\BuildOutLinks\getpaid/parts/
> > > plone-2.5.4
> > > products-plone: REMOVING dir C:\tools\Products\BuildOutLinks\getpaid/
> > > parts/plone
> > > -2.5.4
> > > While:
> > >  Installing products-plone.
> > >
> > >
> > > An internal error occured due to a bug in either zc.buildout or in a
> > > recipe being used:
> >
> > Those paths should not look like that.  This seems a bug in the recipe
> > that handles products-plone.  That is inquant.recipe.download, which
> > itself is a wrapper around gocept.download.  If you know your way
> > around python you could try to edit
> >
> > eggs/gocept.download-0.9.3-py2.4.egg/gocept/download/__init__.py
> >
> > Well, replace the slashes in that path by backslashes. :)
> >
> > Whether you can fix it that way or not, please report this to gocept,

Taun

unread,
Nov 22, 2007, 1:21:52 AM11/22/07
to getpaid-dev
Chris, yes, the patch above seems to have fixed all of the problems I
was having.

I created a new folder with a fresh check out. Made the changes in
buildout.cfg to the plone parts as above and was able to have a
working instance of Zope, install a Plone site and install GetPaid. I
was not able to create a new PloneSite using the GetPaid profile but I
didn't really care since I was able to add GetPaid to a site instance.

Unfortunately, this removes the md5 code check but there seemed to be
two issues with the md5.
1) Where do you get it from? The Google code repository gives sha-1.
2) It seems platform dependent which is not good for a platform
independent buildout.

Taun

On Nov 20, 6:53 pm, "Christopher Johnson" <cjj.ifpeo...@gmail.com>
wrote:
> Taun - this sounds like good news (I think :). Were you able to get
> the new buildout working? If so, is this something we need to get
> checked in?
>
> I filed an issue for this here:http://code.google.com/p/getpaid/issues/detail?id=145&q=milestone:M1
> (re buildout not working on windows). hopefully we can see it through
> completion.
>
> Thanks for bringing this up and helping us find it! I guess less
> Windows users out there than I thought since it didn't really come up
> till now :)
>
> -chris
>
> On Nov 20, 2007 5:41 PM, Taun <tau...@gmail.com> wrote:
>
>
>
>
>
> > Thanks!
> > I decided to give the base GetPaid buildout another chance using
> > Fabio's recommended plone recipe.
>
> > A development Plone/GetPaid is now working on my test platform. Now to
> > learn GetPaid.
>
> > -[products-plone]
> > -recipe = inquant.recipe.download
> > -url =http://plone.googlecode.com/files/Plone-2.5.4-2.tar.gz
> > -destination = ${buildout:directory}/parts/plone-2.5.4
> > -md5sum = a05f4411ce9f39e9b09c4aa14097caf0
> > -clean-destination = true
> > +[products-plone]
> > +recipe = plone.recipe.plone25install
> > +url =http://plone.googlecode.com/files/Plone-2.5.4-final.tar.gz

Maurits van Rees

unread,
Nov 22, 2007, 4:39:03 AM11/22/07
to getpa...@googlegroups.com
On Wed, Nov 21, 2007 at 10:21:52PM -0800, Taun wrote:
> Chris, yes, the patch above seems to have fixed all of the problems I
> was having.
>
> I created a new folder with a fresh check out. Made the changes in
> buildout.cfg to the plone parts as above and was able to have a
> working instance of Zope, install a Plone site and install GetPaid. I
> was not able to create a new PloneSite using the GetPaid profile but I
> didn't really care since I was able to add GetPaid to a site instance.

Just as a note: specifying an extension profile during creation of a
Plone site is not recommended. It might work in some cases but it is
not supported. Ideally that option should probably not even be there.
This is not something that can be fixed in getpaid.

Christopher Johnson

unread,
Nov 25, 2007, 5:09:20 PM11/25/07
to getpa...@googlegroups.com
On Nov 22, 2007 4:39 AM, Maurits van Rees <maurits...@gmail.com> wrote:
>
> On Wed, Nov 21, 2007 at 10:21:52PM -0800, Taun wrote:
> > Chris, yes, the patch above seems to have fixed all of the problems I
> > was having.
> >
> > I created a new folder with a fresh check out. Made the changes in
> > buildout.cfg to the plone parts as above and was able to have a
> > working instance of Zope, install a Plone site and install GetPaid. I
> > was not able to create a new PloneSite using the GetPaid profile but I
> > didn't really care since I was able to add GetPaid to a site instance.
>
> Just as a note: specifying an extension profile during creation of a
> Plone site is not recommended. It might work in some cases but it is
> not supported. Ideally that option should probably not even be there.
> This is not something that can be fixed in getpaid.
>
Thanks for the clarification. Captured in FAQ:
http://plone.org/products/getpaid/documentation/faq/should-i-add-a-plone-site-with-the-getpaid-profile

-chris

> --
> Maurits van Rees | http://maurits.vanrees.org/ [NL]
> Work | http://zestsoftware.nl/
> "I am trapped in a Klein Bottle and can't get in."
>
>
> >
>

--

Reply all
Reply to author
Forward
0 new messages