Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Risolto]esync ha smesso di funzionare
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
albazeus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 81

PostPosted: Mon Dec 08, 2003 3:51 pm    Post subject: [Risolto]esync ha smesso di funzionare Reply with quote

Purtroppo e' da un po' che esync non funzia piu':
- se lo lancio ottengo:
Code:
# ./esync
 * Getting old portage tree
Traceback (most recent call last):
  File "./esync", line 21, in ?
    tree_old = gettree("old")
  File "./esync", line 13, in gettree
    os.symlink("/var/cache/edb/esearchdb.pyc", tree + "tree.pyc")
OSError: [Errno 17] File exists


se rimuovo oldtree.pyc ottengo:
Code:
# ./esync
 * Getting old portage tree
Traceback (most recent call last):
  File "./esync", line 21, in ?
    tree_old = gettree("old")
  File "./esync", line 15, in gettree
    from oldtree import db
ImportError: Bad magic number in ./oldtree.pyc


magic number?


Last edited by albazeus on Tue Dec 09, 2003 3:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 7:45 pm    Post subject: Reply with quote

Problemi sul filesystem.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
albazeus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 81

PostPosted: Mon Dec 08, 2003 8:31 pm    Post subject: Reply with quote

Grazie per la perla di saggezza, ma cosa vorresti dire? Che il fs mi sta lasciando?

Adesso provo con un fsck...
Back to top
View user's profile Send private message
albazeus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 81

PostPosted: Mon Dec 08, 2003 8:55 pm    Post subject: Reply with quote

reiserfsck non ha trovato errori...
Altri consigli?

Se servono dettagli sono qui...
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 9:17 pm    Post subject: Reply with quote

Bad magic number e' un problema del filesystem.
Fai:
Code:
$ stat /var/cache/edb/esearchdb.pyc

_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
albazeus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 81

PostPosted: Mon Dec 08, 2003 9:30 pm    Post subject: Reply with quote

Code:

# stat /var/cache/edb/esearchdb.pyc
  File: `/var/cache/edb/esearchdb.pyc'
  Size: 935431          Blocks: 1832       IO Block: 131072 regular file
Device: 2103h/8451d     Inode: 223337      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2003-12-08 16:30:33.000000000 +0000
Modify: 2003-12-08 16:30:34.000000000 +0000
Change: 2003-12-08 16:30:34.000000000 +0000



Mi sembra ok
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Dec 08, 2003 10:48 pm    Post subject: Reply with quote

WOW, Bad magic number sotto python significa un'altra cosa, stai contento :)
Quote:
In this case it's catching that the user is trying to run a .pyc file under a version of Python it can't be run under.

Ha aggiornato python? Downgradato?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
albazeus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 81

PostPosted: Mon Dec 08, 2003 10:56 pm    Post subject: Reply with quote

Penso sia stato proprio l'ultimo aggiornamento a farlo piantare:

Code:
# emerge -pv python wxPython

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-lang/python-2.3.2-r2  +ncurses +gdbm -ssl +readline +tcltk +berkdb -bootstrap -ipv6 -build -ucs2
[ebuild   R   ] dev-python/wxPython-2.4.2.4  +opengl +tiff +jpeg +png +gtk2 -unicode


Ci sono altri pk che dovrei aggiornare?
Back to top
View user's profile Send private message
albazeus
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2003
Posts: 81

PostPosted: Tue Dec 09, 2003 3:39 pm    Post subject: Reply with quote

ok! Sono andato a rompere le scatole all' autore e me l'ha risolto. :mrgreen:
Il problema e' python 2.3. Quidi se avete intenzione di aggiornarlo dovete fare questa modifica:
Cambiate la riga (la prima)
Code:
#!/usr/bin/nv python2.2

con questa riga
Code:
#!/usr/bin/python -u


e lanciate esync con questo comando:
Code:
$ esync | tee esync.log


Credo cmq che fra poco questa modifica sara' gia' messa nello script ufficiale.
Questo post e' solo per gli impazienti...
Ciauz!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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