Package Details: odoo 17.0-9

Git Clone URL: https://aur.archlinux.org/odoo.git (read-only, click to copy)
Package Base: odoo
Description: Web-based Open Source Business Apps
Upstream URL: https://www.odoo.com/
Keywords: crm erp openerp
Licenses: GPL3
Conflicts: openerp
Replaces: openerp
Submitter: bidossessi
Maintainer: AlphaJack
Last Packager: AlphaJack
Votes: 56
Popularity: 0.000000
First Submitted: 2015-06-08 10:31 (UTC)
Last Updated: 2024-04-30 12:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 22 Next › Last »

damien commented on 2020-09-10 13:41 (UTC)

I also had to install python-wheel to get this package to install. Seems it was missed as a dependency?

krouziciorel commented on 2020-03-30 15:12 (UTC) (edited on 2020-03-31 06:15 (UTC) by krouziciorel)

Everything is fine now, I tried both options:

1.

commands:

    sudo pacman -Rdd python-werkzeug

    sudo pip3 install libsass

    sudo pip3 install Werkzeug == 0.15.0

and after starting Postgresql server and command

    python /usr/bin/odoo -r odoo -r odoo -w 123456 -i base

I can log in. The only problem is that I need to re-create the database after I leave the odoo service, because I can't login with my pre-created e-mail and password. However, this is handled by davispuh:

2.

  • The /var/lib/odoo directory does not exist, so I will create it:
    mkdir -p /var/lib/odoo
    

and follow davispuh instructions, just uninstall existing python-werkzeug using pip3 and install older version 0.16.1 using AUR archive.

Now just run it:

    sudo systemctl start postgresql.service

    sudo systemctl start odoo.service

and everything works fine, if I create a new database and user with e-mail and password, everything is fine after both services and reload.

Thank you very much for your help, ideally when the next version of Odoo will be able to work with python-werkzeug 1.0+.

By the way, after playing with the above packages I cannot run pgadmin4, I get the message:

    Python path: "/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/lib/python3.8/site-packages"
    Python Home: "/usr/lib/python3.8"
    Webapp path: "/usr/lib/pgadmin4/web/pgAdmin4.py"
    "Failed to launch application server, server thread exiting."
    qt.qpa.xcb: QXcbConnection: XCB Error: 3 (BadWindow), Sequence: 610,      Resource id: 13112968, Major Code: 40 (TranslateCoords), Minor Code: 0

here it will run using:

    sudo python3 /usr/lib/pgadmin4/web/pgAdmin4.py

and then I can launch the web interface at

    http://127.0.0.1:5050/

davispuh commented on 2020-03-29 14:15 (UTC)

Maybe you also need to fix

sudo chown -R odoo:odoo /var/lib/odoo
sudo chmod -R ug+rwX /var/lib/odoo

davispuh commented on 2020-03-29 14:12 (UTC)

I actually got it working very easily. Basically I just downgraded python-werkzeug like this

$ sudo pacman -U https://archive.archlinux.org/packages/p/python-werkzeug/python-werkzeug-0.16.1-1-any.pkg.tar.zst

And that's it, now it works for me. Proper fix would be add python-werkzeug-0.16 to AUR and then make this package to depend on it.

As for why it doesn't work for you guys is because most likly you've wrong permissions on those python folders. Try fixing with

$ sudo chown -R root:root /usr/lib/python3.8/site-packages
$ sudo chmod -R a+rX /usr/lib/python3.8/site-packages

0ofta commented on 2020-03-29 10:38 (UTC) (edited on 2020-03-29 10:42 (UTC) by 0ofta)

OK, so I was able to make Odoo run on a clean install of Arch now, by running it manually, instead of using systemctl. My steps where like this:

sudo pacman -Rdd python-werkzeug

sudo pip3 install libsass

sudo pip3 install Werkzeug==0.16.0

python /usr/bin/odoo -r odoo -d odoo -w test -i base

(The "-i base" is only used the first time to initialise the database, the -r is the database user and -d is the name of the database. -w is the password of the database user).

I will continue to see if I can figure out why the service gives a "500 Internal server error", but at least we have a workaround - which was my 1st priority right now. Using 'screen' or 'tmux' etc. should make it convenient to run it as this.

--- I do however understand that this is not what we all want, and will continue to investigate ---

If you find a -real- solution to the service not running correctly, please let me know, so I can make a fix in the package build.

Cheers

krouziciorel commented on 2020-03-29 08:49 (UTC)

I report the same bug as davispuh, it is currently not possible to use python-werkzeug 1.0.

I tried to install an older version: pip3 install werkzeug == 0.16.0

Now everything seems OK, sudo systemctl status odoo.service:

● odoo.service - Advanced OpenSource ERP and CRM server Loaded: loaded (/usr/lib/systemd/system/odo.service; disabled; vendor preset: disabled) Active: active (running) since Sun 2020-03-29 10:41:39 CEST; 2s ago Process: 2359 ExecStartPre = / usr / bin / install -d -m755 -o oooo -g oooo / run / oooo (code = exited, status = 0 / SUCCESS) PID Main: 2360 (odoo) Tasks: 4 (limit: 4515) Memory: 56.0M CGroup: /system.slice/odoo.service 602365 / usr / bin / python / usr / bin / odoo -c /etc/odoo/odoo.conf -pidfile = / run / odoo / odoo.pid

