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

Getting requirements to build wheel ... error #26

Open
datadizzy opened this issue Nov 10, 2023 · 1 comment
Open

Getting requirements to build wheel ... error #26

datadizzy opened this issue Nov 10, 2023 · 1 comment

Comments

@datadizzy
Copy link

Describe the bug
error when installing

Expected behavior
installing the program
Screenshots
File "{MYFILEDIRECTORY}\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "{MYFILEDIRECTORY}\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 "{MYFILEDIRECTORY}\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 "{MYFILEDIRECTORY}\Local\Temp\pip-build-env-hz122s8l\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{MYFILEDIRECTORY}\Local\Temp\pip-build-env-hz122s8l\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "{MYFILEDIRECTORY}\Local\Temp\pip-build-env-hz122s8l\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "{MYFILEDIRECTORY}\Local\Temp\pip-build-env-hz122s8l\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
exec(code, locals())
File "", line 13, in
File "{MYFILEDIRECTORY}\wordcloud_a2b0ea437707470fb309527d01325bc0\versioneer.py", line 1480, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "{MYFILEDIRECTORY}\wordcloud_a2b0ea437707470fb309527d01325bc0\versioneer.py", line 1412, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{MYFILEDIRECTORY}\wordcloud_a2b0ea437707470fb309527d01325bc0\versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

OS
Windows

Additional context
This is my very first time submitting an issue - please let me know if i missed something.

@crosskayla
Copy link

crosskayla commented Nov 28, 2023

Hi there - you're probably on Python 3.12 (as was I).

Cause

I checked out the versioneer package and it says:

Compatible with: Python 3.7, 3.8, 3.9, 3.10, 3.11 and pypy3
Experimental support for Python 3.12.

If you're running Python 3.12, installing convoviz apparently will throw an error.

Solution

I got it to build with the following steps:

  1. Selected a supported version of the Python interpreter as IDE interpreter (e.g., version = 3.11)
  2. Created virtual environment to contain this version and its packages (best practice anyway) in my project directory:
python -m venv YOUR_VIRTUAL_ENV_NAME
source YOUR_VIRTUAL_ENV_NAME/bin/activate

The terminal should display:

(YOUR_VIRTUAL_ENV_NAME) ➜  directory 
  1. Ran pip install convoviz again

It should then build fine.

Potential fixes

The direct source in this project seems to be the wordcloud package, which uses versioneer.

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