You are not logged in.

#1 2006-11-15 03:24:33

astribli
Member
Registered: 2006-11-14
Posts: 28

svn WebAdmin ?

Is the WebAdmin module installed for trac 0.10 ?
If not, can you please?

Offline

 

#2 2006-11-15 05:59:33

remi
Member
From: London
Registered: 2006-09-19
Posts: 741
Website

Re: svn WebAdmin ?

astribli wrote:

Is the WebAdmin module installed for trac 0.10 ?
If not, can you please?

It is not installed by default.
Since the Trac module is in $HOME/lib/python2.4 you can install the plugin on your own as described here: http://trac.edgewall.org/wiki/WebAdmin

Cheers,

Remi.


WebFaction - Smarter web hosting

Offline

 

#3 2007-03-01 08:49:33

dmc68
Member
Registered: 2007-02-20
Posts: 48

Re: svn WebAdmin ?

Here is what I get when i try to enable webadmin following the instructions from trac.



error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.4/site-packages/test-easy-install-2192.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.4/site-packages/


any ideas anyone?

Offline

 

#4 2007-03-01 09:47:27

remi
Member
From: London
Registered: 2006-09-19
Posts: 741
Website

Re: svn WebAdmin ?

dmc68 wrote:

Here is what I get when i try to enable webadmin following the instructions from trac.



error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python2.4/site-packages/test-easy-install-2192.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python2.4/site-packages/


any ideas anyone?

You can't install anything in this directory because you don't have root access.
You need to install your python2.4 modules in $HOME/lib/python2.4

Cheers,

Remi.


WebFaction - Smarter web hosting

Offline

 

#5 2007-03-01 10:01:28

dmc68
Member
Registered: 2007-02-20
Posts: 48

Re: svn WebAdmin ?

straight into the python2.4 root or into the trac folder under /python2.4 in the path you mentioned in your post?

Offline

 

#6 2007-03-01 10:03:23

remi
Member
From: London
Registered: 2006-09-19
Posts: 741
Website

Re: svn WebAdmin ?

dmc68 wrote:

straight into the python2.4 root or into the trac folder under /python2.4 in the path you mentioned in your post?

I think it should be in $HOME/lib/python2.4  itself (not in the trac folder underneath)

Cheers,

Remi.


WebFaction - Smarter web hosting

Offline

 

#7 2007-03-01 10:08:45

dmc68
Member
Registered: 2007-02-20
Posts: 48

Re: svn WebAdmin ?

oh boy, I can see right now I am really gonna screw this up lol.

Wish me luck

Offline

 

#8 2007-03-01 10:34:15

dmc68
Member
Registered: 2007-02-20
Posts: 48

Re: svn WebAdmin ?

ok remi, I get the same error as in my original post regardless of whether i try to install in either one of the below listed directories using either one of the commands listed below.

webapps/mytracinstall/plugins

lib/python2.4

using any of these install commands.

easy_install --always-unzip TracWebAdmin-0.1.2dev_r4240-py2.4.egg

python setup.py install

easy_install TracWebAdmin-0.1.2dev_r4240-py2.4.egg

python ez_setup.py

Any ideas?

thank you

Offline

 

#9 2007-03-01 11:10:06

remi
Member
From: London
Registered: 2006-09-19
Posts: 741
Website

Re: svn WebAdmin ?

dmc68 wrote:

ok remi, I get the same error as in my original post regardless of whether i try to install in either one of the below listed directories using either one of the commands listed below.

webapps/mytracinstall/plugins

lib/python2.4

using any of these install commands.

easy_install --always-unzip TracWebAdmin-0.1.2dev_r4240-py2.4.egg

python setup.py install

easy_install TracWebAdmin-0.1.2dev_r4240-py2.4.egg

python ez_setup.py

Any ideas?

thank you

Try easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin TracWebAdmin-0.1.2dev_r4240-py2.4.egg


Cheers,

Remi.


WebFaction - Smarter web hosting

Offline

 

#10 2007-03-01 11:53:59

