← Back to team overview

duplicity-team team mailing list archive

[Question #295069]: PyLint errors "Unable to import" on rev 1220

 

New question #295069 on Duplicity:
https://answers.launchpad.net/duplicity/+question/295069

On the latest revision for me (rev 1220), I'm getting failed tests on a clean branch. The first is a  pep8 error about a bracket that I've quickly fixed, but the other is a pylint error about not being able to import a bunch of modules. A quick Google suggests that this can be about Python PATH settings, so before I spend too much time on it I wanted to know if this is working for other people or if trunk has failing tests (oh for a hosted repository that supports CI...)

test_pylint (testing.test_code.CodeTest)
Pylint test (requires pylint to be installed to pass) ... FAIL

======================================================================
FAIL: test_pylint (testing.test_code.CodeTest)
Pylint test (requires pylint to be installed to pass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/aaron/Programming/duplicity/dup_ro_error/testing/test_code.py", line 86, in test_pylint
    [0, 32])
  File "/home/aaron/Programming/duplicity/dup_ro_error/testing/test_code.py", line 40, in run_checker
    self.assertTrue(process.returncode in returncodes, output)
AssertionError: ************* Module duplicity.backends._boto_single
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/_boto_single.py:131: [E0401(import-error), BotoBackend.__init__] Unable to import 'boto.s3.connection'
************* Module duplicity.backends._cf_cloudfiles
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/_cf_cloudfiles.py:71: [E0401(import-error), CloudFilesBackend._error_code] Unable to import 'cloudfiles.errors'
************* Module duplicity.backends.pydrivebackend
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/pydrivebackend.py:45: [E0401(import-error), PyDriveBackend.__init__] Unable to import 'oauth2client.client'
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/pydrivebackend.py:48: [E0401(import-error), PyDriveBackend.__init__] Unable to import 'oauth2client.service_account'
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/pydrivebackend.py:49: [E0401(import-error), PyDriveBackend.__init__] Unable to import 'oauth2client'
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/pydrivebackend.py:95: [E0401(import-error), PyDriveBackend.file_by_name] Unable to import 'pydrive.files'
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/pydrivebackend.py:184: [E0401(import-error), PyDriveBackend._error_code] Unable to import 'pydrive.files'
************* Module duplicity.backends.dpbxbackend
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/dpbxbackend.py:39: [E0401(import-error), ] Unable to import 'dropbox'
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/dpbxbackend.py:40: [E0401(import-error), ] Unable to import 'dropbox.exceptions'
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/dpbxbackend.py:41: [E0401(import-error), ] Unable to import 'dropbox.files'
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/dpbxbackend.py:43: [E0401(import-error), ] Unable to import 'dropbox.oauth'
************* Module duplicity.backends.pyrax_identity.hubic
/home/aaron/Programming/duplicity/dup_ro_error/duplicity/backends/pyrax_identity/hubic.py:14: [E0401(import-error), ] Unable to import 'pyrax.base_identity'

-- 
You received this question notification because your team duplicity-team
is an answer contact for Duplicity.