Public bug reported:

Installed as per instructions in pdf manual, ldtp-tutorial.pdf, but used
python3 in place of python as usual.

It appears however to have installed a python2 version.

Hence:

-------------------------------------
>>> import ldtp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/ldtp/__init__.py", line 593, in 
<module>
    _populateNamespace(globals())
  File "/usr/local/lib/python3.5/dist-packages/ldtp/__init__.py", line 247, in 
_populateNamespace
    for method in client._client.system.listMethods():
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1092, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1432, in __request
    verbose=self.__verbose
  File "/usr/local/lib/python3.5/dist-packages/ldtp/client.py", line 148, in 
request
    h=self.send_request(host, handler, request_body, bool(verbose))
  File "/usr/lib/python3.5/xmlrpc/client.py", line 1247, in send_request
    connection = self.make_connection(host)
  File "/usr/local/lib/python3.5/dist-packages/ldtp/client.py", line 115, in 
make_connection
    import httplib
ImportError: No module named 'httplib'
-------------------------------------

Should I install again under different instructions?

** Affects: ldtp (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1680635

Title:
  ImportError on Python3 / xenial: No module named 'httplib'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ldtp/+bug/1680635/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to