Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 14 years ago

#6171 closed defect (worksforme)

Pythonpath and trac.scripts.admin

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

Description

I get the "ImportError: No module named trac.scripts.admin" error. I looked at the previous tickets, and someone else had this error, and the solution was to set the pythonpath variable. I am trying this but to no success.

I am running tcsh, and have installed track in my home area, ~ME/trac. I am running trac-admin in the ~ME/trac/bin area, and I've tried setting the PYTHONPATH using

set PYTHONPATH=(~ME/trac)

but I still can't past this issue. Your help would be appreciated. Thanks.

Attachments (0)

Change History (9)

comment:1 by Emmanuel Blot, 17 years ago

We really need a 'how to report a bug' page…

Please specify which version of Trac you're using.

comment:2 by anonymous, 17 years ago

I am using trac-0.10.4.

in reply to:  2 comment:3 by Emmanuel Blot, 17 years ago

Version: 0.10.4

Replying to anonymous:

I am using trac-0.10.4.

See the dedicated field Version in the ticket page. Thanks.

comment:4 by anonymous, 17 years ago

Funny! Thanks.

I'll put in another ticket regarding the very hard to use drop downs with labels.

I'm just kidding, of course. Thanks for putting up with us idiots.

comment:5 by hyuga <hyugaricdeau@…>, 17 years ago

Regardless, I'd say this is an installation issue…

comment:6 by anonymous, 17 years ago

Resolution: fixed
Status: newclosed

In case it helps others in their attempts to install:

I couldn't get things to work because of my default shell environment, i.e., because I am using tcsh, I could not get python (trac-admin) to recognize the PYTHONPATH.

So, if you installed trac locally because you did not have admin rights to install in /usr area, you need to set the PYTHONPATH to your trac site-packages location (EXPORT PYTHONPATH=/path/site-packages), and retry trac-admin from the bash shell prompt.

comment:7 by Emmanuel Blot, 17 years ago

Resolution: fixed
Status: closedreopened

comment:8 by Emmanuel Blot, 17 years ago

Resolution: worksforme
Status: reopenedclosed

comment:9 by lkraav <leho@…>, 14 years ago

ran into this in my 0.10 virtualenv today for testing TracForgePlugin. exporting pythonpath also worked here. why doesn't virtualenv do this automagically..?

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.