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 when type "pip install py-near", my Python version is 3.12.1 #18

Open
Kinaqu opened this issue Feb 23, 2024 · 5 comments · May be fixed by #19
Open

Error when type "pip install py-near", my Python version is 3.12.1 #18

Kinaqu opened this issue Feb 23, 2024 · 5 comments · May be fixed by #19

Comments

@Kinaqu
Copy link

Kinaqu commented Feb 23, 2024

C:\Users\Admin>pip install py-near
Collecting py-near
Using cached py_near-1.1.30-py3-none-any.whl.metadata (4.7 kB)
Requirement already satisfied: aiohttp<4.0.0,>=3.7.4 in c:\users\admin\appdata\local\programs\python\python312\lib\site-packages (from py-near) (3.9.3)
Collecting ed25519<2.0,>=1.5 (from py-near)
Using cached ed25519-1.5.tar.gz (868 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]
C:\Users\Admin\AppData\Local\Temp\pip-install-x35th7se\ed25519_c378159047794ef0bc923945ed0239fe\versioneer.py:467: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\Admin\AppData\Local\Programs\Python\Python312\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\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-4jer5g7j\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-4jer5g7j\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-4jer5g7j\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-4jer5g7j\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 115, in
File "C:\Users\Admin\AppData\Local\Temp\pip-install-x35th7se\ed25519_c378159047794ef0bc923945ed0239fe\versioneer.py", line 1405, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-install-x35th7se\ed25519_c378159047794ef0bc923945ed0239fe\versioneer.py", line 1339, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Temp\pip-install-x35th7se\ed25519_c378159047794ef0bc923945ed0239fe\versioneer.py", line 399, 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.

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

@pinnace
Copy link

pinnace commented Feb 24, 2024

I have the same problem. Looks like ed25519 is deprecated, maintainer recommends switching to pynacl

@pinnace pinnace linked a pull request Feb 25, 2024 that will close this issue
@surendra841
Copy link

I have the same issue, is it fixed?

@pinnace
Copy link

pinnace commented Mar 11, 2024

I have the same issue, is it fixed?

It's not fixed here, but you can use my fork where I've patched

@surendra841
Copy link

I have the same issue, is it fixed?

It's not fixed here, but you can use my fork where I've patched

Thanks, it worked

@aryadovoy
Copy link

Why is this still not fixed?

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

Successfully merging a pull request may close this issue.

4 participants