Open vvzvlad opened 1 year ago
Same problem. Did you find solution?
I used "python3.9 -m pip install nudepy" because last python version in my system (3.11) not contain precompiled nudepy, wherefore in install process pip trying build from sources and crashing.
Two solutions:
Stay with nudepy:
You should have python-dev
and cython
installed (and if your own package depends on nude.py, all your users must have it), because nude.py does not comes with binary (wheel) build. Maybe this will help.
Switch to mudepy
Mudepy is maintained fork of nudepy.
Github URL: https://github.com/yaroslaff/mudepy
Disclaimer: this is my project. My other project nudecrawler depends on nudepy too , but can not be installed with current nudepy version because fails to compile binary wheel, so I created this replacement.
For now I do not promise to maintain mudepy for long time (maybe I will abandon this project if @hhatto will fix nudepy). But usually I'm quite stable and my other projects lives for long time.
How to switch to mudepy
Just change one letter, nudepy -> mudepy
. Mudepy uses same module name (nude.py
), same class name (Nude
), same console script (nudepy
). If you will like to change back - change one letter again. To install it: pip install mudepy
. To use as dependency - use mudepy
. Not very hard.
How mudepy is better
mudepy comes with binary wheels (manylinux
wheels), so it's easier to install for user, has lower requirements (no need for cython or longintrepr.h). I will try to make such wheels for platforms which I can access. For other systems (like MacOS) I may need help from someone, who can compile it there and provide me package file.
in mudepy I fixed another problem which comes with newer (10.0.0, since 1st Jul 2023) version of Pillow PIL.Image.ANTIALIAS
which produces this error: AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
https://stackoverflow.com/questions/76616042/attributeerror-module-pil-image-has-no-attribute-antialias
I do not plan to invest much of time into mudepy to develop it - it's mission is to be 'working version of nudepy': lightweight, simple, easy to use, easy to embed with your project. No new features expected, but it must be working.