Error installing registration .5 into existing project: "The system cannot find the file specified"

1 view
Skip to first unread message

Mark Thomas

unread,
Jul 14, 2008, 10:47:00 PM7/14/08
to tg-registration
Hi everyone,

I've been running a turbogears project for some time and just recently
found out about registration. When I attempted to add registration 0.5
to my project, I get the error stated in the subject of this post. The
trace is included below. Interestingly, the last command to execute
("Copying registration.cfg to ../project_foo\project_foo\config
\registration.cfg") appears to complete successfully: the
registration.cfg file does appear in my yourcoolfried\config\
directory and is identical to the file in the registration
distribution.

Any thoughts very much appreciated.

I am running on Windows XP with Python 2.5 and Turbogears 1.0.4.4

Thanks!
Mark

>tg-admin update -t registration
Selected and implied templates:
turbogears#tgbase tg base template
registration#registration Provides a template for simple user
registraton and
verification.

Variables:
egg: project_foo
elixir: False
identity: sqlobject
package: project_foo
project: project_foo
sqlalchemy: False
sqlobject: True
sqlobjectversion: SQLObject>=0.8,<=0.10.0
Creating template tgbase
Recursing into +einame+.egg-info
Replace 444 bytes with 13 bytes (15/15 lines changed; 14 lines
removed)
Overwrite ../project_foo\project_foo.egg-info\PKG-INFO [y/n/d/B/?] n
Replace 25 bytes with 0 bytes (2/2 lines changed; 2 lines removed)
Overwrite ../project_foo\project_foo.egg-info\paster_plugins.txt [y/n/
d/B/
?] n
../project_foo\project_foo.egg-info\sqlobject.txt already exists
(same
content)
Recursing into +package+
../project_foo\project_foo\__init__.py already exists (same
content)
../project_foo\project_foo\release.py already exists (same
content)
Recursing into static
Recursing into css
Skipping file C:\Python25\lib\site-packages\turbogears-1.0.4.4-
py2.5.egg\turboge
ars\qstemplates\qsbase\+package+\static\css\empty_tmpl
Recursing into images
../project_foo\project_foo\static\images\favicon.ico already
exist
s (same content)
../project_foo\project_foo\static\images\tg_under_the_hood.png
alr
eady exists (same content)
../project_foo\project_foo\static\images
\under_the_hood_blue.png a
lready exists (same content)
Recursing into javascript
Skipping file C:\Python25\lib\site-packages\turbogears-1.0.4.4-
py2.5.egg\turboge
ars\qstemplates\qsbase\+package+\static\javascript\empty_tmpl
Recursing into templates
../project_foo\project_foo\templates\__init__.py already exists
(sam
e content)
Creating template registration
Recursing into +package+
Recursing into config
Copying registration.cfg to ../project_foo\project_foo\config
\regist
ration.cfg
Traceback (most recent call last):
File "C:\Python25\Scripts\tg-admin-script.py", line 8, in <module>
load_entry_point('TurboGears==1.0.4.4', 'console_scripts', 'tg-
admin')()
File "c:\python25\lib\site-packages\TurboGears-1.0.4.4-py2.5.egg
\turbogears\co
mmand\base.py", line 369, in main
command.run()
File "c:\python25\lib\site-packages\TurboGears-1.0.4.4-py2.5.egg
\turbogears\co
mmand\quickstart.py", line 374, in run
command.run(cmd_args)
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\c
ommand.py", line 213, in run
result = self.command()
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\c
reate_distro.py", line 125, in command
template, output_dir, vars)
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\c
reate_distro.py", line 167, in create_template
template.run(self, output_dir, vars)
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\t
emplates.py", line 57, in run
self.write_files(command, output_dir, vars)
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\t
emplates.py", line 126, in write_files
template_renderer=self.template_renderer)
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\c
opydir.py", line 94, in copy_dir
svn_add=svn_add, template_renderer=template_renderer)
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\c
opydir.py", line 94, in copy_dir
svn_add=svn_add, template_renderer=template_renderer)
File "c:\python25\lib\site-packages\PasteScript-1.6.2-py2.5.egg\paste
\script\c
opydir.py", line 140, in copy_dir
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
File "C:\Python25\lib\subprocess.py", line 593, in __init__
errread, errwrite)
File "C:\Python25\lib\subprocess.py", line 815, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Patrick Lewis

unread,
Jul 15, 2008, 7:35:40 AM7/15/08
to tg-registration
My only thought is to try

tg-admin update -t registration

again. Answer n to everything as before.

If you get the same (or similar) results, we may need to take this to
the paste mailing list, because I'm really not sure what is going on.

Mark Thomas

unread,
Jul 17, 2008, 6:06:52 PM7/17/08
to tg-registration
Hey Patrick,

First, thanks for your response. I was able to install cleanly by
checking out my code onto a linux box and running the update there.

My hunch is that this is an ugly Windows path-separator ugliness. If
you look at the output above, you'll notice several lines like the
following:
Copying <bar> to ../project_foo\project_foo\registration\<bar>

I suspect that leading forward slash to be the culprit as "cd ../
project_foo\project_foo" fails from a Windows command prompt. Being
unfamiliar with PasteScript and the internals of tg-admin, I'm unsure
of where this might be located in the code.

Hope this helps.
Mark
Reply all
Reply to author
Forward
0 new messages