Skip to content

Cannot import name TestlinkAPIClient #31

@nitrocode

Description

@nitrocode

I downloaded the latest version of pip for Python 2.7
Installed using the pip command successfully
I set the TESTLINK environment variables

Set TESTLINK_API_PYTHON_SERVER_URL=etc
Set TESTLINK_API_PYTHON_DEVKEY=etc

Opened Python and ran

import testlink

and I received an import error

ImportError: cannot import name TestlinkAPIClient

I also tried running some of the example scripts but also received errors.

I navigated to /usr/local/lib/python2.7/dist-packages/testlink where the module was installed and attempted to run some of the code within the scripts:

from testlinkapigeneric import TestlinkAPIGeneric, TestLinkHelper

Traceback (most recent call last):
File "", line 1, in
File "testlinkapigeneric.py", line 22, in
from .testlinkhelper import TestLinkHelper, VERSION
ValueError: Attempted relative import in non-package

Not sure what I'm doing wrong...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions