License error on install #759
Replies: 3 comments 3 replies
-
|
You are missing a C++ compiler for windows, please install "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ and try again. Let me know if that works. |
Beta Was this translation helpful? Give feedback.
-
|
Please try to conda install pysam separately. |
Beta Was this translation helpful? Give feedback.
-
|
WSL2 should work if you have permission to install that. Alternatively, click the green "code" tab on the JCVI homepage and open a github codespace for this repo - that will be in a linux machine. Might work if your dataset is not very large. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
I'm hoping that you can help me. On trying to install the JCVI package in python, I get the following error:
Collecting jcvi==1.5.3
Using cached jcvi-1.5.3.tar.gz (782 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[67 lines of output]
C:\Users\nicho\AppData\Local\Temp\pip-build-env-pptg_v6n\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning:
project.licenseas a TOML table is deprecated!!
!!
corresp(dist, value, root_dir)
C:\Users\nicho\AppData\Local\Temp\pip-build-env-pptg_v6n\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
!!
dist._finalize_license_expression()
C:\Users\nicho\AppData\Local\Temp\pip-build-env-pptg_v6n\overlay\Lib\site-packages\setuptools\dist.py:760: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
!!
self._finalize_license_expression()
running build_ext
Compiling src/jcvi/assembly/chic.pyx because it changed.
[1/1] Cythonizing src/jcvi/assembly/chic.pyx
building 'jcvi.assembly.chic' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Using custom wheel tag: cp313-cp313-win_amd64
Traceback (most recent call last):
File "C:\Users\nicho\PycharmProjects\T.distchum_genome.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
~~~~^^
File "C:\Users\nicho\PycharmProjects\T.distchum_genome.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nicho\PycharmProjects\T.distchum_genome.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 152, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\nicho\AppData\Local\Temp\pip-build-env-pptg_v6n\overlay\Lib\site-packages\hatchling\build.py", line 58, in build_wheel
return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nicho\AppData\Local\Temp\pip-build-env-pptg_v6n\overlay\Lib\site-packages\hatchling\builders\plugin\interface.py", line 147, in build
build_hook.initialize(version, build_data)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nicho\AppData\Local\Temp\pip-install-8yp_cnuf\jcvi_c870867a368d435bb7f9974d96e58ec0\build.py", line 13, in initialize
subprocess.check_call(["python", "setup.py", "build_ext", "--inplace"])
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nicho\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 421, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['python', 'setup.py', 'build_ext', '--inplace']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Beta Was this translation helpful? Give feedback.
All reactions