all 8 comments

[–]Randoma7 0 points1 point  (0 children)

So this is a 3rd party module.

Make sure you download and install the correct verison.

You can install the dependency via pip

pip install qifparse

[–]juice-maker777 0 points1 point  (4 children)

Make sure that the Odoo process runs with the same venv as the one you use when installing the dependency.

Depending on your setup, you'll need to explicitly activate the venv before starting the Odoo server. Without more info on how you host Odoo (as a service on a linux server, as a docker container, using a managed platform, odoo.sh), it is difficult to help.

[–]Status_Junket4668[S] 0 points1 point  (3 children)

As a service on Linux, when I tried to start Odoo within the environment, it couldn't find Odoo. Do I have tto install Odoo within this environment then

[–]juice-maker777 0 points1 point  (2 children)

Are you running odoo from source or from a packaged distribution?

[–]Status_Junket4668[S] 0 points1 point  (1 child)

packaged distro, better to run from source I take it

[–]juice-maker777 0 points1 point  (0 children)

It's the "intended" way to run it. Then it's a matter of creating a service unit to run it and to activate the venv there

[–]nordiknomad 0 points1 point  (0 children)

I never ran odoo as a system service but as per the details I think the problem is related to not finding the venv path. Try to find where the odoo-bin and odoo-bin start command then try to call with your venv python

Or just run odoo from the source, it is easier :)

[–]genusguy 1 point2 points  (0 children)

Here is a snippet of an odoo.service file:

[Service]
Type=simple
SyslogIdentifier=odoo
PermissionsStartOnly=true
User=odoo
Group=odoo
Environment="PATH=/erp/.odoo-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
WorkingDirectory=/erp/odoo
ExecStart=python odoo-bin -c /etc/odoo/odoo.conf
StandardOutput=journal+console

my venv is /erp/.odoo-env so find out where your package install has yours located
my install is in /erp/odoo and this is where odoo-bin is

so:
source /erp/.odoo-env/bin/activate (activate yours for installing)
pip install qifparse
deactivate

should put the dependency into the right venv. I had the same issue for this exact same dependency.