Mar 29 10:41:38 arch systemd [1]: Starting the OpenSource ERP and CRM server ... Mar 29 10:41:38 arch systemd [1]: Started Advanced OpenSource ERP and CRM server Mar 29 10:41:40 arch Odoo [2360]: 2020-03-29 08: 41: 40.097 2360 INFO? Odoo: Odoo version 13.0-20200321 Mar 29 10:41:40 arch Odoo [2360]: 2020-03-29 08: 41: 40.097 2360 INFO? odoo: Using configuration file at /etc/odoo/odoo.conf Mar 29 10:41:40 arch Odoo [2360]: 2020-03-29 08: 41: 40.097 2360 INFO? odoo: addons paths: ['/usr/lib/python3.8/site-packages/>' Mar 29 10:41:40 arch Odoo [2360]: 2020-03-29 08: 41: 40,098 2360 INFO? odoo: database: odoo @default: default Mar 29 10:41:40 arch Odoo [2360]: 2020-03-29 08: 41: 40,382 2360 INFO? odoo.addons.base.models.ir_actions_report Mar 29 10:41:40 arch Odoo [2360]: 2020-03-29 08: 41: 40.605 2360 INFO? odoo.service.server: HTTP service (werkzeug) running on>

After you try to start a Web login:

http://localhost:8068/

I'm getting 500 Internal Server Error

and via sudo systemctl status odoo.service:

● odoo.service - Advanced OpenSource ERP and CRM server Loaded: loaded (/usr/lib/systemd/system/odo.service; disabled; vendor preset: disabled) Active: active (running) since Sun 2020-03-29 10:41:39 CEST; 14s ago Process: 2359 ExecStartPre = / usr / bin / install -d -m755 -o oooo -g oooo / run / oooo (code = exited, status = 0 / SUCCESS) PID Main: 2360 (odoo) Tasks: 4 (limit: 4515) Memory: 58.6M CGroup: /system.slice/odoo.service 602365 / usr / bin / python / usr / bin / odoo -c /etc/odoo/odoo.conf -pidfile = / run / odoo / odoo.pid

Mar 29 10:41:50 arch Odoo [2360]: value = self.fget (obj) Mar 29 10:41:50 arch Odoo [2360]: File "/usr/lib/python3.8/site-packages/odoo/http.py", line 1263, in session_store Mar 29 10:41:50 arch Odoo [2360]: path = odoo.tools.config.session_dir Mar 29 10:41:50 arch Odoo [2360]: File "/usr/lib/python3.8/site-packages/odoo/tools/config.py", line 685, in session_dir Mar 29 10:41:50 Arch Odoo [2360]: os.makedirs (d, 0o700) Mar 29 10:41:50 arch Odoo [2360]: File "/usr/lib/python3.8/os.py", line 213, in makedirs Mar 29 10:41:50 arch Odoo [2360]: makedirs (head, exist_ok = exist_ok) Mar 29 10:41:50 arch Odoo [2360]: File "/usr/lib/python3.8/os.py", line 223, in makedirs Mar 29 10:41:50 arch Odoo [2360]: mkdir (name, mode) Mar 29 10:41:50 arch Odoo [2360]: PermissionError: [Errno 13] Operation refused: '/ var / lib / odoo' - - -

I see just [Errno 13].

Ubuntu also has problems: https://www.odoo.com/forum/help-1/question/no-module-named-werkzeug-contrib-164288

I haven't figured out the solution yet.

0ofta commented on 2020-03-29 02:08 (UTC)

Hi @davispuh, I will look at this in the morning (it's nighttime here now). In the meantime, I guess installing the module using pip might be a temporary solution?

Thanks for the heads up.

davispuh commented on 2020-03-29 01:56 (UTC)

Currently it fails with

  File "/usr/bin/odoo", line 5, in <module>
    import odoo
  File "/usr/lib/python3.8/site-packages/odoo/__init__.py", line 117, in <module>
    from . import service
  File "/usr/lib/python3.8/site-packages/odoo/service/__init__.py", line 7, in <module>
    from . import wsgi_server
  File "/usr/lib/python3.8/site-packages/odoo/service/wsgi_server.py", line 25, in <module>
    import werkzeug.contrib.fixers
ModuleNotFoundError: No module named 'werkzeug.contrib'

Because python-werkzeug is 1.0 which isn't compatible. See https://github.com/odoo/odoo/issues/45914

0ofta commented on 2020-03-21 08:00 (UTC)

Hi @Vallinger - the package is now updated to version 20200321. Sorry for the late reply.

Vallinger commented on 2020-02-26 16:24 (UTC)

It is now compatible with Python 3.8 - https://github.com/odoo/odoo/pull/40355 Install a newer nightly by changing the subversion in the PKGBUILD to a new one: 'yay -S --mflags "--skipchecksums" --editmenu odoo' in the PKGBUILD change the value of _pkgsubversion to a new one - https://nightly.odoo.com/13.0/nightly/src/ - e.g., 20200226.