Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

OpenUpgrade V6-V7 : No module named openupgradelib.openupgrade_tools

Odoberať

Get notified when there's activity on this post

This question has been flagged
migrationopenupgradeOpenUpgrade
2967 Zobrazenia
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
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Openupgrade - im trying to migrate odoo 14 to odoo 15 with openupgrade.
migration openupgrade OpenUpgrade
Avatar
Avatar
1
apr 25
3165
Asset Management migration V12.0 to new versions
migration openupgrade
Avatar
0
máj 23
3058
How to set up 2 OpenUpgrade Servers Solved
migration openupgrade
Avatar
1
aug 19
5336
Error openupgrade hr module
migration openupgrade
Avatar
Avatar
1
mar 15
6392
Database Migration error from Odoo 14 to 15(Community) using Openeupgrade.
migration openupgrade databasemigration
Avatar
Avatar
1
máj 25
2994
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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