Open MihaiCozma1997 opened 4 years ago
Please Explain your issue more in details . Don't put random and unprofessional way....................... Try " python setup.py build_ext --inplace".
running build_ext building 'darkflow.cython_utils.nms' extension Traceback (most recent call last): File "setup.py", line 73, in <module> ext_modules = cythonize(ext_modules) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\command\build_ext.py", line 84, in run _build_ext.run(self) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension _build_ext.build_extension(self, ext) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 534, in build_extension depends=ext.depends) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\_msvccompiler.py", line 346, in compile self.initialize() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\_msvccompiler.py", line 239, in initialize vc_env = _get_vc_env(plat_spec) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\msvc.py", line 1620, in return_env if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist): File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
This is what i get after running "python setup.py build_ext --inplace". I have also install the latest versions of Cython, Tensorflow, numpy and OpenCV.
running build_ext building 'darkflow.cython_utils.nms' extension Traceback (most recent call last): File "setup.py", line 73, in <module> ext_modules = cythonize(ext_modules) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\command\build_ext.py", line 84, in run _build_ext.run(self) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension _build_ext.build_extension(self, ext) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\command\build_ext.py", line 534, in build_extension depends=ext.depends) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\_msvccompiler.py", line 346, in compile self.initialize() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\distutils\_msvccompiler.py", line 239, in initialize vc_env = _get_vc_env(plat_spec) File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\msvc.py", line 171, in msvc14_get_vc_env return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env() File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\site-packages\setuptools\msvc.py", line 1620, in return_env if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist): File "C:\Users\Vlad\AppData\Local\Programs\Python\Python37\lib\genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
This is what i get after running "python setup.py build_ext --inplace". I have also install the latest versions of Cython, Tensorflow, numpy and OpenCV.
Don't install the latest version of tensorflow because its not support ........i checked many times...........so after than i use less version of tensorflow which have to support.
Go to my README file (links are below ) and read through "step 1" where i mention which version i used in my project. (i am not written in professional way due to lack of time but its enough to understand.)
https://github.com/ankitAMD/Darkflow-object-detection/blob/master/README.md
if you have more problem related to this project tell me ......may be i help you.
Is it necessary that i run python 2.7 or does it work with python 3 too? I am also trying to install it on windows 10, I saw that in your README file you are working on UBUNTU.
First things yo go for tensorflow version which i mention in readme file for whatever OS are ............yeah it also work for python 3 . it also works in windows 10. i mention that i am not using GPU (if you are using gpu you have to use cuda also)........I am using only CPU.
Try to create environment using conda if you using environment it does not effect basic installation.
How to create conda environment in ubuntu check it readme file (https://github.com/ankitAMD/1Ant_Bees_classification_Pytorch) if you using windows 10 the command are more similiar but search on google.
if you want any help ping me.
Sorry for late reply .......
I have solved it on my Computer, I am going to try and do it on my Laptop aswell. Thank you for the help.
I have solved it on my Computer, I am going to try and do it on my Laptop aswell. Thank you for the help.
I am glad and happy that i help you @Hypecolt to solve this issue . Please Close this issue @MihaiCozma1997 .
hey @ankitAMD , I am also facing similar problem like ModuleNotFoundError: No module named 'setuptools'
I followed your suggestions, I tried installing tensorflow 1.0.0 but I am facing errors like No matching distribution found for tensorflow==1.0.0
could you please help me!
@snehitvaddi
"No matching distribution found for tensorflow==1.0.0 " This error might be comes when no distribution are matching to other installed library/softwares or may be tensorflow 1.0.0 might be not supported to other libraries.
As i written on my github readme page ......just read and follow properly .....so this error not come. Try install other version of tensorflow ............i installed tensorflow version 1.14.0 .
https://github.com/ankitAMD/Darkflow-object-detection
This is github project link ..........First i installed some software/library of specific version and after then i created environment and then installed all required software, library and third party libraries on that environment which doesn't affect any other project.
Just follow that readme and mainly installation process is started step1. Leave the last third line in step1 because we already installed libraries/software.
If your this issue solved please like this comment and reply also ......it encourages me to help more to anyone. Sorry for late reply. Ask me for any help for regarding this Project.
@ankitAMD
I installed TensorFlow version 1.14.0 . But now I am getting error :
from setuptools import setup, find_packages ModuleNotFoundError: No module named 'setuptools'
How to resolve this??
First open the terminal and go in your specific environment and
Check Is "setuptools " installed or not using below command
easy_install --version
If not installed than use below command for installing.
Check it out with this command on terminal.
For debian :
"sudo apt-get install python-setuptools"
For Python 3.x:
sudo apt-get install python3-setuptools
@ankitAMD Thank you, it worked after installing setuptools of version 41.0.0
@ankitAMD Thank you, it worked after installing setuptools of version 41.0.0 version 41.0.0 may be latest version. I am also happy for you that it works. If any more issue tag me or ask me . @snehitvaddi
I have solved it on my Computer, I am going to try and do it on my Laptop aswell. Thank you for the help.
hi! Could you tell me how to solve this issue?
@anhhd2703 have you referred the above setuptools installation steps https://github.com/thtrieu/darkflow/issues/1103#issuecomment-591840863 given by @ankitAMD ?
if you have a problem with install setup tools. https://visualstudio.microsoft.com/visual-cpp-build-tools/ I think you can try to download this. It works for me.
Vào Th 5, 21 thg 5, 2020 vào lúc 18:00 Snehit Vaddi < notifications@github.com> đã viết:
@anhhd2703 https://github.com/anhhd2703 have you referred the above setuptools installation steps #1103 (comment) https://github.com/thtrieu/darkflow/issues/1103#issuecomment-591840863 given by @ankitAMD https://github.com/ankitAMD ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/thtrieu/darkflow/issues/1103#issuecomment-632022991, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7YLAB7OKU5GXR6BDUJEHLRSUCUPANCNFSM4JX2PXFQ .
-- (Mr.) Hoang Duc Anh Nodejs Developer MCD Company Address: 85/02 Ha Dinh, Thanh Xuan Trung Ward, Thanh Xuan District, Hanoi, Vietnam Mobile: (+84) 987.531.185
Email: anhhd2703@gmail.com
i try to use python3 setup.py build_ext --inplace with python 3.6.8 and it gives the error above , any help ? please