Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #668 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

Quickstart fails on Windows if created in an existing TortoiseSVN repository

Reported by: steven.james@… Owned by: anonymous
Priority: normal Milestone: 0.9a5
Component: TurboGears Version:
Severity: normal Keywords:


This may be related to #557.

The defect may actually be in Paste.

SVN version 961.

Quickstart uses "svn add" to keep svn up to date when it is used in a folder that contains a ".svn" folder. TortoiseSVN does create .svn folders but does not have a command-line svn command, so paste raises a "WindowsError?" exception, file not found, which is uncaught.

My recommendation is to ask the user if they want to use svn commands or add a quickstart option to that effect. A more complicated solution would be to check for the existence of TortoiseSVN or catch the exception and simply not try any further svn commands (and print the fact that this is occuring). If someone can second one of these options (or offer a different one) I can get to work on coding it.

The only thing that was completed at the point of the traceback was the creation of the project directory. The command that was attempted was "svn add

Enter project name: inout
Enter package name [inout]:
Selected and implied templates:
  TurboGears#turbogears  web framework

  package:  inout
  project:  inout
Creating template turbogears
  Creating .\inout/
Traceback (most recent call last):
  File "C:\Python24\Scripts\tg-admin-script.py", line 7, in ?
  File "c:\documents and settings\sjames\my documents\svn\turbogears\trunk\turbogears\command\base.py", line 273, in main
  File "c:\documents and settings\sjames\my documents\svn\turbogears\trunk\turbogears\command\quickstart.py", line 103, in run
  File "c:\python24\lib\site-packages\PasteScript-0.5-py2.4.egg\paste\script\command.py", line 205, in run
    result = self.command()
  File "c:\python24\lib\site-packages\PasteScript-0.5-py2.4.egg\paste\script\create_distro.py", line 98, in command
  File "c:\python24\lib\site-packages\PasteScript-0.5-py2.4.egg\paste\script\create_distro.py", line 125, in create_template
    template.run(self, output_dir, vars)
  File "c:\documents and settings\sjames\my documents\svn\turbogears\trunk\turbogears\command\quickstart.py", line 30, in run
    templates.Template.run(self, command, output_dirs, vars)
  File "c:\python24\lib\site-packages\PasteScript-0.5-py2.4.egg\paste\script\templates.py", line 47, in run
    self.write_files(command, output_dir, vars)
  File "c:\python24\lib\site-packages\PasteScript-0.5-py2.4.egg\paste\script\templates.py", line 104, in write_files
  File "c:\python24\lib\site-packages\pastescript-0.5-py2.4.egg\paste\script\copydir.py", line 28, in copy_dir
  File "c:\python24\lib\site-packages\pastescript-0.5-py2.4.egg\paste\script\copydir.py", line 196, in svn_makedirs
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "C:\Python24\lib\subprocess.py", line 542, in __init__
    errread, errwrite)
  File "C:\Python24\lib\subprocess.py", line 706, in _execute_child
WindowsError: [Errno 2] The system cannot find the file specified

Change History

comment:1 Changed 13 years ago by kevin

  • Milestone set to 0.9a5

#724 will fix this.

comment:2 Changed 13 years ago by godoy

  • Status changed from new to closed
  • Resolution set to fixed

I'm closing based on #724. If this isn't solved, please reopen this ticket.

Note: See TracTickets for help on using tickets.