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

undefined symbol: deflateInit2_ on debian 11 #7

Open
info2000 opened this issue Jun 12, 2022 · 5 comments
Open

undefined symbol: deflateInit2_ on debian 11 #7

info2000 opened this issue Jun 12, 2022 · 5 comments

Comments

@info2000
Copy link

info2000 commented Jun 12, 2022

When try to import extractnet library, on debian 11 with python 3.8 (fastapi docker image) I'm having this error

File "/usr/local/lib/python3.8/site-packages/extractnet/__init__.py", line 1, in <module>
    from extractnet.pipeline import Extractor
  File "/usr/local/lib/python3.8/site-packages/extractnet/pipeline.py", line 10, in <module>
    from .nn_models import NewsNet
  File "/usr/local/lib/python3.8/site-packages/extractnet/nn_models.py", line 7, in <module>
    from .blocks import TagCountReadabilityBlockifier
ImportError: /usr/local/lib/python3.8/site-packages/extractnet/blocks.cpython-38-x86_64-linux-gnu.so: undefined symbol: deflateInit2_

I had the zlib library installed, what could be the issue?

@carlosrokk3r
Copy link

Seems like the issue is that Cython's modules are only compiled for OS X, so what you can do is clone the project, install the dev requirements and them just run make install, this will re-compile Cython's modules and then you'll be able to use the library.

BTW, make sure you have installed libxml2-dev in your system before running the make command.

@dan100110
Copy link

I'm getting a similar issue, however it's only occurring on github actions. when I try to run it locally in the WSL using ubuntu it works fine. I'm not sure how to implement this fix to run in github however. do you have any thoughts?

@merionum
Copy link

merionum commented Nov 4, 2022

Same issue on Ubuntu

@DoctorSlimm
Copy link

any resolutions??? cant get it to run on macos docker, or amazon linux, just want to put this into a lambda function but even the package itself is too big to fit into a zip...

@vgavro
Copy link

vgavro commented Dec 25, 2023

For fix see #16 (comment) and #18 PR.

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

6 participants