hhatto / nude.py

Nudity detection with Python
MIT License
921 stars 131 forks source link

I'm a getting a installation error. #25

Open JibinKoshy07 opened 3 years ago

JibinKoshy07 commented 3 years ago

$ pip install --upgrade nudepy

ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lbjhc6pt/nudepy_3b195ab8384e42f987f0811934cf8ca8/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lbjhc6pt/nudepy_3b195ab8384e42f987f0811934cf8ca8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-psp1didq                                        
       cwd: /tmp/pip-install-lbjhc6pt/nudepy_3b195ab8384e42f987f0811934cf8ca8/         
  Complete output (9 lines):                                                           
  running bdist_wheel                                                                  
  running build                                                                        
  running build_py                                                                     
  creating build                                                                       
  creating build/lib.linux-x86_64-3.9                                                  
  copying nude.py -> build/lib.linux-x86_64-3.9                                        
  running build_ext                                                                    
  cythoning skin_classifier.pyx to skin_classifier.c                                   
  error: /tmp/pip-install-lbjhc6pt/nudepy_3b195ab8384e42f987f0811934cf8ca8/skin_classifier.pyx                                                                                
  ----------------------------------------                                             
  ERROR: Failed building wheel for nudepy
mouhib333 commented 2 years ago

Yeah same here

Sadew451 commented 2 years ago

yes

evstratios commented 2 years ago

me too - how do we fix it - I'm trying to install into a virtual environment

meassinal commented 2 years ago

Hi, I'm also facing the same problem. I've tried several time and did not have luck.

I tried to install on macOS Catalina and got the following errors:

ERROR: Command errored out with exit status 1: command: /Users/meassinal/.virtualenvs/py39cv45/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-install-iejdf_59/nudepy_af8b11b777aa489cbb0acd6187a54671/setup.py'"'"'; __file__='"'"'/private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-install-iejdf_59/nudepy_af8b11b777aa489cbb0acd6187a54671/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-record-_gl7hcnh/install-record.txt --single-version-externally-managed --compile --install-headers /Users/meassinal/.virtualenvs/py39cv45/include/site/python3.9/nudepy cwd: /private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-install-iejdf_59/nudepy_af8b11b777aa489cbb0acd6187a54671/ Complete output (10 lines): running install /Users/meassinal/.virtualenvs/py39cv45/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.macosx-10.15-x86_64-3.9 copying nude.py -> build/lib.macosx-10.15-x86_64-3.9 running build_ext error: /private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-install-iejdf_59/nudepy_af8b11b777aa489cbb0acd6187a54671/skin_classifier.pyx

ERROR: Command errored out with exit status 1: /Users/meassinal/.virtualenvs/py39cv45/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-install-iejdf_59/nudepy_af8b11b777aa489cbb0acd6187a54671/setup.py'"'"'; __file__='"'"'/private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-install-iejdf_59/nudepy_af8b11b777aa489cbb0acd6187a54671/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/cp/sss0666n22l_cj9_8b196rk40000gn/T/pip-record-_gl7hcnh/install-record.txt --single-version-externally-managed --compile --install-headers /Users/meassinal/.virtualenvs/py39cv45/include/site/python3.9/nudepy Check the logs for full command output.

I really appreciate the help from here. Thanks in advance.

WakandaWebWeaver commented 2 years ago

Requesting the author to answer...

cyber-chuvash commented 1 year ago

Downgrading from Python 3.11 to 3.7.16 helped in my case.