Mailing List Archive

[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@lazaridis.com | 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@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
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@lazaridis.com | 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@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---
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@lazaridis.com | Owner: daniel
Type: defect | Status: new
Priority: normal | Milestone: 0.11
Component: trac-admin | Version: 0.10
Severity: normal | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Comment (by ilias@lazaridis.com):

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@googlegroups.com
To unsubscribe from this group, send email to trac-tickets-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.se/group/trac-tickets
-~----------~----~----~----~------~----~------~--~---