Autore Topic: [risolto]Problema compilazione da ccr (python/bzr)  (Letto 851 volte)

Offline robyshot

  • *
  • Post: 157
  • Reputazione: 5
    • Mostra profilo
[risolto]Problema compilazione da ccr (python/bzr)
« il: 15 Dicembre 2011 ore 13:12 »
Salve

sto avendo un problema a compilare un pacchetto (pithos) da ccr

questo è l'output del terminale

Codice: [Seleziona]
ccr pithos
 
0 ccr/pithos-bzr 20110619-0.3.9
    A Pandora Radio (pandora.com) player for the GNOME Desktop using the libpiano library (also used by pianobar).

Type numbers to install. Separate each number with a space.
Numbers: 0
warning: pithos-bzr-20110619-0.3.9 is up to date -- reinstalling

Ccr Targets    (1): pithos-bzr

Proceed with installation? [Y/n]

Edit pithos-bzr PKGBUILD with $EDITOR? [Y/n] n
==> Creazione del pacchetto: pithos-bzr 20110619-0.3.9 (gio 15 dic 2011, 13.10.58, CET)
==> Controllo delle dipendenze durante l'avvio in corso...
==> Controllo delle dipendenze durante la compilazione in corso...
==> Download dei sorgenti in corso...
==> Estrazione dei sorgenti in corso...
==> Rimozione dell'esistente directory pkg/ in corso...
==> Avvio di build() in corso...
==> Connecting to the server....
bzr: ERROR: exceptions.TypeError: readline() takes exactly 1 argument (2 given)                                                                         

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/builtins.py", line 1321, in run
    branch_location)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 1033, in open_tree_or_branch
    return bzrdir._get_tree_branch()
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 1015, in _get_tree_branch
    branch = self.open_branch(name=name)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 1871, in open_branch
    _found=True, ignore_fallbacks=ignore_fallbacks)
  File "/usr/lib/python2.7/site-packages/bzrlib/branch.py", line 2316, in open
    location, possible_transports=possible_transports)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 911, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 941, in open_from_transport
    redirected)
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/__init__.py", line 1657, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 928, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 1949, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 3292, in probe_transport
    server_version = medium.protocol_version()
  File "/usr/lib/python2.7/site-packages/bzrlib/smart/medium.py", line 632, in protocol_version
    client_protocol.query_version()
  File "/usr/lib/python2.7/site-packages/bzrlib/smart/protocol.py", line 791, in query_version
    self.call('hello')
  File "/usr/lib/python2.7/site-packages/bzrlib/smart/protocol.py", line 631, in call
    self._request.finished_writing()
  File "/usr/lib/python2.7/site-packages/bzrlib/smart/medium.py", line 439, in finished_writing
    self._finished_writing()
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/__init__.py", line 646, in _finished_writing
    data = self._medium.send_http_smart_request(self._buffer)
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/__init__.py", line 615, in send_http_smart_request
    code, body_filelike = t._post(bytes)
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/_urllib.py", line 139, in _post
    accepted_errors=[200, 403]))
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/_urllib.py", line 79, in _perform
    response = self._opener.open(request)
  File "/usr/lib/python2.7/urllib2.py", line 394, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 412, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 709, in http_open
    return self.do_open(HTTPConnection, request)
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 649, in do_open
    response = connection.getresponse()
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 263, in getresponse
    self._response = httplib.HTTPConnection.getresponse(self)
  File "/usr/lib/python2.7/httplib.py", line 1027, in getresponse
    response.begin()
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 184, in begin
    httplib.HTTPResponse.begin(self)
  File "/usr/lib/python2.7/httplib.py", line 439, in begin
    self.msg = HTTPMessage(self.fp, 0)
  File "/usr/lib/python2.7/mimetools.py", line 25, in __init__
    rfc822.Message.__init__(self, fp, seekable)
  File "/usr/lib/python2.7/rfc822.py", line 108, in __init__
    self.readheaders()
  File "/usr/lib/python2.7/httplib.py", line 280, in readheaders
    line = self.fp.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 argument (2 given)

bzr 2.2.2 on python 2.7.2 (Linux-3.1-CHAKRA-x86_64-Intel-R-_Core-TM-_i3-2310M_CPU_@_2.10GHz-with-glibc2.2.5)
arguments: ['/usr/bin/bzr', 'co', 'https://launchpad.net/pithos/trunk', 'pithos']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'it_IT.utf8'
plugins:
  bash_completion      /usr/lib/python2.7/site-packages/bzrlib/plugins/bash_completion [2.2.2]
  launchpad            /usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad [2.2.2]
  netrc_credential_store /usr/lib/python2.7/site-packages/bzrlib/plugins/netrc_credential_store [2.2.2]
  news_merge           /usr/lib/python2.7/site-packages/bzrlib/plugins/news_merge [2.2.2]

*** Bazaar has encountered an internal error.  This probably indicates a
    bug in Bazaar.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.
==> ERRORE: Si è verificato un errore in build().                                                                                                       
    L'operazione sta per essere interrotta...
The build failed.

sembrebbe essere un errore di bzr e/o python (ho provato a reinstallarli ma non cambia nulla)

che posso fare?
« Ultima modifica: 26 Dicembre 2011 ore 23:12 da robyshot »
(\\(\\
( oo)
((\') (\')






Offline jmc

  • *
  • Post: 1354
  • Reputazione: 95
    • Mostra profilo
    • The Chakra Project
Re:Problema compilazione da ccr (python/bzr)
« Risposta #1 il: 15 Dicembre 2011 ore 13:27 »
Sembra proprio un errore di Bazaar. Chakra distribuisce la versione stabile di Bazaar, probabilmente nella versione di sviluppo ciò è stato già risolto. Magari prova ad installare la versione di sviluppo di Bazaar e vedere se con quella risolvi.

A ben pensarci, però, per soddisfare le dipendenze richieste dal PKGBUILD in CCR, bisognerebbe farci proprio un pacchetto apposito per la versione di sviluppo di Bazaar.

Offline robyshot

  • *
  • Post: 157
  • Reputazione: 5
    • Mostra profilo
Re:Problema compilazione da ccr (python/bzr)
« Risposta #2 il: 16 Dicembre 2011 ore 12:00 »
su un altro computer bzr funziona regolarmente  :-\

non ce forse qualche file di configurazione che posso provare a cancellare per vedere se si risolve qualcosa?
(\\(\\
( oo)
((\') (\')






Offline jmc

  • *
  • Post: 1354
  • Reputazione: 95
    • Mostra profilo
    • The Chakra Project
Re:Problema compilazione da ccr (python/bzr)
« Risposta #3 il: 16 Dicembre 2011 ore 13:20 »
Non saprei così su due piedi, vedi se hai una directory $HOME/.bzr, prova a rimuoverla.

Offline robyshot

  • *
  • Post: 157
  • Reputazione: 5
    • Mostra profilo
Re:[risolto]Problema compilazione da ccr (python/bzr)
« Risposta #4 il: 26 Dicembre 2011 ore 23:13 »
con l'ultimo aggiornamento di bzr si è risolto da solo
(\\(\\
( oo)
((\') (\')






 

Template by Homey | Sito ufficiale | Disclaimer