Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2008-03-24 17:24:58

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

python problem (i to nie mały chyba)

cześć,

no problem mam taki, potrzebowałem mieć python2.4 i 2.5. na 2.5 miał chodzić mod_python dla apache. to się dało.

tyle tylko, że później potrzebowałem domontować ten pakiet który zawiera mysql_config, i tu się zaczęły schody bo system nie wiem czemu cały czas używa pythona2.5, nawet jeżeli symlink w /usr/bin prowadzi na 2.4.4

i teraz problem jest taki że, mam pakiety:
reportbug i buildbot

których za chiny nie mogę usunąć z systemu.

podczas ich demontażu gdy python (/usr/bin/python) wskazuje na /usr/bin/python2.4 pojawiają się tego typu krzaczory:

Kod:

INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 889, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 672, in install
    self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing reportbug (--configure):
 subprocess post-installation script returned error exit status 1
Setting up buildbot (0.7.4-3) ...
INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 889, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 672, in install
    self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing buildbot (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 reportbug
 buildbot
E: Sub-process /usr/bin/dpkg returned an error code (1)

pytanie więc, jak sobie z tym poradzić i jak doprowadzić do tego, by wyrzucić na chwilę chociaż 2.5 niech zostanie 2.4, wtedy będę mógł zabrać się za ten pakiet którego potrzebuje z mysql_config (to jest libmysqlclient15-dev bodajże czy jakoś tak)

albo jak się tych dwóch pakietów wyzbyć kompletnie ? dpkg coś nie pozwala :/


Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

#2  2008-03-24 17:28:00

  LongeR - Członek DUG

LongeR
Członek DUG
Skąd: DT
Zarejestrowany: 2007-09-03
Serwis

Re: python problem (i to nie mały chyba)

#aptitude purge .....


[b]LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!![/b]
-->Nic na siłę, lekko młotkiem:D<----> Czy myślenie sprawia Ci ból?<--
Nieważne od czego się zaczyna - kończy się zawsze na Debianie : )
Linux register users: #456947

Offline

 

#3  2008-03-24 17:29:51

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

Re: python problem (i to nie mały chyba)

wynik aptitude purge python2.5

przy pozostałych dwóch pakietach jest tak samo.

Kod:

# aptitude purge python2.5
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following packages have been kept back:
  linux-image-2.6-686
The following packages will be REMOVED:
  python2.5{p}
0 packages upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
(Reading database ... 33918 files and directories currently installed.)
Removing python2.5 ...
Purging configuration files for python2.5 ...
Setting up reportbug (3.31) ...
INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 889, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 672, in install
    self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing reportbug (--configure):
 subprocess post-installation script returned error exit status 1
Setting up buildbot (0.7.4-3) ...
INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 889, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 672, in install
    self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing buildbot (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 reportbug
 buildbot
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

#4  2008-03-24 17:34:11

  LongeR - Członek DUG

LongeR
Członek DUG
Skąd: DT
Zarejestrowany: 2007-09-03
Serwis

Re: python problem (i to nie mały chyba)

a na siłę z parametrem -f?


[b]LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!![/b]
-->Nic na siłę, lekko młotkiem:D<----> Czy myślenie sprawia Ci ból?<--
Nieważne od czego się zaczyna - kończy się zawsze na Debianie : )
Linux register users: #456947

Offline

 

#5  2008-03-24 17:36:05

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

Re: python problem (i to nie mały chyba)

na siłe z -f

Kod:

# apt-get remove -f buildbot
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  buildbot
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 2195kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 33918 files and directories currently installed.)
Removing buildbot ...
INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 952, in run
    pkg.remove(runtimes, remove_script_files=True)
  File "/usr/bin/pycentral", line 697, in remove
    default_runtime.remove_byte_code(self.private_files)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing buildbot (--remove):
 subprocess pre-removal script returned error exit status 1
INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 889, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 672, in install
    self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 buildbot
E: Sub-process /usr/bin/dpkg returned an error code (1)

Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

#6  2008-03-24 17:39:03

  LongeR - Członek DUG

LongeR
Członek DUG
Skąd: DT
Zarejestrowany: 2007-09-03
Serwis

Re: python problem (i to nie mały chyba)

a to? rm -rf ~/.python2.5


[b]LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!![/b]
-->Nic na siłę, lekko młotkiem:D<----> Czy myślenie sprawia Ci ból?<--
Nieważne od czego się zaczyna - kończy się zawsze na Debianie : )
Linux register users: #456947

Offline

 

#7  2008-03-24 17:40:02

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

Re: python problem (i to nie mały chyba)

Kod:

myhost:~# rm -rf ~/.python2.5
myhost:~# apt-get remove buildbot
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  buildbot
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
2 not fully installed or removed.
Need to get 0B of archives.
After unpacking 2195kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 33918 files and directories currently installed.)
Removing buildbot ...
INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 952, in run
    pkg.remove(runtimes, remove_script_files=True)
  File "/usr/bin/pycentral", line 697, in remove
    default_runtime.remove_byte_code(self.private_files)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing buildbot (--remove):
 subprocess pre-removal script returned error exit status 1
