Edgewall Software
Modify

Ticket #3834 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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

Reported by: ilias@… Owned by: cmlenz
Priority: normal Milestone: 0.11
Component: admin/console Version: 0.10
Severity: normal Keywords: setuptools
Cc:
Release Notes:
API 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

Change History

comment:1 Changed 5 years ago by mgood

  • Milestone set to 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 Changed 5 years ago by ilias@…

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 follow-up: Changed 5 years ago by ilias@…

  • Keywords setuptools added
  • Owner changed from daniel to cmlenz

comment:4 in reply to: ↑ 3 ; follow-up: Changed 5 years ago by anonymous

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.

comment:5 in reply to: ↑ 4 Changed 5 years ago by ilias@…

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 Changed 5 years ago by ilias@…

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

fixed with setuptools-merge, see [4819]

comment:7 follow-up: Changed 5 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened
  • Summary changed from "tracd" and "trac-admin" commands do not work under windows. to "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?

comment:8 in reply to: ↑ 7 Changed 5 years ago by mgood

  • Resolution set to fixed
  • Status changed from reopened to closed
  • Summary changed from "tracd" and "trac-admin" files don't exist in python24 on windows. to "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.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from cmlenz. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.