Opened 18 years ago
Closed 18 years ago
#3834 closed defect (fixed)
"tracd" and "trac-admin" commands do not work under windows
Reported by: | 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 , 18 years ago
Milestone: | → 0.11 |
---|
comment:2 by , 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
follow-up: 4 comment:3 by , 18 years ago
Keywords: | setuptools added |
---|---|
Owner: | changed from | to
follow-up: 5 comment:4 by , 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.
comment:5 by , 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 , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
fixed with setuptools-merge, see [4819]
follow-up: 8 comment:7 by , 18 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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?
comment:8 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
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.
It's not necessary to rename the files to add the .py extension, since you can simply make a batch file like:
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.