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

requests>=2.7.0 #122

Open
geenweb opened this issue Dec 23, 2015 · 3 comments
Open

requests>=2.7.0 #122

geenweb opened this issue Dec 23, 2015 · 3 comments

Comments

@geenweb
Copy link

geenweb commented Dec 23, 2015

I followed all directions and believe I've I have all dependent packages installed. I get the following output. My apologies if this is user error. Thank you for any guidance. Gene

$ cloudprint
Traceback (most recent call last):
File "/usr/bin/cloudprint", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3080, in
@_call_aside
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3066, in _call_aside
f(_args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 3093, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 651, in _build_master
ws.require(requires)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 952, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 839, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'requests>=2.7.0' distribution was not found and is required by cloudprint
$

@davesteele
Copy link
Contributor

This is a known problem with older distribution releases. Try:

sudo pip install -U requests

(The '-U' may not be needed)

Or, if you are in a Debian/Ubuntu-derivative environment, the packaged version solves the problem.

Armooo, I addressed this with this patch

@geenweb
Copy link
Author

geenweb commented Dec 23, 2015

David,

Thank you very much! I successfully installed the packaged version and
verified that the connector successfully installed the cloud printer (it
was listed on the google website). Again thanks!!

I just purchased a new Chromebook for my elderly Mom. It appears that her
wireless Brother printer is not compatible with Google cloud print (tried
everything I could find online with no luck). I have a old netbook lying
about unused and installed Lubuntu 15.10, the Brother print drivers, and
now cloudprint. My plan is just to leave this tiny netbook running aside of
her printer. I'm not too familiar with Daemons. Should I just put
"cloudprint -d" in the .bashrc? Any other suggestions?

This is awesome!

Happy Holidays,

Gene

On Wed, Dec 23, 2015 at 1:21 PM, David Steele [email protected]
wrote:

This is a known problem with older distribution releases. Try:

sudo pip install -U requests

(The '-U' may not be needed)

Or, if you are in a Debian/Ubuntu-derivative environment, the packaged
version http://davesteele.github.io/cloudprint-service/ solves the
problem.

Armooo, I addressed this with this patch
https://github.com/davesteele/cloudprint-service/blob/master/debian/patches/0007-Remove-version-on-setup.py-requests-depends.patch


Reply to this email directly or view it on GitHub
#122 (comment).

@davesteele
Copy link
Contributor

If you installed 'cloudprint-service', the daemon part is taken care of.

Note that the service version stores authentication information in a different place. Use cps-auth to establish.

Any further discussion on package-based issues should move to https://github.com/davesteele/cloudprint-service/issues

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

2 participants