Somehow, python egg caches do not work anymore since Trac 0.11, and now
I have crashing plugins. I am using Trac 0.11stable-r7581.

Since Trac 0.9 was installed, I had the following SetEnv option in my
Apache:

<Location /trac>
  SetHandler mod_python
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnvParentDir /srv/trac
  PythonOption TracUriRoot /trac
  SetEnv PYTHON_EGG_CACHE /var/python-egg-cache

  AuthType Basic
  AuthName "Trac_SMS"
  AuthUserFile /srv/sms-auth-file

  Require valid-user
</Location>

This is as per Trac documentation at
http://trac.edgewall.org/wiki/TracPlugins#SettingupthePluginCache

When Trac 0.11 came out, this setting was completely ignored. Now, it
wanted to write to ~www-data/.python-eggs. OK, so I tried a lot of
things to get it back to /var, but eventually I gave up. Whatever, so I
made sure that ~www-data had a properly set up home with proper
permissions so that the egg cache could live there.

Now, it seems that most eggs end up in ~www-data/.python-eggs, some of
them end up in /var/python-egg-cache, and some of them apparently want
to end up in /src/trac. When I do a search using tracsearchall, I get
the following error:

IOError: [Errno 2] No such file or directory:
'/srv/trac/.egg-cache/VERSION'

This used to work in earlier versions of Trac 0.11. Actually, I think
eggs pop up in var depending on the revision of Trac I use. I use the
SVN version and update sometimes, after reviewing checkins on
0.11-stable branch. I see the Python egg cache code get changed often
and in one case it actually broke my Trac entirely (but was fixed
later).

Can anyone tell me if I am using the proper way to set an egg cache
location and why does tracsearchall try to find eggs in /srv/trac???

Jason Winnebeck



Trac:   0.11stable-r7581
Python:         2.4.3 (#2, Jul 31 2008, 22:09:04) [GCC 4.0.3 (Ubuntu
4.0.3-1ubuntu5)]
setuptools:     0.6c8
SQLite:         3.2.8
pysqlite:       2.4.1
Genshi:         0.5.1dev-r881
mod_python:     < 3.2
Pygments:       0.10
Subversion:     1.3.1 (r19032)
jQuery: 1.2.6

File
"/usr/lib/python2.4/site-packages/Trac-0.11stable_r7581-py2.4.egg/trac/w
eb/main.py", line 432, in _dispatch_request
  dispatcher.dispatch(req)
File
"/usr/lib/python2.4/site-packages/Trac-0.11stable_r7581-py2.4.egg/trac/w
eb/main.py", line 204, in dispatch
  resp = chosen_handler.process_request(req)
File
"/usr/lib/python2.4/site-packages/Trac-0.11stable_r7581-py2.4.egg/trac/s
earch/web_ui.py", line 106, in process_request
  results += list(source.get_search_results(req, terms, filters))
File "build/bdist.linux-i686/egg/tracsearchall/searchall.py", line 62,
in get_search_resultsFile
"/usr/lib/python2.4/site-packages/Trac-0.11stable_r7581-py2.4.egg/trac/e
nv.py", line 579, in open_environment
  env = Environment(env_path)
File
"/usr/lib/python2.4/site-packages/Trac-0.11stable_r7581-py2.4.egg/trac/e
nv.py", line 197, in __init__
  self.verify()
File
"/usr/lib/python2.4/site-packages/Trac-0.11stable_r7581-py2.4.egg/trac/e
nv.py", line 256, in verify
  fd = open(os.path.join(self.path, 'VERSION'), 'r')

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to