dmc68
Member
Registered: 2007-02-20
Posts: 48

Re: svn WebAdmin ?

nope it is looking for a entry out at cheeseshop to try and install it remotely. I even entered the command in the python.24 directory.

Sorry for the basic questions man.


Searching for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Couldn't find index page for 'TracWebAdmin-0.1.2dev_r4240-py2.4.egg' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
No local packages or download links found for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
error: Could not find suitable distribution for Requirement.parse('TracWebAdmin-0.1.2dev-r4240-py2.4.egg')

Offline

 

#11 2007-03-01 13:05:20

remi
Member
From: London
Registered: 2006-09-19
Posts: 741
Website

Re: svn WebAdmin ?

dmc68 wrote:

nope it is looking for a entry out at cheeseshop to try and install it remotely. I even entered the command in the python.24 directory.

Sorry for the basic questions man.


Searching for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Reading http://cheeseshop.python.org/pypi/TracW … py2.4.egg/
Couldn't find index page for 'TracWebAdmin-0.1.2dev_r4240-py2.4.egg' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
No local packages or download links found for TracWebAdmin-0.1.2dev-r4240-py2.4.egg
error: Could not find suitable distribution for Requirement.parse('TracWebAdmin-0.1.2dev-r4240-py2.4.egg')

D'oh ... Of course, easy_install doesn't work with the egg ...
You can just do "python2.4 setup.py install --home=$HOME/lib/python2.4" from the directory where you have setup.py then.

Cheers,

Remi.


WebFaction - Smarter web hosting

Offline

 

#12 2007-03-01 13:24:46

dmc68
Member
Registered: 2007-02-20
Posts: 48

Re: svn WebAdmin ?

Checking .pth file support in /home2/dmc68/lib/python2.4/lib/python/
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 2] No such file or directory: '/home2/dmc68/lib/python2.4/lib/python/test-easy-install-9821.pth'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /home2/dmc68/lib/python2.4/lib/python/

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

Offline

 

#13 2007-03-01 15:09:58

dmc68
Member
Registered: 2007-02-20
Posts: 48

Re: svn WebAdmin ?

Ok, classic newb mistake on my part.

remember to follow the instructions on the trac plugin install page where it tell you to take off the .zip extension from the egg when installing.

After I did that I used the command remi provided me

easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin TracWebAdmin-0.1.2dev_r4240-py2.4.egg

and it works like a charm.

Thanx Remi

Dave

Offline

 

#14 2007-05-02 07:41:45

astribli
Member
Registered: 2006-11-14
Posts: 28

Re: svn WebAdmin ?

Ok, I am having similar problem.  here is what I am running and what is getting returend:

[ops@web4 python2.4]$ easy_install-2.4 --always-unzip --install-dir=$HOME2/ops/lib/python2.4 --script-dir=$HOME2/ops/webapps/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg
Traceback (most recent call last):
  File "/usr/local/bin/easy_install-2.4", line 5, in ?
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2499, in ?
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 599, in subscribe
    callback(dist)
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2499, in <lambda>
    add_activation_listener(lambda dist: dist.activate())
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2045, in activate
    self.insert_on(path)
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2141, in insert_on
    self.check_version_conflict()
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2180, in check_version_conflict
    for modname in self._get_metadata('top_level.txt'):
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 2039, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 1058, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 1055, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py", line 1113, in _get
    return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in /home2/ops/lib/python2.4/TracWebAdmin-0.1.2dev_r4240-py2.4.egg
[ops@web4 python2.4]$

Suggestions ???

Offline

 

#15 2007-05-02 09:28:42

IAIHMB
Member
From: Hudson, Florida.
Registered: 2006-09-19
Posts: 1362

Re: svn WebAdmin ?

I believe that you're missing a space before TracWebAdmin-0.1.2dev_r4240-py2.4.egg:

easy_install-2.4 --always-unzip --install-dir=$HOME2/ops/lib/python2.4 --script-dir=$HOME2/ops/webapps/trac/plugins/ TracWebAdmin-0.1.2dev_r4240-py2.4.egg


