Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

#3834 closed defect (fixed)

"tracd" and "trac-admin" commands do not work under windows

Reported by: ilias@… Owned by: Christopher Lenz
Priority: normal Milestone: 0.11
Component: admin/console Version: 0.10
Severity: normal Keywords: setuptools
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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.

Attachments (0)

Change History (8)

comment:1 by Matthew Good, 18 years ago

Milestone: 0.11

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.

comment:2 by ilias@…, 18 years ago

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

comment:3 by ilias@…, 18 years ago

Keywords: setuptools added
Owner: changed from daniel to Christopher Lenz

in reply to:  3 ; comment:4 by anonymous, 18 years ago

Replying to ilias@lazaridis.com: The Window install instructions imply there are existing files called tracd and tracd-admin that need to be renamed by adding a .py extention. But these files do not exist in my c:\Python24\tools\scripts directory. This is after running the trac-0.10.3-wininstall.py and trac-o.10.3-win32.exe.

Am I suppose to create empty files tracd.py and trac-admin.py? Again the instructions imply they should exist.

in reply to:  4 comment:5 by ilias@…, 18 years ago

Replying to anonymous:

not exist in my c:\Python24\tools\scripts directory. This is after running the

They should be located within "c:\Python24\Scripts" directory. Search for "tracd" if you are not sure.

comment:6 by ilias@…, 18 years ago

Resolution: fixed
Status: newclosed

fixed with setuptools-merge, see [4819]

comment:7 by anonymous, 17 years ago

Resolution: fixed
Status: closedreopened
Summary: "tracd" and "trac-admin" commands do not work under windows."tracd" and "trac-admin" files don't exist in python24 on windows.

I have searched everywhere and these 2 files simply don't exist anywhere on my computer after installing Python 2.4.3 . . . this is frustrating and confusing. . . where do I look to find them or how do I get around this?

in reply to:  7 comment:8 by Matthew Good, 17 years ago

Resolution: fixed
Status: reopenedclosed
Summary: "tracd" and "trac-admin" files don't exist in python24 on windows."tracd" and "trac-admin" commands do not work under windows

Replying to anonymous:

I have searched everywhere and these 2 files simply don't exist anywhere on my computer after installing Python 2.4.3 . . . this is frustrating and confusing. . . where do I look to find them or how do I get around this?

That's not the issue described in this ticket, so I'm re-closing the ticket. Check on the MailingList or IrcChannel and someone can help you locate the files.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.