polynote icon indicating copy to clipboard operation
polynote copied to clipboard

binascii.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type

Open antonkulaga opened this issue 3 years ago • 4 comments

When I try to use pip-installed polars library in polynote I get binascii.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type Same library runs well locally ( Linux Mint 20.3, python 3.10). I think it has something to do with JEP configuration inside polynote binascii.cpython-38-x86_64-linux-gnu.so: undefined symbol: PyFloat_Type image

antonkulaga avatar Jan 22 '22 22:01 antonkulaga

image

Works for me with Python 3.7.12. Does that work for you? (Polynote officially supports Python 3.7)

jonathanindig avatar Jan 22 '22 23:01 jonathanindig

Python 3.7 is ancient, I usually run python 3.9 or 3.10 in most of my projects. I will try to downgrade to 3.7 or 3.8 and will let you know.

antonkulaga avatar Jan 23 '22 00:01 antonkulaga

We'd love to provide support for newer Python versions, but unfortunately we don't have the bandwidth to do so.

Please feel free to contribute - as a long time Polynote user it would be great to have your support!

jonathanindig avatar Jan 23 '22 01:01 jonathanindig

@antonkulaga Can you try this from ipython inside of a virtualenv (similar to what Polynote would be doing)? It looks like the virtualenv might have something to do with it.

Can you also try adding the LD_PRELOAD= with a path to libpython (as discussed in the jep issue that you linked) when starting polynote? If that helps, we can add that to the startup script.

jeremyrsmith avatar Jan 24 '22 17:01 jeremyrsmith

Hey @antonkulaga! Following up to see if you're still having this issue or had tried Jeremy's advice. If not, we will close this issue. Thanks!

omidmogasemi avatar Aug 25 '22 19:08 omidmogasemi