On Mon, May 4, 2009 at 3:20 PM, Erik Bray <[email protected]> wrote:
> On Mon, May 4, 2009 at 11:37 AM, Olemis Lang <[email protected]> wrote:
>>
>> Hello.
>>
>> Recently I tried to remove a plugin so as to install a new version and
>> I just can't.
>>
>> Pls. What's happenning ? How can I remove that plugin?
>
> You or somebody else probably installed the plugin system-wide at some
> point along the line.  Check to see if there's an egg for the plugin
> in /usr/lib/python2.x/site-packages or
> /usr/local/lib/python2.x/site-packges or whatever your platform's
> equivalents are.
>

I already did so and the answer is no, I have nothing there. Below I
insert the conversation I had at #trac, in order keep u up to date
about my «research». It seems to be an issue related with Apache +
FCGI + Trac. Please. See below (& thnx in advance ;)

        olemis  Hello guys !
        olemis  I have a problem when I try to uninstall a plugin
11:50   olemis  in a Trac env
        olemis  It is installed for a single env
        olemis  but all envs can see it
11:51   olemis  but none of them enables the uninstall button
        olemis  What's happenning ?
        olemis  How can I fix it ?
11:52   olemis  I mean remove it

11:53   retracile               olemis: sounds like it was installed system 
wide...

11:55   olemis  I thought so, but later I found that this couldnt be true
        olemis  since
        olemis  it's nowhere
11:57   olemis  I removed the file directly from the FS and then, on
accessing admin/plugins page,
        olemis  the plugin is still shown
        olemis  I cleaned-up the egg cache
        olemis  restarted the server and it was still there
        olemis  Later I tried to disable a component and the env (just the env
where comp is disabled) gets broken
12:05   olemis  and the message says something like «IOError: zipimport:
can not open file
/var/lib/trac/newprj/plugins/TracGViz-1.2.2-py2.5.egg»
        olemis  disregarding the env
12:06   olemis  I mean if I try to do the same thing in
/var/lib/trac/another-prj then the message shown is still «IOError:
zipimport: can not open file
/var/lib/trac/newprj/plugins/TracGViz-1.2.2-py2.5.egg»
        olemis  BTW I use Trac 0.11

        thatch          olemis: does that file exist? If not, restart your Trac

12:11   olemis  I did that several times using `kill + SIG_HUP` and later
`sudo /etc/init.d/apache2 restart` and `sudo /etc/init.d/apache2 stop
| start` but that doesnt work
        olemis  The only thing I can do is to copy the egg file back again
12:12   olemis  but there's no way I can remove it ... so far
        olemis  :$

12:13   retracile       thatch: doesn't easy_install put eggs at the front of
the import path? what file does that live in?

12:16   olemis  I even installed the new version (BTW that's what I want
... I want to test the new version on a Linux host  but Trac gets
hooked with the previous one ... ggrrrr :$

12:19   retracile               olemis: I would do a recursive grep for GViz in 
your
/usr/lib/python25 directory and see if there are any hits.

12:22   olemis  retracile: I typed `ls -Rv /usr/lib/python2.5/ | grep
TracGViz` and nothing is shown
        olemis  retracile: so I assume there's nothing out there ... isn't it ?

12:23   retracile               olemis: I was thinking more along the lines of 
`cd
/usr/lib/python2.5; grep GViz -l -r .`

12:28   olemis  retracile: I found something tell u in a while thnks =|:^)x-
14:24   olemis  retracile: Hello once again, when I execute `cd
/usr/lib/python2.5; grep GViz -l -r .` the only thing I get is many
lines displaying the following error message «grep: <filename>: No
such file or directory»
        olemis  I'm still trying to remove the plugin
        olemis  I get nothing but that
timed out))
        olemis  Why is the plugin still loaded after I delete it from the FS ?
        olemis  and restart the server, and so on ...
14:26   olemis  Pls help

14:28   retracile               olemis: uh... that's... odd.
14:30   retracile               olemis: what are some of the filenames listed?

15:06   olemis  retracile: sorry ... I was out of the box ... I mean the
office ... XD
        olemis  retracile: They are all found under
./site-packages/Trac-0.11.egg-info/ dir
15:10   olemis  e.g. ./site-packages/Trac-0.11.egg-info/top_level.txt
        retracile               olemis: are the files there if you do an 'ls'?

        olemis  and they are symlinks to files having the same name, but found
at /usr/share/pyshared/Trac-0.11.egg-info/
        olemis  but the links are broken
15:11   olemis  

        retracile       Uh, that's likely to cause... issues
        retracile       what's the /usr/share/pyshared thing?

15:15   olemis  retracile: There I find many modules & pkgs like wxglade,
setuptools, PIL, mechanize, ... and the corresponding egg folder in
most cases
15:16   olemis  For example many files inside setuptools pkg are symlinks
pointing to other files at /usr/share/pyshared
15:17   olemis  but I sware I didnt put them there explicitly

15:18   retracile               olemis: I've never seen that kind of setup 
before. I
think before we're going to be able to help you with this, you're
going to have to track down where that pyshared thing came from.

15:19   olemis  BTW ... Is this related to the egg cache issue and etc ?
        olemis  Perhaps that's the way Ubuntu arranges things
        olemis  or not ?
        olemis  Ubuntu Hardy, I mean

15:21   retracile               olemis: I really don't know. I haven't seen a 
setup
with symlinks like that.

        olemis  In fact I have both these folders
site-packages/Trac-0.11.1-py2.5.egg &
site-packages/Trac-0.11.egg-info:
        olemis  The former has no symlinks at all
15:22   olemis  the later is the problematic
        olemis  It seems it is an issue with Apache
        olemis  since I used tracd few minutes ago and everything was ok
15:44   olemis  I mean probably apache2 + fcgi
        olemis  How can I get rid of apache and start it from scratch if 
necessary ?
15:45   olemis  in order to be sure that clean up really worked

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Here comes the Sun ... turu ruru. It's Oracle's !  -
http://feedproxy.google.com/~r/simelo-es/~3/EMxV1KHhl60/here-comes-sun-turu-ruru-its-oracles.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
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