Re: [Tutor] import failure

2019-02-23 Thread Mark Lawrence
On 22/02/2019 16:55, Alex Kleider wrote: I'm trying to programmatically manipulate my google contacts using a library (https://github.com/google/gdata-python-client) which I've cloned.  The documentation suggests running a test to start with which I did (OS: Ubuntu 18.4, running in a python2.7 v

Re: [Tutor] import failure

2019-02-23 Thread Alex Kleider
On 2019-02-22 09:48, Mats Wichmann wrote: pip installs are specific to the interpreter, you're probably getting a mismatch there. Rule one: install this way: python -m pip install sheepdip that way you're sure the pip matches the python and things go in the expected place. Rule 2: you ca

Re: [Tutor] import failure

2019-02-22 Thread Mats Wichmann
On 2/22/19 9:55 AM, Alex Kleider wrote: (p2) alex@one:$ python src/gdata/oauth/rsa.py key_factory = '/home/alex/.virtualenvs/p2/local/lib/python2.7/site-packages/tlslite/utils/keyfactory.pyc'> (p2) alex@one:$ python Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] on linux2 Type

Re: [Tutor] import failure

2019-02-22 Thread Peter Otten
Alex Kleider wrote: > (p2) alex@one:$ ./tests/run_data_tests.py Here you let the script decide which interpreter to pick... > Traceback (most recent call last): > ImportError: No module named tlslite.utils ...and it looks like it's not the one you'd like to have: > (p2) alex@one:$ python > Py

[Tutor] import failure

2019-02-22 Thread Alex Kleider
I'm trying to programmatically manipulate my google contacts using a library (https://github.com/google/gdata-python-client) which I've cloned. The documentation suggests running a test to start with which I did (OS: Ubuntu 18.4, running in a python2.7 venv 'p2') with the following rather puzzl