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 .....


LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!!
-->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?


LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!!
-->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


LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!!
-->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)


LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!!
-->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ę!


LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!!
-->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?


LongeR rządzi, LongeR radzi, LongeR nigdy cię nie zdradzi!!
-->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 ;-)