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

ImportError: No module named tlslite.utils #44

Open

Description

@harshparmar

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

Activity

  1. harishr1308 commented on May 25, 2016

    @harishr1308

    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

  2. danielowen11 commented on Jul 14, 2016

    @danielowen11

    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?

  3. andremmaia commented on Oct 3, 2016

    @andremmaia

    install or upgrade your tlslite using pip

    if you can install use:
    pip install tlslite

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

  4. hagayo commented on Mar 20, 2017

    @hagayo

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions