cloudprint icon indicating copy to clipboard operation
cloudprint copied to clipboard

cloudprint stop after upgrade to buster on Raspberry pi

Open villeneuve opened this issue 6 years ago • 1 comments

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 avatar Sep 10 '19 16:09 villeneuve

[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.

villeneuve avatar Sep 11 '19 08:09 villeneuve