L. Arnold's picture
Hi, I have wanted to work up some variations on the Odoo Application system, and do so with TKLDEV pulling different versions of Odoo into a Current 18.1 build system. Unfortunately I cannot at present even build the full current Odoo build. Getting the following error in tkldev after starting Make: -- E: Unable to locate package odoo-16 Traceback (most recent call last): File "/usr/bin/fab-install", line 660, in cmd_install( File "/usr/bin/fab-install", line 297, in cmd_install installer.install(packages, ignore_errors) File "/usr/lib/python3.11/dist-packages/fablib/installer.py", line 340, in install self._install(packages, ignore_errors) File "/usr/lib/python3.11/dist-packages/fablib/installer.py", line 187, in _install raise Error( fablib.installer.Error: Errors encountered installing packages make: *** [/usr/share/fab/product.mk:577: build/stamps/root.build] Error 1 --- Exploring this in the Debian Packages I am not finding an odoo-16 package. I do find an odoo-18 and odoo-14 on this Debian Package Search Page, but this does not appear correct: https://packages.debian.org/search?keywords=odoo --- in my l-arnold/tkl-nomadic-odoo respository I see in some of my old branches: old versions of the TKL Odoo app relied on the version "nightly" builds when being built by TKLDEV. (for Instance Odoo 11 was built by TKL 15.x) I tried emulating that just now but basically getting tied up having or not having odoo-16 as a package defined in the plan/main file. I also by bringing forward also overlay/etc/apt folder structure to emulate that structure in odoo-11 but towards an odoo-14 build. https://www.odoo.com/documentation/14.0/uk/administration/install/packag... No Luck so far. Thoughts on how to get a "multi-version" Odoo system working? Thoughts even on how to simply get the current TKL-Odoo app build in TKLDEV? Thanks, Jeremy, in advance. Sorry for the trouble. Landis
Forum: 
L. Arnold's picture

I realize this is not enabled as the old editing system is not in this TKL system anymore.
L. Arnold's picture

I am seeing certain "bullseye-backports" as well as "stable-backports" for odoo 14 and odoo 16 I am not seeing stable for other versions (unstable shown for 17 and 18) https://tracker.debian.org/pkg/odoo/news/?page=1 Not sure how to direct this properly in TKLDEV. Ideally I would be able to make calls to version 14, 15, 16 to work through an OpenUpgrade path.
L. Arnold's picture

been trying variously with odoo-14 and odoo-16 Getting the following error which seems to be many faceted: Reading package lists... Done N: Repository 'http://deb.debian.org/debian bookworm InRelease' changed its 'Version' value from '12.1' to '12.8' touch build/stamps/bootstrap unit_plans=""; fab-plan-resolve plan/main $unit_plans --bootstrap=/turnkey/fab/bootstraps/bookworm --output=build/root.spec -D 'FAB_ARCH=amd64' -D 'FAB_HTTP_PROXY=http://127.0.0.1:3128' -D 'AMD64=y' -D 'RELEASE=debian/bookworm' -D 'DISTRO=debian' -D 'CODENAME=bookworm' -D 'DEBIAN=y' Traceback (most recent call last): File "/usr/bin/fab-plan-resolve", line 674, in cmd_plan_resolve(args.output, args.bootstrap, args.pool, File "/usr/bin/fab-plan-resolve", line 319, in cmd_plan_resolve resolve.resolve_plan(output_path, bootstrap_path, File "/usr/lib/python3.11/dist-packages/fablib/resolve.py", line 58, in resolve_plan subplan = Plan.init_from_file(plan_path, cpp_opts, pool_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/dist-packages/fablib/plan.py", line 238, in init_from_file return cls(cls._parse_plan_file(plan_file_path, cpp_opts), pool_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/dist-packages/fablib/plan.py", line 210, in _parse_plan_file processed_plan = cpp.cpp(path, cpp_opts) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/dist-packages/fablib/cpp.py", line 45, in cpp raise Error(" ".join(command), c.returncode, c.stderr) fablib.cpp.Error: ('cpp plan/main -Ulinux -DFAB_ARCH=amd64 -DFAB_HTTP_PROXY=http://127.0.0.1:3128 -DAMD64=y -DRELEASE=debian/bookworm -DDISTRO=debian -DCODENAME=bookworm -DDEBIAN=y -I/turnkey/fab/common/plans', 1, 'plan/main:5:2: error: invalid preprocessing directive #apt\n 5 | #apt install -t bullseye-backports odoo-14\n | ^~~\n') make: *** [/usr/share/fab/product.mk:577: build/stamps/root.spec] Error 1 root@tkldev .../products/(my build) # make clean The Error there being on the most recent test: I/turnkey/fab/common/plans', 1, 'plan/main:5:2: error: invalid preprocessing directive #apt\n 5 | #apt install -t bullseye-backports odoo-14\n ------ However there should be one there as in the one referenced here: https://packages.debian.org/bullseye-backports/odoo-14 Probably not calling it correctly.
L. Arnold's picture

I was able to add some backport entries into the fab/bootstraps/bookworm to get the odoo-14 bullseye-backports package to load. Have not yet found an active odoo-16 package even though I thought (------------------) Now having an issue with a python package. Not sure if it is the same approach or different but will spend some time on this today. (------------------) Using a fork of turnkeylinux-apps/odoo in TKLDEV 18.1 (the fork allows me to test tweaks in Github). Ideally I will have a series of builds using, minimally, Odoo,14, Odoo 15, Odoo 16, Odoo 17 and Odoo 18 so that upgrade processes can be understood.
L. Arnold's picture

Fixes outside of TKLDEV are outlined here for Odoo-17 though this seems to apply to Odoo-14 (at least) forward. (---------------) https://www.odoo.com/forum/help-1/importerror-no-module-named-pypdf2-138813 (---------------)

Add new comment