Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Intelligence artificielle
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

OpenUpgrade V6-V7 : No module named openupgradelib.openupgrade_tools

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
migrationopenupgradeOpenUpgrade
3996 Vues
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
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Openupgrade - im trying to migrate odoo 14 to odoo 15 with openupgrade.
migration openupgrade OpenUpgrade
Avatar
Avatar
1
avr. 25
4479
Asset Management migration V12.0 to new versions
migration openupgrade
Avatar
0
mai 23
4042
How to set up 2 OpenUpgrade Servers Résolu
migration openupgrade
Avatar
1
août 19
6736
Error openupgrade hr module
migration openupgrade
Avatar
Avatar
1
mars 15
7847
Problems Migrating (OpenUpgrade) Odoo Sites from v15 -> v16
migration openupgrade odoo16
Avatar
Avatar
2
déc. 25
4381
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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