Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gdesklets error
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
graphic23
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 102
Location: Chicago

PostPosted: Tue Jun 07, 2005 10:09 pm    Post subject: gdesklets error Reply with quote

Code:



==========================================================[06/07/05-17:06:47]===
=== Error in the core! Please report this bug!

[EXC]exceptions.UnboundLocalError:
[EXC]local variable 'urllib' referenced before assignment
in /usr/bin/gdesklets: line 3 ?
in /usr/lib/gdesklets/main/__init__.py: line 31 ?
in /usr/lib/gdesklets/utils/vfs.py: line 41 escape_path_urllib
[---]/usr/lib/gdesklets/utils/vfs.py
[---]   36         return escape_path_urllib(uri)
[---]   37
[---]   38 def escape_path_urllib(uri):
[---]   39
[---]   40     if (USE_GNOMEVFS): import urllib
[ERR]>  41     return urllib.quote(uri)
[---]   42
[---]   43
[---]   44
[---]   45 def unescape_path(uri):
[---]   46
[---]   47     if (USE_GNOMEVFS): import urllib




I checked on the gdesklets forums: http://gdesklets.free.fr/board/viewtopic.php?t=169&highlight=urllib

They said gnome-python2-gnomevfs. Well, I emerged gnome-python with the gtkhtml flag and re-emerged gnomevfs but it still refuses to work. Any help?

This is with gdesklets-0.35 btw.
_________________
Sincerly,
Graphic23
Back to top
View user's profile Send private message
graphic23
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 102
Location: Chicago

PostPosted: Fri Jun 10, 2005 2:34 am    Post subject: Reply with quote

Ok. The problem was that I had both python2.3 and python2.4 and some of gnome-vfs was in python2.4 and some in 2.3 so that was causing the error. I unmerged python2.4 and am merging everything again [well, just gnome-python, pygtk, etc.] and it "should" work now. :)
_________________
Sincerly,
Graphic23
Back to top
View user's profile Send private message
graphic23
Tux's lil' helper
Tux's lil' helper


Joined: 06 Dec 2004
Posts: 102
Location: Chicago

PostPosted: Fri Jun 10, 2005 11:24 am    Post subject: Reply with quote

Yes. That fixed it. Also make sure to emerge pyxml after you remove python2.4. :)
_________________
Sincerly,
Graphic23
Back to top
View user's profile Send private message
gotaserena
Apprentice
Apprentice


Joined: 23 Feb 2005
Posts: 153
Location: fourth worst city in the world

PostPosted: Sun Jun 12, 2005 5:51 pm    Post subject: Reply with quote

In case anybody else finds this error, I solved it by re-emerging gnome-python, pygtk and pyorbit. You do not need to get rid of python-2.4.

Last edited by gotaserena on Sun Jun 12, 2005 6:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
manywele
l33t
l33t


Joined: 12 Jul 2003
Posts: 743
Location: Inside

PostPosted: Sun Jun 12, 2005 5:55 pm    Post subject: Reply with quote

You can also run python-updater to switch everything over to python-2.4. It can take a while though.
Back to top
View user's profile Send private message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Fri Jun 17, 2005 5:36 pm    Post subject: Reply with quote

manywele wrote:
You can also run python-updater to switch everything over to python-2.4. It can take a while though.


very useful information. that should be included in the ebuild or at least when you run etc-update or some other program that is normally used for system updating.
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Fri Jun 17, 2005 6:14 pm    Post subject: Reply with quote

Whenever you emerge Python, it reminds you to run python-updater to update old Python modules.
Back to top
View user's profile Send private message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Sun Jun 19, 2005 1:02 am    Post subject: Reply with quote

tarpman wrote:
Whenever you emerge Python, it reminds you to run python-updater to update old Python modules.


woops! must have missed that then. ;)
Back to top
View user's profile Send private message
parsim
Guru
Guru


Joined: 12 Aug 2004
Posts: 347
Location: Melbourne, Australia

PostPosted: Mon Oct 17, 2005 7:09 am    Post subject: Reply with quote

For the record, running python-updater fixed my error too:
Code:
$ gdesklets
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib64/gdesklets/utils/__init__.py", line 23, in _pretty_excepthook
    deep_trace = True)
  File "/usr/lib64/gdesklets/utils/ErrorFormatter.py", line 76, in format
    import vfs
  File "/usr/lib64/gdesklets/utils/ErrorFormatter.py", line 119, in _new_imp
    module = _old_imp(name, globs, locls, fromlist)
  File "/usr/lib64/gdesklets/utils/vfs.py", line 120, in ?
    exists = exists_urllib2
