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

Instillation by pip fails #81

Open
JKvet opened this issue Feb 20, 2024 · 3 comments
Open

Instillation by pip fails #81

JKvet opened this issue Feb 20, 2024 · 3 comments

Comments

@JKvet
Copy link

JKvet commented Feb 20, 2024

This is due to a /s in the versioner file within a string starting on line 421. The following error message occurs on install

Collecting scikit-surgerynditracker
Using cached scikit-surgerynditracker-1.0.0.tar.gz (24 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-install-jy93u0vl/scikit-surgerynditracker_9f904707926d43d39b44cbb09fea6fe6/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-build-env-oz_f4zv4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-build-env-oz_f4zv4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-build-env-oz_f4zv4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 480, in run_setup
super().run_setup(setup_script=setup_script)
File "/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-build-env-oz_f4zv4/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 15, in
File "/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-install-jy93u0vl/scikit-surgerynditracker_9f904707926d43d39b44cbb09fea6fe6/versioneer.py", line 1480, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-install-jy93u0vl/scikit-surgerynditracker_9f904707926d43d39b44cbb09fea6fe6/versioneer.py", line 1412, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/v2/sxdpv_c51rz_kn1xgrmf2z_w0000gn/T/pip-install-jy93u0vl/scikit-surgerynditracker_9f904707926d43d39b44cbb09fea6fe6/versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

thompson318 added a commit that referenced this issue Feb 21, 2024
thompson318 added a commit that referenced this issue Feb 21, 2024
@thompson318
Copy link
Collaborator

Thanks for raising this. This looks like an issue with Python 3.12 and our versioning code (https://github.com/python-versioneer/python-versioneer). I'll try and have a look at fixing it this week. If you're in a hurry the quickest fix for you might be to use an earlier version of Python.

@thompson318
Copy link
Collaborator

@JKvet I think this is fixed now. Please can you try again with python 3.12. You need to make sure your using version 1.0.1, which may involve clearing your pip cache. If it works please let me know and we can close the issue.

@JKvet
Copy link
Author

JKvet commented Feb 22, 2024

Thank you yes this now successfully downloads

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

No branches or pull requests

2 participants