Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4895 closed defect (fixed)

Cant load any webadmin modules

Reported by: jose.deleon@… Owned by: Christopher Lenz
Priority: normal Milestone:
Component: admin/web Version:
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

l keep on getting this same error for all the webadmin.* modules, any ideas?

Loading egg plugin webadmin.perm from /usr/local/share/trac/projects/plugins/TracWebAdmin-0.1.2dev-py2.5.egg
2007-03-05 15:17:56,418 Trac[loader] ERROR: Failed to load plugin webadmin.perm from /usr/local/share/trac/projects/plugins/TracWebAdmin-0.1.2dev-py2.5.egg
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "build/bdist.solaris-2.9-sun4u/egg/pkg_resources.py", line 1830, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named webadmin.perm

Attachments (0)

Change History (9)

comment:1 by Christian Boos, 17 years ago

Component: generalwebadmin
Description: modified (diff)
Keywords: needinfo added
Owner: changed from Jonas Borgström to Christopher Lenz

Which Trac version are you using? What version of the setuptools package are you using?

comment:2 by anonymous, 17 years ago

l am using version Trac 0.10 and setuptools 0.6c5, l downloaded all the source files for webadmin for the version of Trac l use from your sandbox

comment:3 by Christian Boos, 17 years ago

What's the content of the .egg (that's a zip file, simply unzip it)

comment:4 by anonymous, 17 years ago

l couldnt the .egg listed in the versions of webadmin you have in your page, the link pointed me to your sandbox for version 0.10.x latest from source:sandbox/webadmin. if you have a link to the .egg for this Trac version l will try to install it, l downloaded all the files from the Webadmin folder in the Sandbox, when l did the python setup.py build/install it had no errors.

comment:5 by anonymous, 17 years ago

I am having the same problem.

  • Ubuntu 6.06
  • setuptools-0.6c5-py2.4
  • Trac 0.10.3 (installed via svn co http://svn.edgewall.org/repos/trac/tags/trac-0.10.3/)
  • Webadmin = /usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2-py2.4.egg as installed via svn co http://svn.edgewall.com/repos/trac/sandbox/webadmin/ and python setup.py install
  • Apache2 config:
<Location /trac> #set up Trac handling      
     SetHandler mod_python    
     PythonHandler trac.web.modpython_frontend    
     PythonOption TracEnvParentDir /var/trac    
     PythonOption TracUriRoot /trac 
     SetEnv PYTHON_EGG_CACHE /var/www/.python-eggs  
 </Location>
 <Location "/trac/base/login">
   AuthType Basic
   AuthName "trac"
   AuthUserFile /var/trac/base/.htpasswd
   Require valid-user
 </Location>
  • Apache runs as www-data and I have given that user recursive ownership of the following directories
    • /var/svn/projects
    • /var/www/.python-eggs
    • /var/trac
    • /usr/share/trac
    • /usr/lib/python2.4/site-packages
  • Yes, webadmin.* = enabled is in the [components] section of trac.ini
  • All of the above config was done as root (sudo su -)
  • I login to the site as user admin, which has the TRAC_ADMIN permission setting for this project environment.

comment:6 by anonymous, 17 years ago

Well, I think I see the problem, if not the solution.

After running the python setup.py install, I try unzipping /usr/lib/python2.4/site-packages/TracWebAdmin-0.1.2-py2.4.egg … only 6 files are there, none are .py files.

But when I unzip the .egg from this link, I get 30+ files … including the .py modules.

comment:7 by anonymous, 17 years ago

Ignore my comment from 03/15/2007 06:54:33 PM above.

I discovered the real problem: downloading to a location outside the Trac environment, (like /tmp) then installing the plugin either with python setup.py install or easy_install, does not work. I discovered that I needed to download the module into the trac plugins directory. IE, things work fine if I:

cd /usr/share/trac/plugins
svn co http://svn.edgewall.com/repos/trac/sandbox/webadmin/
cd webadmin
python setup.py bdist_egg
cd dist
easy_install-2.4 --always-unzip TracWebAdmin-0.1.2dev_r4429-py2.4.egg

I did try using python setup.py install rather than making the egg and then using easy_install, but that didn't work out.

I have updated TracPlugins to reflect this.

comment:8 by anonymous, 17 years ago

Note the above works in a multi-project setup with mod_python; if you are using a single-trac, you may with to use your TracEnvironment instead.

comment:9 by sid, 17 years ago

Resolution: fixed
Status: newclosed

Sounds like you got it to work and updated the documentation to reflect what you needed to do. Closing.

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.