NameError: name 'exists_urllib2' is not defined

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/gdesklets", line 4, in ?
    from main.DisplayList import DisplayList
  File "/usr/lib64/gdesklets/utils/ErrorFormatter.py", line 119, in _new_imp
    module = _old_imp(name, globs, locls, fromlist)
  File "/usr/lib64/gdesklets/main/DisplayList.py", line 4, in ?
    from utils import vfs
  File "/usr/lib64/gdesklets/utils/ErrorFormatter.py", line 119, in _new_imp
    module = _old_imp(name, globs, locls, fromlist)
  File "/usr/lib64/gdesklets/utils/vfs.py", line 120, in ?
    exists = exists_urllib2
NameError: name 'exists_urllib2' is not defined

It had been working, then one upgrade of python later, this.

I don't get this about Gentoo: why do these critical messages scroll off the screen along with the other 20,000 characters during an emerge? Python was one of 14 packages that got upgraded for me. Do these messages get logged anywhere else, or are users seriously expected to sit there staring at the screen during an emerge in case something important scrolls by?
Back to top
View user's profile Send private message
opo
n00b
n00b


Joined: 28 Jun 2004
Posts: 32
Location: Rome, Italy

PostPosted: Wed Oct 19, 2005 4:50 pm    Post subject: Reply with quote

Quote:
I don't get this about Gentoo: why do these critical messages scroll off the screen along with the other 20,000 characters during an emerge? Python was one of 14 packages that got upgraded for me. Do these messages get logged anywhere else, or are users seriously expected to sit there staring at the screen during an emerge in case something important scrolls by?


Check /var/log/portage logs :)
Back to top
View user's profile Send private message
parsim
Guru
Guru


Joined: 12 Aug 2004
Posts: 347
Location: Melbourne, Australia

PostPosted: Thu Oct 20, 2005 2:38 am    Post subject: Reply with quote

opo wrote:
Check /var/log/portage logs :)

Code:
$ ls /var/log/portage*
ls: /var/log/portage*: No such file or directory

I have /var/log/emerge.log, but it doesn't include those important comments.
Back to top
View user's profile Send private message
opo
n00b
n00b


Joined: 28 Jun 2004
Posts: 32
Location: Rome, Italy

PostPosted: Thu Oct 20, 2005 4:39 pm    Post subject: Reply with quote

Quote:
Code:
$ ls /var/log/portage*
ls: /var/log/portage*: No such file or directory

I have /var/log/emerge.log, but it doesn't include those important comments.


$ man make.conf

PORT_LOGDIR
This variable defines the directory in which per-ebuild logs are
kept. Logs are created only when this is set and writable.

# mkdir /var/log/portage

set

PORT_LOGDIR="/var/log/portage"

in your /etc/make.conf (as root)

and next emerge you are done!
Back to top
View user's profile Send private message
parsim
Guru
Guru


Joined: 12 Aug 2004
Posts: 347
Location: Melbourne, Australia

PostPosted: Fri Oct 21, 2005 7:39 am    Post subject: Reply with quote

Thanks, that works. But, boy, it's not what you'd call user-friendly! Each emerged package produces two log files. The only way to tell which is the compilation log and which is the message log seems to be by their size (compilation big, messages small). You inspect each one for messages (most are empty), then I guess you manually clean out the dir so you don't get confused next time about which logs are new. Yikes!
Back to top
View user's profile Send private message
opo
n00b
n00b


Joined: 28 Jun 2004
Posts: 32
Location: Rome, Italy

PostPosted: Fri Oct 21, 2005 12:48 pm    Post subject: Reply with quote

I do agree it's not that user-friendly but

# ls -lrt <package-name>*

shows the last emerge messages for the package as the final item, due to the fact that before there is compilation, then messages are displayed. I am quite lazy by now but it shouldn't be too difficult to automate the process with a script and then display it in torsmo or conky or any other desktop app.

Besides I 'd say gentoo is not about being user-friendly is about being power-users ;)
Back to top
View user's profile Send private message
c0re
n00b
n00b


Joined: 03 Aug 2002
Posts: 38
Location: kiel / germany

PostPosted: Tue Nov 01, 2005 8:41 pm    Post subject: Reply with quote

offtopic ... but look at the tips and tricks section of this gwn.
enotice is ur friend ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum