Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Tickets

[The Trac Project] #3834: "tracd" and "trac-admin" commands do not work under windows.

 

 

Trac tickets RSS feed   Index | Next | Previous | View Threaded


noreply at edgewall

Oct 1, 2006, 9:39 AM

Post #1 of 3 (983 views)
Permalink
[The Trac Project] #3834: "tracd" and "trac-admin" commands do not work under windows.

#3834: "tracd" and "trac-admin" commands do not work under windows.
---------------------------------+------------------------------------------
Reporter: ilias [at] lazaridis | Owner: daniel
Type: defect | Status: new
Priority: normal | Milestone:
Component: trac-admin | Version: 0.10
Severity: normal | Keywords:
---------------------------------+------------------------------------------
calling "tracd" or "trac-admin" within a windows command window does not
work.

A temporary workaround for this is:

{{{
cd %you-python-dir%/Scripts/
copy tracd tracd.py
copy tracadmin trac-admin.py
}}}

create a file "tracd.bat" with content
{{{
call tracd.py %1 %2 %3 %4 %5 %6 %7 %8 %9
}}}

create a file "trac-admin.bat" with content
{{{
call trac-admin.py %1 %2 %3 %4 %5 %6 %7 %8 %9
}}}

you can now call trac-admin / tracd directly on the command-line.

--
Ticket URL: <http://trac.edgewall.org/ticket/3834>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Oct 1, 2006, 7:53 PM

Post #2 of 3 (932 views)
Permalink
Re: [The Trac Project] #3834: "tracd" and "trac-admin" commands do not work under windows. [In reply to]

#3834: "tracd" and "trac-admin" commands do not work under windows.
---------------------------------+------------------------------------------
Reporter: ilias [at] lazaridis | Owner: daniel
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: trac-admin | Version: 0.10
Severity: normal | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Changes (by mgood):

* milestone: => 0.11

Comment:

It's not necessary to rename the files to add the .py extension, since you
can simply make a batch file like:
{{{
python tracd ...
}}}

However, this can be resolved more cleanly once we switch to setuptools
which nicely handles installing executable scripts. On Windows it creates
a .exe wrapper to launch the script to make sure it works nicely when
multiple versions of Python are installed.

--
Ticket URL: <http://trac.edgewall.org/ticket/3834#comment:1>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---


noreply at edgewall

Oct 4, 2006, 4:06 PM

Post #3 of 3 (918 views)
Permalink
Re: [The Trac Project] #3834: "tracd" and "trac-admin" commands do not work under windows. [In reply to]

#3834: "tracd" and "trac-admin" commands do not work under windows.
---------------------------------+------------------------------------------
Reporter: ilias [at] lazaridis | Owner: daniel
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: trac-admin | Version: 0.10
Severity: normal | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Comment (by ilias [at] lazaridis):

of course setuptools will handle this much better.

the solution shown is just a workaround, which users can provide
themselves.

Renaming the *.py is just to avoid the need to state an absolute path.

you can use alternatively (without renaming the files):

{{{
call python C:\Python24\Scripts\tracd %1 %2 %3 %4 %5 %6 %7 %8 %9
}}}

and

{{{
call python C:\Python24\Scripts\trac-admin %1 %2 %3 %4 %5 %6 %7 %8 %9
}}}

assuming "C:\Python24" as python installation location

--
Ticket URL: <http://trac.edgewall.org/ticket/3834#comment:2>
The Trac Project <http://trac.edgewall.org/>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Tickets" group.
To post to this group, send email to trac-tickets [at] googlegroups
To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---

Trac tickets RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.