8000 Install error setuptools.errors.InvalidConfigError · Issue #70 · fatihak/InkyPi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Install error setuptools.errors.InvalidConfigError #70

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

Closed
8000
csabibela opened this issue Mar 24, 2025 · 7 comments
Closed

Install error setuptools.errors.InvalidConfigError #70

csabibela opened this issue Mar 24, 2025 · 7 comments
Labels
bug Something isn't working

Comments

@csabibela
Copy link

I tried running the install.sh script on a clean Raspberry Pi OS. I received the following error message:

rpi@pic:~/InkyPi $ sudo bash install/install.sh
Checking if inkypi.service is running
inkypi.service not running [✔]
Enabling interfaces required for inkypi
SPI Interface has been enabled. [✔]
I2C Interface has been enabled. [✔]
Installing system dependencies. [✔]
Installing inkypi to /usr/local/inkypi
Removing existing installation found at /usr/local/inkypi [✔]
Creating symlink from /home/rpi/InkyPi/install/../src to /usr/local/inkypi/src [✔]
Creating python virtual environment.
Installing python dependencies. [|] error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "/usr/local/inkypi/venv_inkypi/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/usr/local/inkypi/venv_inkypi/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/inkypi/venv_inkypi/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 26, in
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/init.py", line 116, in setup
_install_setup_requires(attrs)
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/init.py", line 87, in _install_setup_requires
dist.parse_config_files(ignore_option_errors=True)
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 730, in parse_config_files
self._parse_config_files(filenames=inifiles)
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 599, in _parse_config_files
opt = self._enforce_underscore(opt, section)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-cs8uhugv/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 629, in _enforce_underscore
raise InvalidConfigError(
setuptools.errors.InvalidConfigError: Invalid dash-separated key 'description-file' in 'metadata' (setup.cfg), please use the underscore name 'description_file' instead.
[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.
Installing python dependencies. [✔]
Adding executable to /usr/local/bin/inkypi
Copying config files to /home/rpi/InkyPi/install/../src/config
device.json already exists in /home/rpi/InkyPi/install/../src/config [✔]
Installing inkypi systemd service.
INKYPI Installation Complete! [✔]
[•] A reboot of your Raspberry Pi is required for the changes to take effect
[•] After your Pi is rebooted, you can access the web UI by going to 'pic.local' or '192.168.xxx.xxx' in your browser.
[•] If you encounter any issues or have suggestions, please submit them here: https://github.com/fatihak/InkyPi/issues
Would you like to restart your Raspberry Pi now? [Y/N] ^C

@gth758y
Copy link
gth758y commented Mar 24, 2025

I ran into the same error on a clean install this morning.

@csabibela
Copy link
Author

Workaround:

mkdir /tmp/spidev
curl -o /tmp/spidev/spidev-3.7.tar.gz https://github.com/doceme/py-spidev/archive/refs/tags/v3.7.tar.gz
source "/usr/local/inkypi/venv_inkypi/bin/activate"
pip install spidev -f file:///tmp/spidev/
pip install -r install/requirements.txt
systemctl start inkypi.service

@fatihak
Copy link
Owner
fatihak commented Mar 24, 2025

It looks like this issue stems from a breaking change in setuptools introduced today, which disrupted the Python library ecosystem but has since been reverted: pypa/setuptools#4910
Are you still seeing this issue on a fresh install? If so, can you try activating the venv and upgrading setuptools:

sudo su
source "/usr/local/inkypi/venv_inkypi/bin/activate"
pip install --upgrade setuptools
pip install -r install/requirements.txt
deactivate

@fatihak fatihak added the bug Something isn't working label Mar 24, 2025
@gth758y
Copy link
gth758y commented Mar 25, 2025

I tried another fresh install a bit ago and did not encounter this error. Thanks!

@skynetsysadmin
Copy link
skynetsysadmin commented Mar 25, 2025

OK, I was able to fix this thanks to a couple of suggestions from @fatihak and @scotthsieh0503. Basically, the auto detect doesn't work with this particular board, so the display_manager.py needed a couple of modifications.

At the top of the script, instead of 'auto', it needed a specific board name, 'inky_ac073tc1a'. Also, changed the import variable from auto to Inky. Technically, you could probably keep the import 'auto' and it would still work. But, the name change makes the code clearer if you use a new import name.

 import os
 from inky.inky_ac073tc1a import Inky <--- changed this line
 from utils.image_utils import resize_image, change_orientation
 from plugins.plugin_registry import get_plugin_instance

In a section of code a little lower in the display_manager.py, I modified one line.

From:

        self.inky_display = auto()

To

        self.inky_display = Inky()

Then I just restarted the inky.pi service. That woke up the board, and I can also access the web interface. Everything seems to be working fine now. Thank you to both @fatihak and @scotthsieh0503 for your help.

@fatihak
Copy link
Owner
fatihak commented Mar 28, 2025

@csabibela are you still encountering this error? If not going to close this issue.

@fatihak
Copy link
Owner
fatihak commented Apr 10, 2025

Closing this since I didnt hear back & since this was related to the setuptools issue which was resolved. Feel free to comment or reopen the issue if you're still seeing the same error

@fatihak fatihak closed this as completed Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
0