suds install error: no module named client

后端 未结 7 1024
粉色の甜心
粉色の甜心 2020-12-08 19:21

Trying to install suds with pip-3.2 and it fails with the error

sudo pip-3.2 install suds
Downloading/unpacking suds
  Running setup.py egg_info for package          


        
相关标签:
7条回答
  • 2020-12-08 19:26

    In python 3.7.7, you can use

    pip install suds-py3
    

    to install suds py3 package. If your code not work as expected, you can delete the suds directory in

    python3.7/site-packages/
    

    and rerun

    pip install suds-py3
    
    0 讨论(0)
  • 2020-12-08 19:29

    Often times errors like this result from an error to source .venv/bin/activate, where .venv is the location of your virtualenv.

    0 讨论(0)
  • 2020-12-08 19:34

    I would recommend installing the latest jurko developer's cut, which should handle an issue with recursion depth loading for big WSDL's (I ran into this with the NetSuite WSDL) This version should fix the issue.

    $ sudo pip install bitbucket.org/jurko/suds/get/tip.tar.gz#egg=suds
    

    Here is the Bitbucket Project page:

    https://bitbucket.org/jurko/suds/wiki/Home

    0 讨论(0)
  • 2020-12-08 19:34

    Basically there is a problem with the compatbility of suds library and python version . Your python version should be 2.7.14.

    I downgraded my python version 3.6 to 2.7.14 and it worked for me.

    Please let me know , if there are any further errors.

    0 讨论(0)
  • 2020-12-08 19:42

    Locate client.py and add its path in PYTHONPATH. This will solve your problem.

    In Windows Python 3.5 it was in Python35\Lib\http. PYTHONPATH=E:\apps\Python35\Lib;E:\apps\Python35\Lib\http;

    0 讨论(0)
  • 2020-12-08 19:47

    I am facing the similar sort of problem. I've installed suds-jurko0.6, but when I am importing suds (import suds), and doing dir(suds) in the python3.3 shell, the output is the following:

    ['BuildError',
     'BytesIO',
     'MethodNotFound',
     'PortNotFound',
     'Repr',
     'ServiceNotFound',
     'SoapHeadersNotPermitted',
     'TypeNotFound',
     'UnicodeMixin',
     'WebFault',
     '__build__',
     '__builtins__',
     '__cached__',
     '__doc__',
     '__file__',
     '__initializing__',
     '__loader__',
     '__name__',
     '__package__',
     '__path__',
     '__version__',
     'byte_str',
     'byte_str_class',
     'null',
     'objid',
     'sys',
     'tostr',
     'version']
    

    That is, python is not importing suds modules. My hackish solutions so far has been doing sys.path.append(suds.path[0]). I am not entirely happy with it, though. A more rubbost solution should be related to the ini.py file at the top of the suds package.

    0 讨论(0)
提交回复
热议问题