Edgewall Software

Ticket #5396 (closed defect: invalid)

Opened 20 months ago

Last modified 14 months ago

trac-admin fails on new trac upgrade

Reported by: leemobile@… Owned by: cmlenz
Priority: normal Milestone:
Component: admin/console Version: 0.10.4
Severity: major Keywords:
Cc:

Description

I'm trying to upgrade my trac 0.10.2 to 0.10.4.

I followed the instructions on the wiki for the upgrade.

I untarred the ball into /usr/lib/python/site-packages/trac I ran %python setup.py install Then when attempting to run trac admin: %trac-admin /home/trac upgrade

I get the following error: Command Failed: 'NoneType?' object has no attribute 'split'

Same thing happens when I try to run initenv with trac-admin

I'm running fedora core 4.

Attachments

Change History

  Changed 20 months ago by eblot

  • keywords needinfo added

It looks like some kind of duplicate of #3878.

What is your DB connection string?

  Changed 20 months ago by leemobile@…

Inside my trac.ini file: database = sqlite:db/trac.db

  Changed 20 months ago by eblot

Do you use a global trac.ini file?

follow-up: ↓ 5   Changed 20 months ago by anonymous

Global?

When I do a locate I can only find one trac.ini file in the project environment.

in reply to: ↑ 4   Changed 17 months ago by eblot

Replying to anonymous:

Global? When I do a locate I can only find one trac.ini file in the project environment.

You may have a global trac.ini that is used by all instances of your Trac projects.
See #3878 for a similar issue.

  Changed 17 months ago by eblot

See TracIni#Trac0.9and0.10 for info about global ini files.

follow-up: ↓ 8   Changed 15 months ago by anonymous

I have the same problem upgrading form 0.9.2 to 0.10.4 I only have a local trac.ini I even tried to insert a small trac.ini in /usr/share/trac/conf/ with database = sqlite:db/trac.db but this also did not help How can I keep my environment and still get the upgrade working?

in reply to: ↑ 7   Changed 15 months ago by anonymous

Replying to anonymous: Solved it!

My problem was, that I untared trac in the directory usr/lib/python/site-packages/trac so that the trac-admin was probably confused by having the source files .py next to the compiled .pyc No everything works fine for me!

  Changed 14 months ago by osimons <simon-code@…>

  • keywords needinfo removed
  • status changed from new to closed
  • resolution set to invalid

As far as I can see, this was not a Trac issue - but instead a setup issue that has since been resolved.

Closing.

Add/Change #5396 (trac-admin fails on new trac upgrade)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cmlenz. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.