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

Development with VSC #266

Closed
mjza opened this issue Jan 15, 2025 · 3 comments
Closed

Development with VSC #266

mjza opened this issue Jan 15, 2025 · 3 comments

Comments

@mjza
Copy link

mjza commented Jan 15, 2025

Hi there,

I am trying to have a development version on my Mac using VSC.
However, when I try pip instal . I get the following error:

Collecting Pillow==10.3.0 (from NEMO==6.0.3)
  Using cached pillow-10.3.0.tar.gz (46.6 MB)
  Running command pip subprocess to install build dependencies
  Using pip 24.3.1 from /Users/m/GitHub/NEMO_RITS/venv/lib/python3.13/site-packages/pip (python 3.13)
  Collecting setuptools>=67.8
    Obtaining dependency information for setuptools>=67.8 from https://files.pythonhosted.org/packages/69/8a/b9dc7678803429e4a3bc9ba462fa3dd9066824d3c607490235c6a796be5a/setuptools-75.8.0-py3-none-any.whl.metadata
    Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
  Using cached setuptools-75.8.0-py3-none-any.whl (1.2 MB)
  Installing collected packages: setuptools
  Successfully installed setuptools-75.8.0
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  Traceback (most recent call last):
    File "/Users/m/GitHub/NEMO_RITS/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
      ~~~~^^
    File "/Users/m/GitHub/NEMO_RITS/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/m/GitHub/NEMO_RITS/venv/lib/python3.13/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/lh/7wc223310n3bq90vtfqvnvtm0000gn/T/pip-build-env-b6okgq7b/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
             ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/lh/7wc223310n3bq90vtfqvnvtm0000gn/T/pip-build-env-b6okgq7b/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
      self.run_setup()
      ~~~~~~~~~~~~~~^^
    File "/private/var/folders/lh/7wc223310n3bq90vtfqvnvtm0000gn/T/pip-build-env-b6okgq7b/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
      exec(code, locals())
      ~~~~^^^^^^^^^^^^^^^^
    File "<string>", line 33, in <module>
    File "<string>", line 27, in get_version
  KeyError: '__version__'
  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.
  full command: /Users/m/GitHub/NEMO_RITS/venv/bin/python3.13 /Users/m/GitHub/NEMO_RITS/venv/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py get_requires_for_build_wheel /var/folders/lh/7wc223310n3bq90vtfqvnvtm0000gn/T/tmpt94s9uyz
  cwd: /private/var/folders/lh/7wc223310n3bq90vtfqvnvtm0000gn/T/pip-install-2anntprx/pillow_1f7aab1db6a949c08bab75df46ba97e8
  Getting requirements to build wheel ... error
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.

Any help is appreciated.

@mjza
Copy link
Author

mjza commented Jan 15, 2025

I found out the reason. According to this issue, Python 3.13 is not supported with Pillow 10.3.0. We must edit its version to 10.4.0 inside the setup.py file.

@mjza
Copy link
Author

mjza commented Jan 15, 2025

If you like fix the issue.

@mjza mjza closed this as completed Jan 15, 2025
@rptmat57
Copy link
Contributor

Hi, thank you, yes I am aware of this issue and this is fixed in the current dev branch and will be in the next release

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