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

error while installing in windows #79

Closed
gokuljs opened this issue Jun 22, 2020 · 27 comments
Closed

error while installing in windows #79

gokuljs opened this issue Jun 22, 2020 · 27 comments
Labels

Comments

@gokuljs
Copy link

gokuljs commented Jun 22, 2020

Screenshot (42)

@deepjyoti30
Copy link
Owner

Hey @gokuljs thanks for reporting that. I am aware that the app has issues on Windows currently.

Did you install from the windows branch or the master branch??

Also can you please tell me the output of pip install tensorflow. The image you shared points out that tensorflow is not available according to Python (which is kind of odd).

This might be a possible solution to manually install tensorflow: python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.12.0-py3-none-any.whl

@gokuljs
Copy link
Author

gokuljs commented Jun 22, 2020

@deepjyoti30 now i just tried running the windows branch and this is the output

Screenshot (49)

pip install tensorflow is not working output is shown in below pic

Screenshot (54)

**i think this might be the reason why tensorflow is not getting installed windows **
tensorflow/tensorflow#20444

@deepjyoti30
Copy link
Owner

@gokuljs I think for the time, if it doesn't bother you, you can try moving to python3.6 and then installing it. Seems this is 3.7 issue and no ETA is available, I might have to add Python 3.6 as required dependency for ytmdl for Windows.

Any way, if you can test it by downgrading to Python 3.6, I would really appreciate it since I need testers for Windows ATM.

@gokuljs
Copy link
Author

gokuljs commented Jun 23, 2020

@deepjyoti30 i tried installing tensorflow using conda conda install tensorflow and it got installed
then again i tried running the program this is the output i got
Screenshot (64)

@deepjyoti30
Copy link
Owner

@gokuljs Seems like it's the same issue with inaSpeechSegmenter.

Can you check if it is available in pip by doing pip install inaSpeechSegmenter?

This is their repo. Just make sure the spelling is correct. I checked your photo as well as the source code multiple times, it seems like the spelling is correct which means it's the same error as tensorflow.

Can you try installing it with conda as well?

@gokuljs
Copy link
Author

gokuljs commented Jun 23, 2020

@deepjyoti30 while installing this package pip install inaSpeechSegmenter should i even install pytorch ?

@deepjyoti30
Copy link
Owner

@gokuljs I don't think pytorch is a dependency. However if you get some error showing it's not installed you can go ahead and install it.

@JerryBels
Copy link

Okay, I was able to get there. Installed tensorFlow with pip, it worked for me. Then :

