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

KeyError: 'sqlalchemy' #109

Open
s450586793 opened this issue Nov 17, 2022 · 0 comments
Open

KeyError: 'sqlalchemy' #109

s450586793 opened this issue Nov 17, 2022 · 0 comments

Comments

@s450586793
Copy link

Describe the bug
Installing plugin "FilamentManager" from https://github.com/OllisGit/OctoPrint-FilamentManager/releases/latest/download/master.zip...
/home/pi/OctoPrint/venv3/bin/python -m pip --disable-pip-version-check install file:///tmp/tmp58i74yvk/master.zip --no-cache-dir
Processing /tmp/tmp58i74yvk/master.zip
Requirement already satisfied: OctoPrint in /home/pi/OctoPrint/venv3/lib/python3.9/site-packages (from OctoPrint-FilamentManager==1.9.1) (1.8.6)
Collecting SQLAlchemy<1.2,>=1.1.15
Downloading SQLAlchemy-1.1.18.tar.gz (5.3 MB)
ERROR: Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 171, in _merge_into_criterion
crit = self.state.criteria[name]
KeyError: 'sqlalchemy'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 438, in _error_catcher
yield
File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 519, in read
data = self._fp.read(amt) if not fp_closed else b""
File "/usr/lib/python3.9/http/client.py", line 458, in read
n = self.readinto(b)
File "/usr/lib/python3.9/http/client.py", line 502, in readinto
n = self.fp.readinto(b)
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 223, in _main
status = self.run(options, args)
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
return func(self, options, args)
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 346, in run
requirement_set = resolver.resolve(
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve
self._result = resolver.resolve(
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 453, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 347, in resolve
failure_causes = self._attempt_to_pin_criterion(name, criterion)
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 207, in _attempt_to_pin_criterion
criteria = self._get_criteria_to_update(candidate)
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 199, in _get_criteria_to_update
name, crit = self._merge_into_criterion(r, parent=candidate)
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 173, in _merge_into_criterion
crit = Criterion.from_requirement(self._p, requirement, parent)
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/resolvers.py", line 82, in from_requirement
if not cands:
File "/usr/share/python-wheels/resolvelib-0.5.4-py2.py3-none-any.whl/resolvelib/structs.py", line 124, in bool
return bool(self._sequence)
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 99, in bool
return any(self)
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 239, in iter_index_candidates
candidate = self._make_candidate_from_link(
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 167, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 296, in init
super(LinkCandidate, self).init(
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 144, in init
self.dist = self._prepare()
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 222, in _prepare
dist = self._prepare_distribution()
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 307, in _prepare_distribution
return self._factory.preparer.prepare_linked_requirement(
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 503, in _prepare_linked_requirement
local_file = unpack_url(
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 253, in unpack_url
file = get_http_url(
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 130, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/network/download.py", line 163, in call
for chunk in chunks:
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/cli/progress_bars.py", line 168, in iter
for x in it:
File "/home/pi/OctoPrint/venv3/lib/python3.9/site-packages/pip/_internal/network/utils.py", line 64, in response_chunks
for chunk in response.raw.stream(
File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 576, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 541, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python3.9/contextlib.py", line 135, in exit
self.gen.throw(type, value, traceback)
File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/response.py", line 443, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
Looks like the plugin was already installed. Forcing a reinstall.
/home/pi/OctoPrint/venv3/bin/python -m pip --disable-pip-version-check install file:///tmp/tmp58i74yvk/master.zip --no-cache-dir --ignore-installed --force-reinstall --no-deps
Processing /tmp/tmp58i74yvk/master.zip
Building wheels for collected packages: OctoPrint-FilamentManager
Building wheel for OctoPrint-FilamentManager (setup.py): started
Building wheel for OctoPrint-FilamentManager (setup.py): finished with status 'done'
Created wheel for OctoPrint-FilamentManager: filename=OctoPrint_FilamentManager-1.9.1-py3-none-any.whl size=61989 sha256=62cd20bfa4c831aee9b1697ef9932bafff4b546e610d150cbd0130c1ef84c7c8
Stored in directory: /tmp/pip-ephem-wheel-cache-qzpc6end/wheels/00/c5/97/2b4315829e9b6665d3661eadca3f05aa03fe513f940b4c1dab
Successfully built OctoPrint-FilamentManager
Installing collected packages: OctoPrint-FilamentManager
Successfully installed OctoPrint-FilamentManager-1.9.1
Done!
A clear and concise description of what the bug is.

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Did the same happen when all other 3rd party plugins are disabled?
If not which plugin is causing the issue?

Log file
Drag and drop the octoprint.log here.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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