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

Fails to link when using Python2.7(Undefined ref to Py_dealloc) but works when linking with Python 3.9 #353

Open
sierret opened this issue Oct 7, 2023 · 0 comments

Comments

@sierret
Copy link

sierret commented Oct 7, 2023

Hi. This may not be an issue with your project and it is also highly dependent on the user's local setup but I still think it's significant. The docs on the Github say to link using python2.7. This failed for me and could very well be an issue with my setup and some weird dependency issues especially since this is Linux. But all the same, when I tried to link against Python2.7 on Linux like to docs say, I get a 'Undefined reference to Py_dealloc'. But if I instead the linker flag for Python 3.9(and not Python2.7) it compiles and runs fine.

I pretty much ran the gauntlet of swapping linker flags, environment variables, adding path to packages/files, or package distributions and nothing seemed to make a difference. Only the python 3.9 flag fixed the issue. I only stopped short of building the packages from source.

It may also be a package version issue as well which I tried playing around with but no dice.

Again, different version of OS, then different distros of linux, then different package managers, then building from source vs package, then unique local setup can all affect an issue like this so it's hard to pin down. But all the same maybe that simple flag helps someone out.

Also maybe consider changing the quick setup instructions on the GitHub main to allow for python3.9 as well.

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

No branches or pull requests

1 participant