suds-community / suds

Suds is a lightweight SOAP python client for consuming Web Services. A community fork of the jurko fork.
https://suds.readthedocs.io/
GNU Lesser General Public License v3.0
172 stars 54 forks source link

Is suds-community currently compatible with suds-jurko? #25

Closed aseques closed 5 years ago

aseques commented 5 years ago

Sorry if this can be found somewhere else, but I can't find it, I have a current setup working with suds-jurko, I would like to migrate it to a maintained fork. I have this code that has been working for a couple of years:

from suds import client
from suds.sudsobject import asdict
from suds import WebFault

But now I get an error when importing the class.

    from suds import client
ImportError: cannot import name 'client' from 'suds' (unknown location) 

Issue might be very basic but I haven't been able to fix it, also I was thinking that remove suds-jurko and adding instead suds-community would do the job.

phillbaker commented 5 years ago

@aseques are you using the last released version of suds-jurko or suds-jurko master?

Edit: Also, this does work with suds-community. How did you install suds-community?

aseques commented 5 years ago

just did

pip3 uninstall suds-jurko pip3 install suds-community # (0.8.3)

phillbaker commented 5 years ago

@aseques I can't reproduce this. Can you verify if you're using a virtualenv or if the pip3 you're using is not the same as the python you're running the code with?

aseques commented 5 years ago

Hi @phillbaker sorry for the delay, I just installed the code from git master (python setup.py install) instead of using the release from pip, and it works as expected, might it be something related to the bundle?

phillbaker commented 5 years ago

Very odd! Others and I don’t seem to have issues with the pip version. Would you be able to uninstall and reinstall via pip and use the -v flag when installing?

Also can you try importing via the python shell? (Any chance there’s an issue with virtualenv or python version?)

On Mon, Sep 2, 2019 at 8:17 AM aseques notifications@github.com wrote:

Hi @phillbaker https://github.com/phillbaker sorry for the delay, I just installed the code from git master (python setup.py install) instead of using the release from pip, and it works as expected, might it be something related to the bundle?

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/suds-community/suds/issues/25?email_source=notifications&email_token=AAAXCKIWAIYRP5T6MHNXWO3QHT75HA5CNFSM4IOSDUYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VU7ZQ#issuecomment-527126502, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAXCKOIX547A2XBD2HWBZ3QHT75HANCNFSM4IOSDUYA .

aseques commented 5 years ago

@phillbaker I don't know what happened but after removing the install from src manually and installing again the pip version it kept working. I'm closing until it happens again and I can investigate more. Thanks for your help