Edgewall Software

Opened 15 years ago

Closed 15 years ago

#4847 closed defect (worksforme)

Initenv on cygwin uses wrong

Reported by: Tim Hatch Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/console Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:


Reported in person at the sprint.

Using Bash in cygwin (just installed). Python 2.5 for Windows. Followed directions in TracOnWindows for Python 2.5

Specified initenv using forward slashes, os.mkdir in env.py:create fails (tries to use Windows backslashes).

I don't know if this is reproducible because I don't run Windows.

Attachments (0)

Change History (3)

comment:1 by Christian Boos, 15 years ago

Are you sure it's the current python.exe that get used? (i.e. not the cygwin one)

I just tried, also at the cygwin Bash prompt:

$ PYTHONPATH="C:/Workspace/src/trac/Genshi/0.3.6;." \
  PATH=/C/Program\ Files/PostgreSQL/8.1/bin/:$PATH \
  python trac/admin/console.py C:/Workspace/local/trac/test4847 initenv

and it worked:

Creating and Initializing Project
 Installing default wiki pages
 C:\Workspace\src\trac\upstream-trunk\trac\wiki\default-pages\CamelCase => CamelCase
 C:\Workspace\src\trac\upstream-trunk\trac\wiki\default-pages\checkwiki.py => checkwiki.py

(ok, that was with 2.4, not 2.5)

comment:2 by Tim Hatch, 15 years ago

Further information, it works fine when you specify the full path, but ~/path triggers the issue.

comment:3 by Christian Boos, 15 years ago

Resolution: worksforme
Status: newclosed

~/path should not be used, as it expands to /C/... something, i.e. a cygwin path, which of course Python has not idea about (unless it would be the Cygwin python.exe but that has never been tested AFAIK ;-) ).

If you absolutely want to use a path relative to ~, use e.g. $(cygpath -m ~/path).

Modify Ticket

Change Properties
Set your email in Preferences
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.