-David Sissitka

Offline

 

#16 2007-05-02 15:20:44

astribli
Member
Registered: 2006-11-14
Posts: 28

Re: svn WebAdmin ?

Thanks for the suggestion but I copy and pasted your exact sample syntax and it failed with the exact same response.

Offline

 

#17 2007-05-02 15:59:17

IAIHMB
Member
From: Hudson, Florida.
Registered: 2006-09-19
Posts: 1362

Re: svn WebAdmin ?

Sorry about that, I should have taken a closer look at the command. I'm not familiar with Trac but is there a reason that you're trying to install the module in $HOME/webapps/trac/plugins/? This will work:

easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4/ --script-dir=$HOME/bin/ $HOME/webapps/trac/plugins/TracWebAdmin-0.1.2dev_r4240-py2.4.egg

If it doesn't submit a support ticket and I'll take a look. smile

Last edited by IAIHMB (2007-05-02 15:59:33)


-David Sissitka

Offline

 

#18 2007-05-02 19:43:45

astribli
Member
Registered: 2006-11-14
Posts: 28

Re: svn WebAdmin ?

Because that is what the Trac documentation says.

I tried your command and get the same results.

When using ftp to my site, it shows Home2
Also, wouldn't the install directory be Home2/Ops/lib/python2.4, which is my directory whereas home/lib/python2.4 is not mine?

Offline

 

#19 2007-05-02 20:57:30

IAIHMB
Member
From: Hudson, Florida.
Registered: 2006-09-19
Posts: 1362

Re: svn WebAdmin ?

$HOME is a variable which is equivalent to /home2/ops/ so $HOME/lib/python2.4/ means /home2/ops/lib/python2.4/. smile


-David Sissitka

Offline

 

#20 2007-05-03 03:06:10

astribli
Member
Registered: 2006-11-14
Posts: 28

Re: svn WebAdmin ?

Here is how I got it to work (I think!):

1. easy_install wasn't installed.  Had to install it
2. had to change directory to $home/lib/python2.4
3. put the egg in $home/bin directory
4. run the following
easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin TracWebAdmin-0.1.2dev_r4240-py2.4.egg

Offline

 

#21 2007-08-13 21:57:04

danpopovici
Member
Registered: 2007-08-13
Posts: 1

Re: svn WebAdmin ?

for me the following command worked:

easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin http://svn.edgewall.com/repos/trac/sandbox/webadmin

I didn't need to do anything else, as easy_install is already installed.

Offline

 

#22 2007-08-30 09:17:58

mae
Member
Registered: 2006-10-14
Posts: 445

Re: svn WebAdmin ?

just an FYI, if you drop the egg files of trac plugins in it's plugings directory, of the top of my head, $HOME/webapps/trac/plugins/ , it will be enable by default by trac. as for how to get the egg.

- download the source (on your machine with the same python version of the server), you will probably need svn a co
- cd into it.
- python setup.py bdist_egg
- the egg file should be in a "dist" dir
- upload

Offline

 

#23 2008-02-13 15:52:31

JimSalmons
Member
Registered: 2008-02-13
Posts: 1

Re: svn WebAdmin ?

danpopovici wrote:

for me the following command worked:

easy_install-2.4 --always-unzip --install-dir=$HOME/lib/python2.4 --script-dir=$HOME/bin http://svn.edgewall.com/repos/trac/sandbox/webadmin

I didn't need to do anything else, as easy_install is already installed.

Thanks, Dan... Yes, it did work like a champ, fast AND easy. The only thing I needed to do beyond this was to add:

Code:

[components]
webadmin.* = enabled

lines to my trac.ini as this method installs the plugin globally rather than in the app's plugin directory. I then did a logon as a user with trac_admin permission and there it was, the Admin item in the menubar. No Apache restart is required (as per many Trac documentation instructions for plugin installation) because a default WebFaction Trac app runs in CGI mode rather than mod_python mode (which would require a restart).

--Jim--

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson