Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

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

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

OpenUpgrade V6-V7 : No module named openupgradelib.openupgrade_tools

Naroči se

Get notified when there's activity on this post

This question has been flagged
migrationopenupgradeOpenUpgrade
2965 Prikazi
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
Opusti
Enjoying the discussion? Don't just read, join in!

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

Prijavi
Related Posts Odgovori Prikazi Aktivnost
Openupgrade - im trying to migrate odoo 14 to odoo 15 with openupgrade.
migration openupgrade OpenUpgrade
Avatar
Avatar
1
apr. 25
3160
Asset Management migration V12.0 to new versions
migration openupgrade
Avatar
0
maj 23
3046
How to set up 2 OpenUpgrade Servers Solved
migration openupgrade
Avatar
1
avg. 19
5334
Error openupgrade hr module
migration openupgrade
Avatar
Avatar
1
mar. 15
6391
Database Migration error from Odoo 14 to 15(Community) using Openeupgrade.
migration openupgrade databasemigration
Avatar
Avatar
1
maj 25
2992
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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