Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

OpenUpgrade V6-V7 : No module named openupgradelib.openupgrade_tools

Subscriure's

Get notified when there's activity on this post

This question has been flagged
migrationopenupgradeOpenUpgrade
3101 Vistes
Avatar
Tessa Roberts

Hello everyone,


I'm here today with a problem that I can't seem to solve at the moment.

I'm trying to migrate an old OpenErp 6.1 database to Odoo 7.0 (and then 8, 9, 10...).


To achieve this, I'm using OpenUpgrade and Openupgradelib in Docker. 

Everything seems to be going well (creation of the openerp 7 and postgresql containers are ok, restoration of the v6.1 database is ok, and the migration starts).


My problem appears almost immediately after the start of the migration with this error "ImportError: No module named openupgradelib.openupgrade_tools".


At first, I downloaded the .zip archives of OpenUpgrade and openupgradelib directories from git and unzipped them in my migration folder to start the upgrade.


As I got the error, I completely fixed my Dockerfile to retrieve the folders from git directly by cloning the folders. Unfortunately, I still get the same error. 


Here is my Dockerfile : 


FROM openerp7_openerp

USER root

# Install requirements
ARG DEBIAN_FRONTEND=noninteractive
COPY ./library /etc/library

WORKDIR /

COPY ./requirements.txt /
RUN pip install -r requirements.txt

# Add openupgradelib
RUN cd / && mkdir openupgradelib
RUN chown -R openerp:openerp openupgradelib
RUN git clone https:github.com/OCA/openupgradelib.git openupgradelib
RUN cd openupgradelib && git checkout master && cd /
RUN pip install git+https://github.com/OCA/openupgradelib.git@master#egg=openupgradelib

# Add OpenUpgrade
RUN cd / && mkdir OpenUpgrade
RUN chown -R openerp:openerp OpenUpgrade
RUN git clone https://github.com/OCA/OpenUpgrade.git OpenUpgrade
RUN cd OpenUpgrade && git checkout 7.0 && cd /

# Copy openerp conf template & entrypoint script
COPY ./conf/openerp-server.conf.template /etc/openerp/
COPY ./conf/openupgrade.conf.template /etc/openerp/
RUN touch /etc/openerp/openerp-server.conf
RUN chown openerp /etc/openerp/openerp-server.conf.template /etc/openerp/openerp-server.conf /etc/openerp/openupgrade.conf.template

# Add file for any corrections to be applied to the database during migration
COPY ./fix.sh /
RUN chmod a+x /fix.sh

COPY ./entrypoint.sh /
RUN chmod a+x /entrypoint.sh

# Create database volume
RUN mkdir /database && chown openerp:openerp /database
VOLUME /database

And here's the full error message :


openupgrade7 | + sudo -u openerp /usr/bin/python /OpenUpgrade/openerp-server --update all --config /etc/openerp/openupgrade.conf --database migration_db_v7 --no-xmlrpc --stop-after-init --no-netrp
openupgrade7 | Traceback (most recent call last):
openupgrade7 | File "/OpenUpgrade/openerp-server", line 2, in
openupgrade7 | import openerp
openupgrade7 | File "/OpenUpgrade/openerp/__init__.py", line 39, in
openupgrade7 | import addons
openupgrade7 | File "/OpenUpgrade/openerp/addons/__init__.py", line 38, in
openupgrade7 | from openerp.modules import get_module_resource, get_module_path
openupgrade7 | File "/OpenUpgrade/openerp/modules/__init__.py", line 27, in
openupgrade7 | from . import db, graph, loading, migration, module, registry
openupgrade7 | File "/OpenUpgrade/openerp/modules/graph.py", line 32, in
openupgrade7 | import openerp.osv as osv
openupgrade7 | File "/OpenUpgrade/openerp/osv/__init__.py", line 22, in
openupgrade7 | import osv
openupgrade7 | File "/OpenUpgrade/openerp/osv/osv.py", line 30, in
openupgrade7 | import orm
openupgrade7 | File "/OpenUpgrade/openerp/osv/orm.py", line 63, in
openupgrade7 | import fields
openupgrade7 | File "/OpenUpgrade/openerp/osv/fields.py", line 47, in
openupgrade7 | import openerp.tools as tools
openupgrade7 | File "/OpenUpgrade/openerp/tools/__init__.py", line 26, in
openupgrade7 | from convert import *
openupgrade7 | File "/OpenUpgrade/openerp/tools/convert.py", line 64, in
openupgrade7 | from openerp.openupgrade import openupgrade_log
openupgrade7 | File "/OpenUpgrade/openerp/openupgrade/openupgrade_log.py", line 2, in
openupgrade7 | from openupgrade_tools import table_exists
openupgrade7 | File "/OpenUpgrade/openerp/openupgrade/openupgrade_tools.py", line 33, in
openupgrade7 | _modules = __import__(_new_name, globals(), locals(), ['*'])
openupgrade7 | ImportError: No module named openupgradelib.openupgrade_tools
openupgrade7 | + exit_if_error 1 'Error while runing OpenUpgrade'
openupgrade7 | + '[' 1 -gt 0 ']'
openupgrade7 | + echo 'Error while runing OpenUpgrade'
openupgrade7 | Error while runing OpenUpgrade
openupgrade7 | + echo '(CODE: 1)'
openupgrade7 | (CODE: 1)


Does anyone have any ideas or leads that I could follow to get started on my migration?

I searched the internet with this error and the results I found were almost all related to the disassociation of openupgradelib as a project itself and that didn't help me solve the problem.

I'm sure it's a simple problem, but I can't put my finger on it and I don't know where to look anymore.


Thank you in advance and have a nice day !

Mel





0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Openupgrade - im trying to migrate odoo 14 to odoo 15 with openupgrade.
migration openupgrade OpenUpgrade
Avatar
Avatar
1
d’abr. 25
3322
Asset Management migration V12.0 to new versions
migration openupgrade
Avatar
0
de maig 23
3163
How to set up 2 OpenUpgrade Servers Solved
migration openupgrade
Avatar
1
d’ag. 19
5459
Error openupgrade hr module
migration openupgrade
Avatar
Avatar
1
de març 15
6489
Database Migration error from Odoo 14 to 15(Community) using Openeupgrade.
migration openupgrade databasemigration
Avatar
Avatar
1
de maig 25
3097
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now