>python setup.py install
Partial import of skimage during the build process.
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\_shared\geometry.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skima
ge\_shared\transform.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\_shared\interpolation.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\_shared\fast_exp.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\draw\_draw.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\feature\corner_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skim
age\feature\censure_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\feature\orb_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\feature\brief_cy.c C:\Users\
JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\feature\_texture.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\feature\_hessian_det_appx.c C:\Users\JB\AppData\Local\Temp\e
asy_install-a7n0u0i6\scikit-image-0.17.2\skimage\feature\_hoghistogram.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\feature\_cascade.cpp C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\ski
mage\feature\_haar.cpp
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\restoration\_unwrap_1d.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2
\skimage\restoration\_unwrap_2d.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\restoration\_unwrap_3d.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\restoration
\_denoise_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\restoration\_nl_means_denoising.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\filters\rank/core_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\s
kimage\filters\rank/generic_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\filters\rank/percentile_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\filters\
rank/bilateral_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\filters\_multiotsu.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\future\graph\_ncut_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\graph\_spath.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\g
raph\_mcp.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\graph\heap.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\io\_plugins/_colormixer.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.
2\skimage\io\_plugins/_histograms.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\measure\_ccomp.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage
\measure\_find_contours_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\measure\_moments_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\measure\_marching_c
ubes_classic_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\measure\_marching_cubes_lewiner_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\measure\_pnpoly
.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\morphology\_skeletonize_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.
17.2\skimage\morphology\_convex_hull.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\morphology\_greyreconstruct.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\m
orphology\_extrema_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\morphology\_skeletonize_3d_cy.cpp
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\morphology\_extrema_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\morphology\_flood_fill_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\morphology\_max_tree.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\transform\_hough_transform.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.
17.2\skimage\transform\_warps_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\transform\_radon_transform.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\util\_remap.cpp
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\segmentation\_watershed_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.
17.2\skimage\segmentation\_felzenszwalb_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\skimage\segmentation\_quickshift_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\ski
mage\segmentation\_slic.c
no previously-included directories found matching 'doc\build'
no previously-included directories found matching 'doc\gh-pages'
Missing compiler_cxx fix for MSVCCompiler
Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 438, in compile
    self.spawn(args)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 557, in spawn
    return super().spawn(cmd)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\ccompiler.py", line 90, in <lambda>
    m = lambda self, *args, **kw: func(self, *args, **kw)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\ccompiler.py", line 173, in CCompiler_spawn
    raise DistutilsExecError('Command "%s" failed with exit status %d%s' %
distutils.errors.DistutilsExecError: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\P
ython\Python38\lib\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Buil
dTools\VC\Tools\MSVC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\command\build_ext.py", line 272, in run
    self.build_extensions()
  File "C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\setup.py", line 105, in build_extensions
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\command\build_ext.py", line 384, in build_extension
    c_objects = self.compiler.compile(c_sources,
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 440, in compile
    raise CompileError(msg)
distutils.errors.CompileError: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\Python\
Python38\lib\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
\VC\Tools\MSVC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
    yield saved
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
    yield
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\setup.py", line 190, in <module>
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\core.py", line 169, in setup
    return old_setup(**new_attr)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\Python\Python38\lib
\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MS
VC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 1144, in run_setup
    run_setup(setup_script, args)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 253, in run_setup
    raise
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
    yield
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\_vendor\six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
    yield saved
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
    yield
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "C:\Users\JB\AppData\Local\Temp\easy_install-a7n0u0i6\scikit-image-0.17.2\setup.py", line 190, in <module>
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\core.py", line 169, in setup
    return old_setup(**new_attr)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\Python\Python38\lib
\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MS
VC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 27, in <module>
    setuptools.setup(
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
    dist = best[req.key] = env.best_match(
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
    return installer(requirement)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
    return cmd.easy_install(req)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 679, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 705, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 890, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 1158, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 1146, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users
\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Micro
soft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

@JerryBels
Copy link

Also, what I reported before was while installing with git clone https://github.com/deepjyoti30/ytmdl && cd ytmdl && python setup.py install

If I install using pip, it works, but I absolutely don't know how to use ytmdl then! Pip installed it in a specific location, pip show ytmdl gave it. But in there there are :

1

@deepjyoti30
Copy link
Owner

@JerryBels If you have installed ytmdl, probably all the dependencies were installed. You can run the script alternately.

Just go to the cloned repo and run the ytmdl script inside the bin directory using Python. You can do something like

py3 bin\ytmdl

I would also suggest you try running the Windows Branch rather than the master one. I have made some changes to the source regarding a bug reported by another user that was occuring on Windows.

@JerryBels
Copy link

JerryBels commented Jul 3, 2020

C:\Users\JB\Documents\tmp\ytmdl\bin>py ytmdl "test"
Traceback (most recent call last):
  File "ytmdl", line 19, in <module>
    from ytmdl import (
ImportError: cannot import name 'manual' from 'ytmdl' (C:\Users\JB\AppData\Local
\Programs\Python\Python38\lib\site-packages\ytmdl\__init__.py)

I will try the windows branch.

[EDIT] same error when running that same command on the windows branch.

@deepjyoti30
Copy link
Owner

@JerryBels Did you get just this much log or did anything else appear. Seems like there should have been additional info for the error.

Since ytmdl is installed the error you got is occuring at the runtime and Python would have surely showed you a reason for it.

@JerryBels
Copy link

Nope, that's all. Is there a command I could use for an error log or something?

@deepjyoti30
Copy link
Owner

@JerryBels It's just weird. It should work. Because other people were at least able to get it running but they later faced issues.

Can you try uninstalling the version you installed from pip??

Once that's done, installed the windows branch and you should be able to run it at least.

Also in order to get more logs you can always pass the --level DEBUG flag, but this current issues seems like it's getting thrown by Python itself and it hasn't even started ytmdl stuff yet.

@JerryBels
Copy link

Okay, removed pip install, removed all repos, started fresh. Same issue as I first had :

C:\Users\JB\Documents>git clone https://github.com/deepjyoti30/ytmdl && cd ytmdl
Cloning into 'ytmdl'...
remote: Enumerating objects: 98, done.
remote: Counting objects: 100% (98/98), done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 1140 (delta 49), reused 76 (delta 32), pack-reused 1042
Receiving objects: 100% (1140/1140), 7.47 MiB | 1.54 MiB/s, done.
Resolving deltas: 100% (667/667), done.

C:\Users\JB\Documents\ytmdl>git checkout windows
Switched to a new branch 'windows'
Branch windows set up to track remote branch windows from origin.

C:\Users\JB\Documents\ytmdl>python setup.py install
build\bdist.win-amd64\egg\sidekit\features_extractor.py:312: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):
build\bdist.win-amd64\egg\sidekit\features_extractor.py:501: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):
build\bdist.win-amd64\egg\sidekit\nnet\feed_forward.py:366: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):
build\bdist.win-amd64\egg\sidekit\sidekit_wrappers.py:85: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):
build\bdist.win-amd64\egg\sidekit\sidekit_wrappers.py:192: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if PARALLEL_MODULE is 'multiprocessing':
build\bdist.win-amd64\egg\sidekit\sidekit_wrappers.py:203: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif PARALLEL_MODULE is 'threading':
build\bdist.win-amd64\egg\sidekit\sidekit_wrappers.py:213: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif PARALLEL_MODULE is 'MPI':
build\bdist.win-amd64\egg\sidekit\sidekit_wrappers.py:256: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if debug is 0:
build\bdist.win-amd64\egg\sidekit\sidekit_wrappers.py:263: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if debug is 1:
build\bdist.win-amd64\egg\sidekit\sidekit_wrappers.py:265: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif debug is 2:
zip_safe flag not set; analyzing archive contents...
sidekit.__pycache__.__init__.cpython-38: module references __file__
sidekit.libsvm.__pycache__.svm.cpython-38: module references __file__
sidekit.libsvm.__pycache__.svmutil.cpython-38: module references __file__
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\features_extractor.py:312: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\features_extractor.py:501: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\sidekit_wrappers.py:85: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\sidekit_wrappers.py:192: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if PARALLEL_MODULE is 'multiprocessing':
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\sidekit_wrappers.py:203: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif PARALLEL_MODULE is 'threading':
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\sidekit_wrappers.py:213: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif PARALLEL_MODULE is 'MPI':
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\sidekit_wrappers.py:256: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if debug is 0:
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\sidekit_wrappers.py:263: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if debug is 1:
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\sidekit_wrappers.py:265: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif debug is 2:
c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg\sidekit\nnet\feed_forward.py:366: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if not os.path.exists(dir_name) and (dir_name is not ''):

Installed c:\users\jb\documents\ytmdl\.eggs\sidekit-1.3.6.6-py3.8.egg
Searching for scikit-image
Reading https://pypi.org/simple/scikit-image/
Downloading https://files.pythonhosted.org/packages/54/fd/c1b0bb8f6f12ef9b4ee8d7674dac82cd482886f8b5cd165631efa533e237/scikit-image-0.17.2.tar.gz#sha256=bd954c0588f0f7e81d9763dc95e06950e68247d540476e06cb77bcbcd8c2d8b3
Best match: scikit-image 0.17.2
Processing scikit-image-0.17.2.tar.gz
Writing C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\setup.cfg
Running scikit-image-0.17.2\setup.py -q bdist_egg --dist-dir C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\egg-dist-tmp-j6k6pyix
Partial import of skimage during the build process.
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\_shared\geometry.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skima
ge\_shared\transform.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\_shared\interpolation.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\_shared\fast_exp.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\draw\_draw.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\feature\corner_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skim
age\feature\censure_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\feature\orb_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\feature\brief_cy.c C:\Users\
JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\feature\_texture.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\feature\_hessian_det_appx.c C:\Users\JB\AppData\Local\Temp\e
asy_install-ypwc9_ei\scikit-image-0.17.2\skimage\feature\_hoghistogram.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\feature\_cascade.cpp C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\ski
mage\feature\_haar.cpp
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\restoration\_unwrap_1d.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2
\skimage\restoration\_unwrap_2d.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\restoration\_unwrap_3d.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\restoration
\_denoise_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\restoration\_nl_means_denoising.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\filters\rank/core_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\s
kimage\filters\rank/generic_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\filters\rank/percentile_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\filters\
rank/bilateral_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\filters\_multiotsu.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\future\graph\_ncut_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\graph\_spath.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\g
raph\_mcp.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\graph\heap.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\io\_plugins/_colormixer.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.
2\skimage\io\_plugins/_histograms.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\measure\_ccomp.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage
\measure\_find_contours_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\measure\_moments_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\measure\_marching_c
ubes_classic_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\measure\_marching_cubes_lewiner_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\measure\_pnpoly
.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\morphology\_skeletonize_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.
17.2\skimage\morphology\_convex_hull.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\morphology\_greyreconstruct.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\m
orphology\_extrema_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\morphology\_skeletonize_3d_cy.cpp
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\morphology\_extrema_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\morphology\_flood_fill_cy.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\morphology\_max_tree.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\transform\_hough_transform.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.
17.2\skimage\transform\_warps_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\transform\_radon_transform.c
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\util\_remap.cpp
Cython >= 0.23.4 not found; falling back to pre-built C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\segmentation\_watershed_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.
17.2\skimage\segmentation\_felzenszwalb_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\skimage\segmentation\_quickshift_cy.c C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\ski
mage\segmentation\_slic.c
no previously-included directories found matching 'doc\build'
no previously-included directories found matching 'doc\gh-pages'
Missing compiler_cxx fix for MSVCCompiler
Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 438, in compile
    self.spawn(args)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 557, in spawn
    return super().spawn(cmd)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\ccompiler.py", line 90, in <lambda>
    m = lambda self, *args, **kw: func(self, *args, **kw)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\ccompiler.py", line 173, in CCompiler_spawn
    raise DistutilsExecError('Command "%s" failed with exit status %d%s' %
distutils.errors.DistutilsExecError: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\P
ython\Python38\lib\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\Buil
dTools\VC\Tools\MSVC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\dist.py", line 985, in run_command
    cmd_obj.run()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\command\build_ext.py", line 272, in run
    self.build_extensions()
  File "C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\setup.py", line 105, in build_extensions
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 449, in build_extensions
    self._build_extensions_serial()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
    self.build_extension(ext)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\command\build_ext.py", line 384, in build_extension
    c_objects = self.compiler.compile(c_sources,
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\_msvccompiler.py", line 440, in compile
    raise CompileError(msg)
distutils.errors.CompileError: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\Python\
Python38\lib\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools
\VC\Tools\MSVC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
    yield saved
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
    yield
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\setup.py", line 190, in <module>
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\core.py", line 169, in setup
    return old_setup(**new_attr)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\Python\Python38\lib
\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MS
VC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 1144, in run_setup
    run_setup(setup_script, args)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 253, in run_setup
    raise
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
    yield
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__
    self.gen.throw(type, value, traceback)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\_vendor\six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
    yield saved
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
    yield
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "C:\Users\JB\AppData\Local\Temp\easy_install-ypwc9_ei\scikit-image-0.17.2\setup.py", line 190, in <module>
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\distutils\core.py", line 169, in setup
    return old_setup(**new_attr)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\distutils\core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\JB\AppData\Local\Programs\Python\Python38\lib
\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MS
VC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 27, in <module>
    setuptools.setup(
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
    dist = best[req.key] = env.best_match(
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
    return installer(requirement)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
    return cmd.easy_install(req)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 679, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 705, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 890, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 1158, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "C:\Users\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\setuptools\command\easy_install.py", line 1146, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users
\JB\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy\core\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Users\JB\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Micro
soft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include /Tcskimage\_shared\geometry.c /Fobuild\temp.win-amd64-3.8\Release\skimage\_shared\geometry.obj" failed with exit status 2

@deepjyoti30
Copy link
Owner

@JerryBels Seems like the errors are caused by some of the dependencies and not ytmdl itself.

Also, are you sure python calls Python3 or is it python2. You can check that by using python --version.

@JerryBels
Copy link

Nah it's Python 3.8.2. I would gladly provide you with debug log or something if you want.

@deepjyoti30
Copy link
Owner

@JerryBels I pushed some changes to the windows branch. Please fetch the latest source.

Once that's done, opensetup.py and remove tensorflow and inaSpeechSegmenter.

After that, install by running python setup.py install.

NOTE: The changes I made are to make import of the above dependencies optional so you can remove them from setup.py for now in order to get rid of the error/

@JerryBels
Copy link

Followed your instructions :)

C:\Users\JB\Documents\ytmdl>py bin\ytmdl "test"
  File "bin\ytmdl", line 221
    =======
    ^
SyntaxError: invalid syntax

C:\Users\JB\Documents\ytmdl>

@JerryBels
Copy link

I don't know if it can help you but using Biswaroop's fork I'm able to download songs when providing an url - ytmdl works perfectly there. When not providing an url I have an error though - but the program runs without issue. Not sure if it can help you troobleshoot it.

@deepjyoti30
Copy link
Owner

@JerryBels I don't think that would be of much help. His fork is way outdated and since then I have done a lot of changes in the source so probably that is why this issues are occuring now.

@deepjyoti30
Copy link
Owner

@JerryBels It was my mistake. I had cherry picked a commit from the master branch and I did not checked the code but git had added some conflicts in the code itself and that is why you are getting that error.

I fixed that in the latest commit in the windows branch. If you wish, you can check and report back.

@JerryBels
Copy link

Okay, we got progress :)

C:\Users\JB\Documents\tmp\ytmdl>py bin\ytmdl "test"
 ==> Searching to see if already present in C:\Users\JB\Music
 ==>
Exiting..!

It exited when I ctrl+C'd it after more than 5 minutes.

@deepjyoti30
Copy link
Owner

@JerryBels Pass --nolocal.

I need to rework thr logic of searching for the song but till then the above will fix the issue.

@JerryBels
Copy link

Okay, I tried it now.

C:\Users\JB\Documents\tmp\ytmdl>py bin\ytmdl "test" --nolocal
 ==> Searching Youtube for test
 ==> No song found. Please try again with a different keyword.

C:\Users\JB\Documents\tmp\ytmdl>py bin\ytmdl "Tears in Heaven" --nolocal
 ==> Searching Youtube for Tears in Heaven
 ==> No song found. Please try again with a different keyword.

@stale
Copy link

stale bot commented Oct 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 7 days. Thank you for your contributions.

@stale stale bot added the stale label Oct 23, 2020
@stale stale bot closed this as completed Oct 30, 2020
@deepjyoti30
Copy link
Owner

@JerryBels @gokuljs ytmdl should work on Windows now. Can you check this comment?

As of now, I tested the changes and it is working all right.

Thanks to you guys for reporting all the issues etc!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants