Forum

Benvenuto!

Questo è il forum ufficiale dell'Associazione Odoo Italia. Dopo esserti registrato potrai partecipare ponendo domande o rispondendo a quelle esistenti. Non scordarti di compilare il tuo profilo e consultare le linee guida prima di iniziare a scrivere.

-1

[SOLVED][11] errore fatturapa su mageia7: NameError: name 'pyxb' is not defined

Avatar
Enrico Maria Chellini

fatturapa

mi pianta il menù di ofdoo e da il seguente errore :

"

tail -f /var/log/odoo/odoo.log

File "/usr/local/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa/bindings/_ds.py", line 27, in <module>

_GenerationUID = pyxb.utils.utility.UniqueIdentifier(

NameError: name 'pyxb' is not defined

2019-11-18 16:36:27,836 13080 INFO odoo odoo.modules.loading: loading 1 modules...

2019-11-18 16:36:27,867 13080 INFO odoo odoo.modules.loading: 1 modules loaded in 0.03s, 0 queries

2019-11-18 16:36:27,894 13080 INFO odoo odoo.modules.loading: loading 22 modules...

2019-11-18 16:36:28,176 13080 INFO odoo odoo.modules.loading: 22 modules loaded in 0.28s, 0 queries

2019-11-18 16:36:28,755 13080 INFO odoo odoo.modules.loading: Modules loaded.

2019-11-18 16:36:28,763 13080 INFO odoo odoo.addons.base.ir.ir_http: Generating routing map

2019-11-18 16:36:28,932 13080 INFO ? odoo.addons.bus.models.bus: Bus.loop listen imbus on db postgres

2019-11-18 16:36:41,985 13080 INFO odoo odoo.modules.registry: At least one model cache has been invalidated, signaling through the database.

2019-11-18 16:36:41,987 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:41] "GET /web?debug=1 HTTP/1.1" 200 -

2019-11-18 16:36:42,119 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/301-4fcf653/web.assets_common.0.css HTTP/1.1" 304 -

2019-11-18 16:36:42,139 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/384-59e504f/web.assets_backend.0.css HTTP/1.1" 304 -

2019-11-18 16:36:42,163 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/243-128968c/web_editor.summernote.0.css HTTP/1.1" 304 -

2019-11-18 16:36:42,164 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/385-59e504f/web.assets_backend.1.css HTTP/1.1" 304 -

2019-11-18 16:36:42,184 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/244-8b77ddb/web_editor.assets_editor.0.css HTTP/1.1" 304 -

2019-11-18 16:36:42,228 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/304-4fcf653/web.assets_common.js HTTP/1.1" 304 -

2019-11-18 16:36:42,238 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/247-128968c/web_editor.summernote.js HTTP/1.1" 304 -

2019-11-18 16:36:42,240 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/248-8b77ddb/web_editor.assets_editor.js HTTP/1.1" 304 -

2019-11-18 16:36:42,246 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/content/386-59e504f/web.assets_backend.js HTTP/1.1" 304 -

2019-11-18 16:36:42,392 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/webclient/qweb?mods= HTTP/1.1" 304 -

2019-11-18 16:36:42,598 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/binary/company_logo HTTP/1.1" 200 -

2019-11-18 16:36:42,599 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "POST /web/dataset/call HTTP/1.1" 200 -

2019-11-18 16:36:42,615 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "POST /web/webclient/translations HTTP/1.1" 200 -

2019-11-18 16:36:42,678 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "GET /web/webclient/locale/it_IT HTTP/1.1" 200 -

2019-11-18 16:36:42,755 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:36:42] "POST /mail/client_action HTTP/1.1" 200 -

2019-11-18 16:37:18,937 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:37:18] "POST /longpolling/poll HTTP/1.1" 200 -

2019-11-18 16:37:32,801 13080 INFO odoo werkzeug: 192.168.1.223 - - [18/Nov/2019 16:37:32] "POST /longpolling/poll HTTP/1.1" 200 -

"

Avatar
Abbandona
2 Risposte
1
Avatar
Davide Corio
Migliore risposta

devi installare pyxb come segnalato dall'errore e come indicato nel readme del modulo:

https://github.com/OCA/l10n-italy/tree/11.0/l10n_it_fatturapa

se è installato, verifica anche la versione

Avatar
Abbandona
0
Avatar
Enrico Maria Chellini
Migliore risposta

Ciao Davide

ho specificatamente installato la versione 1.2.5, come richiesto

pip3 install pyxb==1.2.5

ma rimane l'errore , oltre altri errori .

019-11-19 19:10:31,922 29285 INFO ? werkzeug: 192.168.1.223 - - [19/Nov/2019 19:10:31] "POST /longpolling/poll HTTP/1.1" 500 -
2019-11-19 19:10:31,939 29285 ERROR ? werkzeug: Error on request:                                                        
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/werkzeug/serving.py", line 302, in run_wsgi                                     
    execute(self.server.app)
  File "/usr/lib/python3.7/site-packages/werkzeug/serving.py", line 290, in execute                                      
    application_iter = app(environ, start_response)
  File "/usr/lib/python3.7/site-packages/odoo/service/server.py", line 260, in app                                       
    return self.app(e, s)
  File "/usr/lib/python3.7/site-packages/odoo/service/wsgi_server.py", line 166, in application                          
    return application_unproxied(environ, start_response)
  File "/usr/lib/python3.7/site-packages/odoo/service/wsgi_server.py", line 154, in application_unproxied                
    result = handler(environ, start_response)
  File "/usr/lib/python3.7/site-packages/odoo/http.py", line 1318, in __call__                                           
    self.load_addons()
  File "/usr/lib/python3.7/site-packages/odoo/http.py", line 1350, in load_addons                                        
    m = __import__('odoo.addons.' + module)
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load                                                      

  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked                                             

  File "<frozen importlib._bootstrap>", line 668, in _load_unlocked                                                      

  File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible                                           

  File "/usr/lib/python3.7/site-packages/odoo/modules/module.py", line 82, in load_module                                
    exec(open(modfile, 'rb').read(), new_mod.__dict__)
  File "<string>", line 4, in <module>

  File "/usr/local/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa_in/wizard/__init__.py", line 2, in <module>
    from . import wizard_import_fatturapa
  File "/usr/local/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa_in/wizard/wizard_import_fatturapa.py", line 9,
 in <module>
    from odoo.addons.l10n_it_fatturapa.bindings import fatturapa_v_1_2
  File "/usr/local/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa/bindings/fatturapa_v_1_2.py", line 11, in <mod
ule>
    from . import _ds as _ImportedBinding__ds
  File "/usr/local/lib/python3.7/site-packages/odoo/addons/l10n_it_fatturapa/bindings/_ds.py", line 27, in <module>
    _GenerationUID = pyxb.utils.utility.UniqueIdentifier(
NameError: name 'pyxb' is not defined



Avatar
Abbandona
-1
Avatar
Enrico Maria Chellini
Migliore risposta

Ok, risolto, il problema rimane nella distribuzione che fa casino;

in pratica  con pip install  mette i moduli su /usr/local/lib/python3.7/site-packages/

ma in questo caso il software non  vede pyxb
le ho copiate dentro /usr/lib/python3.7/site-packages/

e funziona

Grazie

Enrico

Avatar
Abbandona