Skip to Content
Menu
This question has been flagged
2 Replies
1448 Views

I get this when trying to run the utility:

ModuleNotFoundError: no module named 'pg.activity.Data'


Avatar
Discard
Best Answer

the following directory seems to be missing
/usr/lib/python3/dist-packages/pgactivity
you should be able to find it from the shell, inside is the file Data.py which contains the reference line mentioned in this path /usr/local/bin/pg_activity line 7 import pgactivity.Data

to correct this, just confirm that the ubuntu version of your branch is 20.04 

Avatar
Discard
Best Answer

You cannot run the PG_ACTIVITY utility because it is not installed.

Due to our service level agreement (SLA) we do not allow additional python libraries to be installed via command line in order to maintain 99.9% Uptime.


If you are interested in performance monitoring tools, please use the MONITOR tab of your branch, where you can see System metrics: 


The MONITOR tab also creates flamegraphs for you to profile your code.



Avatar
Discard

But a few days back this tool is available on odoo.sh. Version 15 is still available for example. But in version 14 is not available.

Showing this:

Traceback (most recent call last):
File "/usr/local/bin/pg_activity", line 7, in <module>
import pgactivity.Data
ModuleNotFoundError: No module named 'pgactivity.Data'

Related Posts Replies Views Activity
0
Oct 24
78
1
Sep 24
1643
0
Sep 24
321
0
Sep 24
133
0
Sep 24
159