kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.38k stars 998 forks source link

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

Closed VanessaE closed 3 months ago

VanessaE commented 3 months ago

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 commented 3 months ago

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