cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error: No module named 'psycopg2._psycopg'

rbeguin
Observer

Hello,


Anyone can help me solving this error please :

rbeguin_0-1667583207806.png

 

Here is Python import in my .py file :

    import psycopg2
 
Here is install requirement in plugin.json :
rbeguin_1-1667583399679.png

 

I launched this command to build extension :
plugin_sdk build_plugin -t <my_token>

I tryed many things :

1) building extension directly in production host with this command (it build but doesnt'n work when launching)

2) building extension in my dev personnal computer with this command (it build but doesnt'n work when uploading and launching on production host but work well in my personnal computer where activegate is launched)

 

Here is error in logs :

rbeguin_2-1667583893424.png

I don't understand because psycopg2._psycopg exists :

rbeguin_3-1667584000040.png

 

thanks

 

1 REPLY 1

david_lopes
Dynatrace Mentor
Dynatrace Mentor

You need to use python 3.8 to build your extension, because that is the python version that is bundled with the Activegate and OneAgent.

Featured Posts