Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure compability with Psycopg3 to extract libpq build version #2500

Merged

Conversation

adinhodovic
Copy link
Contributor

@adinhodovic adinhodovic commented May 5, 2024

Description

Struggling with getting dbapi and psycopg3 working.

Think this is the error, __libpq_version does not exist on psycopg3

https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/pq/pq_ctypes.py#L1220

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • test_compatible_build_version_psycopg_psycopg2_libpq

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

Struggling with getting dbapi and psycopg3 working.

Think this is the error, __libpq_version does not exist on psycopg3

https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/pq/pq_ctypes.py#L1220
Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, please add an entry in CHANGELOG

@adinhodovic adinhodovic requested a review from a team as a code owner May 6, 2024 12:55
@adinhodovic adinhodovic requested a review from xrmx May 6, 2024 12:56
@xrmx xrmx requested a review from federicobond May 15, 2024 08:31
@federicobond
Copy link
Member

@xrmx this is ready to merge.

@shalevr shalevr enabled auto-merge (squash) May 23, 2024 08:32
auto-merge was automatically disabled May 23, 2024 08:35

Pull Request is not mergeable

@shalevr shalevr merged commit da75015 into open-telemetry:main May 23, 2024
314 checks passed
@adinhodovic
Copy link
Contributor Author

Thanks!

shadchin pushed a commit to shadchin/opentelemetry-python-contrib that referenced this pull request May 29, 2024
…pen-telemetry#2500)

* fix: Ensure compability with Psycopg3 to extract libpq build version

Struggling with getting dbapi and psycopg3 working.

Think this is the error, __libpq_version does not exist on psycopg3

https://github.com/psycopg/psycopg/blob/master/psycopg/psycopg/pq/pq_ctypes.py#L1220

* docs: Add changelog entry

* docs: Fix spelling

---------

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants