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

cloudprint stop after upgrade to buster on Raspberry pi #142

Open
villeneuve opened this issue Sep 10, 2019 · 1 comment
Open

cloudprint stop after upgrade to buster on Raspberry pi #142

villeneuve opened this issue Sep 10, 2019 · 1 comment

Comments

@villeneuve
Copy link

Hello,
I use cloudprint for several years and am happy with it. It runs on a Rasberry pi 2 with Raspbian lite I recently upgrade from stretch to buster and cloudprint is no longer working.
Here is what I get with journalctl -u cloudprintd

Sep 10 17:41:40 NewBox systemd[1]: Started Google Cloud Print proxy service. Sep 10 17:41:42 NewBox cloudprintd[1386]: Traceback (most recent call last): Sep 10 17:41:42 NewBox cloudprintd[1386]: File "/usr/sbin/cloudprintd", line 6, in <module> Sep 10 17:41:42 NewBox cloudprintd[1386]: from pkg_resources import load_entry_point Sep 10 17:41:42 NewBox cloudprintd[1386]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3191, in <module> Sep 10 17:41:42 NewBox cloudprintd[1386]: @_call_aside Sep 10 17:41:42 NewBox cloudprintd[1386]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3175, in _call_aside Sep 10 17:41:42 NewBox cloudprintd[1386]: f(*args, **kwargs) Sep 10 17:41:42 NewBox cloudprintd[1386]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3204, in _initialize_master_working_set Sep 10 17:41:42 NewBox cloudprintd[1386]: working_set = WorkingSet._build_master() Sep 10 17:41:42 NewBox cloudprintd[1386]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 583, in _build_master Sep 10 17:41:42 NewBox cloudprintd[1386]: ws.require(__requires__) Sep 10 17:41:42 NewBox cloudprintd[1386]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 900, in require Sep 10 17:41:42 NewBox cloudprintd[1386]: needed = self.resolve(parse_requirements(requirements)) Sep 10 17:41:42 NewBox cloudprintd[1386]: File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 786, in resolve Sep 10 17:41:42 NewBox cloudprintd[1386]: raise DistributionNotFound(req, requirers) Sep 10 17:41:42 NewBox cloudprintd[1386]: pkg_resources.DistributionNotFound: The 'requests' distribution was not found and is required by cloudprint Sep 10 17:41:42 NewBox systemd[1]: cloudprintd.service: Main process exited, code=exited, status=1/FAILURE Sep 10 17:41:42 NewBox systemd[1]: cloudprintd.service: Failed with result 'exit-code'.

I search the web and found that it seems to be a package "requests" missing but since the recommended solution is to go with the debian (raspbian?) packaged cloudprint version and this is what I'm supposed to have I'm a bit lost.
Any help guidance will be appreciated
Thanks

@villeneuve
Copy link
Author

villeneuve commented Sep 11, 2019

[SOLVED]
Sorry for the noise, but found the solution: apt install python3-requests
As suggested by apt I also did apt install python3-openssl python3-socks I don't know if it was needed by cloudprint.
Then cloudprint automatiaclly restarted (as it tries every 5mn)
I believe my problem was because I upgraded from stretch to buster (not a clean install from scratch)
I had requests installed in Python2 but not in Python3.

Thanks for cloudprint it's a very useful service

Oooops sorry I saw your answer after posting! Anyway yes requests missing.

davesteele added a commit to davesteele/cloudprint-service that referenced this issue Oct 2, 2019
Should resolve a missing dependency on python3-requests.

Closes #56
Closes armooo/cloudprint#142
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