Skip to content

Unable to load psycopg2 library #626

@houxinlin

Description

@houxinlin

Describe the problem
Unable to load psycopg2 library
I don't know if this is a problem with Python or JEP. When I execute import psycopg2, an error occurs

jep.JepException: <class 'ImportError'>: cannot import name 'encodings' from 'psycopg2._psycopg' (D:\HXL\apps\python\3.13\Lib\site-packages\psycopg2\_psycopg.cp313-win_amd64.pyd)
	at D:\HXL\apps\python\3.13\Lib\site-packages\psycopg2\extensions.<module>(extensions.py:50)
	at D:\HXL\apps\python\3.13\Lib\site-packages\psycopg2\__init__.<module>(__init__.py:80)
	at <string>.<module>(<string>:1)
	at jep.Jep.exec(Native Method)
	at jep.Jep.exec(Jep.java:384)

Environment (please complete the following information):

  • OS Platform, Distribution, and Version: windows
  • Python Distribution and Version:3.13
  • Java Distribution and Version: 21
  • Jep Version: 431
  • Python packages used (e.g. numpy, pandas, tensorflow):psycopg2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions