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

errors when doing python3 setup.py build_ext --inplace #1442

Closed
VanessaE opened this issue Aug 5, 2024 · 1 comment
Closed

errors when doing python3 setup.py build_ext --inplace #1442

VanessaE opened this issue Aug 5, 2024 · 1 comment

Comments

@VanessaE
Copy link
Contributor

VanessaE commented Aug 5, 2024

Cleared my pip cache and re-cloned/built today in hopes of upgrading to a point where #1301 won't drive me insane anymore, since there's been at least one commit in the meantime that's supposed to address that, but nope, the build process does not complete.

My usual process as described in other issues is:

cd /home/vanessa/RepRap/
rm -rf Printrun
git clone https://github.com/kliment/Printrun.git
cd Printrun
python3 -m venv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
python3 -m pip install Cython
python3 setup.py build_ext --inplace

I don't remember from whom I got that last step, but in any case, that step fails now:

(venv) vanessa@rainbird:~/RepRap/Printrun$ python3 setup.py build_ext --inplace
Traceback (most recent call last):
  File "/home/vanessa/RepRap/Printrun/setup.py", line 66, in <module>
    setup(
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/__init__.py", line 108, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 159, in setup
    dist.parse_config_files()
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/dist.py", line 872, in parse_config_files
    pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 62, in apply_configuration
    config = read_configuration(filepath, True, ignore_option_errors, dist)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 140, in read_configuration
    return expand_configuration(asdict, root_dir, ignore_option_errors, dist)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 195, in expand_configuration
    return _ConfigExpander(config, root_dir, ignore_option_errors, dist).expand()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 243, in expand
    self._expand_all_dynamic(dist, package_dir)
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 287, in _expand_all_dynamic
    self._obtain_entry_points(dist, package_dir) or {},
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 361, in _obtain_entry_points
    text = self._obtain(dist, "entry-points", package_dir)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 331, in _obtain
    self._ensure_previously_set(dist, field)
  File "/home/vanessa/RepRap/Printrun/venv/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 307, in _ensure_previously_set
    raise OptionError(msg)
distutils.errors.DistutilsOptionError: No configuration found for dynamic 'entry-points'.
Some dynamic fields need to be specified via `tool.setuptools.dynamic`
others must be specified via the equivalent attribute in `setup.py`.
@VanessaE
Copy link
Contributor Author

VanessaE commented Aug 5, 2024

False alarm. Seems I've run into these warnings before and they're unimportant. But I still can't run it without a virtual env now; I'll put follow-ups in #1390

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

1 participant