lczub / TestLink-API-Python-client

A Python client to use the TestLink API
105 stars 63 forks source link

No module named argparse #28

Closed ekryukov closed 9 years ago

ekryukov commented 10 years ago

$ sudo pip install TestLink-API-Python-client Downloading/unpacking TestLink-API-Python-client Downloading TestLink-API-Python-client-0.5.1.zip (89kB): 89kB downloaded Running setup.py egg_info for package TestLink-API-Python-client Installing collected packages: TestLink-API-Python-client Running setup.py install for TestLink-API-Python-client Successfully installed TestLink-API-Python-client Cleaning up...

$ ipython import testlink


ImportError Traceback (most recent call last)

in () ----> 1 import testlink /usr/lib/python2.6/site-packages/testlink/**init**.py in () 20 21 from .testlinkerrors import TestLinkError ---> 22 from .testlinkapigeneric import TestlinkAPIGeneric 23 from .testlinkapi import TestlinkAPIClient 24 #from .testlink import TestLink /usr/lib/python2.6/site-packages/testlink/testlinkapigeneric.py in () 20 import xmlrpclib 21 import testlinkerrors ---> 22 from .testlinkhelper import TestLinkHelper, VERSION 23 from .testlinkargs import getMethodsWithPositionalArgs, getArgsForMethod 24 from .testlinkdecorators import decoApiCallAddAttachment,\ /usr/lib/python2.6/site-packages/testlink/testlinkhelper.py in () 19 20 import os ---> 21 from argparse import ArgumentParser 22 from version import VERSION 23 ImportError: No module named argparse
lczub commented 10 years ago

Hello Eugene,

I could not reproduce your failure with a "fresh build" ipython 2.2.0 installation on python 2.7.8.

Maybe, following hint for Python 2.6 installations could help - install also argparse via pip.

pip install argparse

see install.rst#preconditions

Greetings Luiko

lczub commented 9 years ago

It seams, that workaround with Py26 hint helps.