INFO: using unsupported version '/usr/bin/python2.5'
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1373, in ?
    main()
  File "/usr/bin/pycentral", line 1367, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 889, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 672, in install
    self.default_runtime.byte_compile(self.private_files,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 buildbot
E: Sub-process /usr/bin/dpkg returned an error code (1)

Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

#8  2008-03-24 17:41:15

  LongeR - Członek DUG

LongeR
Członek DUG
Skąd: DT
Zarejestrowany: 2007-09-03
Serwis

Re: python problem (i to nie mały chyba)

zobacz tu coś mam: http://forum.suse.pl/index.php?topic=15689.0;wap2


[b]LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!![/b]
-->Nic na siłę, lekko młotkiem:D<----> Czy myślenie sprawia Ci ból?<--
Nieważne od czego się zaczyna - kończy się zawsze na Debianie : )
Linux register users: #456947

Offline

 

#9  2008-03-24 17:43:15

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

Re: python problem (i to nie mały chyba)

no ok, tylko co tu mają do rzeczy rpmy ? :)

to jak widać debian jest, z rpmów niczego nie robiłem, wsio z apta.


Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

#10  2008-03-24 17:50:37

  LongeR - Członek DUG

LongeR
Członek DUG
Skąd: DT
Zarejestrowany: 2007-09-03
Serwis

Re: python problem (i to nie mały chyba)

Jak się nie może rozwiązać jakiegoś problemu to trzeba szukać wujek google nigdy nie zawodzi:D więc zagłębiamy się w lekturę!


[b]LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!![/b]
-->Nic na siłę, lekko młotkiem:D<----> Czy myślenie sprawia Ci ból?<--
Nieważne od czego się zaczyna - kończy się zawsze na Debianie : )
Linux register users: #456947

Offline

 

#11  2008-03-24 18:13:15

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

Re: python problem (i to nie mały chyba)

hmm a może starczało by, wykluczyć te pakiety z dpkg - reportbug i buildbot, tak aby na nie nie patrzył. wówczas może da się pójść dalej... tylko nie mogę się tego właśnie doszukać


Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

#12  2008-03-24 20:32:38

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

Re: python problem (i to nie mały chyba)

nie no nie moge sie do tego doorac za chiny, ma moze ktos jeszcze jakis pomysl ?

z cala reszta juz sobie poradzilem, teraz chodzi jedynie o to, by te dwa pakiety nie wysadzaly error w momencie kiedy instaluje cokolwiek przez apt-get (czyt. korzystam z dpkg)

bylbym  baaardzo wdzieczny.

pozdrowka,
Fo


Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

#13  2008-03-24 20:36:20

  LongeR - Członek DUG

LongeR
Członek DUG
Skąd: DT
Zarejestrowany: 2007-09-03
Serwis

Re: python problem (i to nie mały chyba)

może dpkg reconfigure buildbot?


[b]LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!![/b]
-->Nic na siłę, lekko młotkiem:D<----> Czy myślenie sprawia Ci ból?<--
Nieważne od czego się zaczyna - kończy się zawsze na Debianie : )
Linux register users: #456947

Offline

 

#14  2008-03-24 20:54:45

  Fo - Użytkownik

Fo
Użytkownik
Zarejestrowany: 2005-05-29

Re: python problem (i to nie mały chyba)

no shitowo to wyglada caly czas :/

Kod:

dpkg-reconfigure buildbot
/usr/sbin/dpkg-reconfigure: buildbot is broken or not fully installed

z checia dooralbym sie do miejsca w ktorym dpkg w ogole trzyma taka informacje jak to ze jest cos takiego jak buildbot i wyrzucil to recznie to by zalatwilo sprawe, ew. jakby bylo to kiedys potrzebne to reinstall i pewnie by mryglo ale to takie reczne grzebanie w dpkg - no to mozna sie latwo poslizgnac a nie chce systemu pakietow schrzanic juz kompletnie


Klasyfikator wódki w świecie IT: 0.1 l - demo,0.25 l - trial version,0.5 l - personal edition,0.7 l - professional edition,1.0 l - network edition,1.75 l - enterprise,3 l - for small business,5 l - corporate edition,"klin" - Service pack

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)

[ Generated in 0.016 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00018 SET CHARSET latin2
0.00010 SET NAMES latin2
0.00076 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.147.83.8' WHERE u.id=1
0.00111 UPDATE punbb_online SET logged=1715986994 WHERE ident='3.147.83.8'
0.00031 SELECT * FROM punbb_online WHERE logged<1715986694
0.00107 SELECT topic_id FROM punbb_posts WHERE id=86518
0.00200 SELECT id FROM punbb_posts WHERE topic_id=10981 ORDER BY posted
0.00039 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=10981 AND t.moved_to IS NULL
0.00044 SELECT search_for, replace_with FROM punbb_censoring
0.00074 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=10981 ORDER BY p.id LIMIT 0,25
0.00478 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=10981
Total query time: 0.01188 s