It works until the auto environmental update on last Friday. I have no coding knowledge please help me. Thanks
Traceback (most recent call last):
File “main.py”, line 1, in
import server
File “/home/runner/ttmw-tgtest-25may2023/server.py”, line 1, in
from flask import Flask, request
ModuleNotFoundError: No module named ‘flask’
Thanks for your kind advise, yet it doesn’t fix the error. An error occurred during configuration: option use-feature: invalid choice: 'content-addressable-pool' (choose from '2020-resolver', 'fast-deps', 'in-tree-build')
Hi, I had the same thing happen now to 2 projects after they were ‘updated’ to nix projects.
I’m sure this is not the most elegant solution, but what I’ve done that has worked in both cases was to rename the pip.conf file in .config/pip/ to another name. (I simply added a prefix to the file name, for example: NOPE-pip.conf.)
This makes pip ignore the file and use it’s default configuration, which in my case resolved the issue.
By renaming the file, it remains available, should there be a need for it in the future, but it is ignored by pip which then runs as expected without the gibberish-y error message.
My project also failed after the environmental update, exactly like yours! Its so annoying. I had to create a completely new repl and then create the files by hand and copy and paste everything in. Thats the only way I got it back working.
I can download libraries with pip now but selenium is still broken. This is the error that happens now:
Traceback (most recent call last):
File "main.py", line 8, in <module>
driver = webdriver.Chrome(options=chrome_options)
File "/home/runner/Selenium-Template/venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 84, in __init__
super().__init__(
File "/home/runner/Selenium-Template/venv/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py", line 101, in __init__
self.service.start()
File "/home/runner/Selenium-Template/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 100, in start
self.assert_process_still_running()
File "/home/runner/Selenium-Template/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 113, in assert_process_still_running
raise WebDriverException(f"Service {self._path} unexpectedly exited. Status code was: {return_code}")
selenium.common.exceptions.WebDriverException: Message: Service /home/runner/.cache/selenium/chromedriver/linux64/113.0.5672.63/chromedriver unexpectedly exited. Status code was: 127