Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

ImportError: No module named tlslite.utils #44

Open
harshparmar opened this issue May 14, 2016 · 4 comments
Open

ImportError: No module named tlslite.utils #44

harshparmar opened this issue May 14, 2016 · 4 comments

Comments

@harshparmar
Copy link

harshparmar commented May 14, 2016

import gdata.spreadsheet.service

import sys
import string
import json

with open("GoogleAppPw.json") as fh:
config = json.load(fh)

client = gdata.spreadsheet.service.SpreadsheetsService()

client.ClientLogin(config['email'], config['password'])

##############OUTPUT

Traceback (most recent call last):
File "addcolumn.py", line 1, in
import gdata.spreadsheet.service
File "/Library/Python/2.7/site-packages/gdata/spreadsheet/service.py", line 32, in
import gdata.service
File "/Library/Python/2.7/site-packages/gdata/service.py", line 80, in
import gdata.auth
File "/Library/Python/2.7/site-packages/gdata/auth.py", line 29, in
import gdata.oauth.rsa as oauth_rsa
File "/Library/Python/2.7/site-packages/gdata/oauth/rsa.py", line 10, in
from tlslite.utils import keyfactory
ImportError: No module named tlslite.utils

@harishr1308
Copy link

http://www.digi.com/wiki/developer/index.php/Tlslite
tlslite-0.3.8.tar.gz

just download the tar file and run
python setup.py install

@danielowen11
Copy link

I got the same error, when trying to run tests using /tests/run_data_tests.py. Seems like tlslite isn't part of python 2.7, shouldn't it be listed as a dependency?

@andremmaia
Copy link

andremmaia commented Oct 3, 2016

install or upgrade your tlslite using pip

if you can install use:
pip install tlslite

if you can update use:
pip install --upgrade tlslite

@hagayo
Copy link

hagayo commented Mar 20, 2017

Adding tlslite to src/gdata directory to solve import errors
When adding tlslite directory into /src/gdata, the factory-key is found
and import errors are solved... ;-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants