I am working on python script to make SOAP api call to create Incident in Service-Now. I downloaded SOAPPy using pip. However when i tried to import SOAPProxy module I keep getting below error
from SOAPpy import SOAPProxy
error:
from version import version
ImportError: No module named 'version'.
(I am using Windows machine and Python 3.5.1)
If SOAPpy is not supported in python 3, Please let me know other supported SOAP modules for python 3.
Please help.
Thanks in advance
Related
I tried to upgrade a few packages with pip and also my python from 3.9 to 3.9.13. so now i use RIDE v2.0b1 running on Python 3.9.13. i use robotframework-sudslibrary-aljcalandra 1.1.4. instead of 1.1 and urllib3 1.26.12 instead of 1.26.9 for calls to webservices
I get an error when running a keyword of sudslibrary (Create Soap Client)
FAIL : AttributeError: module 'urllib' has no attribute 'pathname2url'
Since i don't have any knowledge of python and all solutions on google are about python, i'm stuck with this error. could anybody please help me?
In the following site
https://itecnote.com/tecnote/python-3-4-2-urlib-no-attribute-pathname2url/ it says that pathname2url function of urllib is now in another library which is urllib.request.pathname2url.
Should i install this python library independently by pip?
it's strange because with my older installations (ython 3.9) i didn't have urllib.request.pathname2url library when i pip(ed) list it.
Thank you for your precious help i'm badly stucked
This seems a problem on the sudslibrary you are using. A possible workaround is to fix the offending code by replacing with the new module reference.
You could (should?) find all references to the import or use of pathname2urlin that module library and replace with fixing code. For example:
import urllib.request.pathname2url as pathname2url
or
if you have from urllib import pathname2url
from urllib.request import pathname2url
The best would be, after identifying the fix, to propose a Pull Request for the sudslibrary, with something like:
try:
from urllib import pathname2url
except ImportError:
from urllib.request import pathname2url
And similar for the absolut imports.
I am trying to use face_recognition for python in my django project but it does not seem to work as it is giving error when i write import face-recognition I am using it in pycharm, M1 macbook air, django rest framework. Following is the versions
Python 3.8
face_recognition 1.3.0
dlib 19.23.0
here is error:
ImportError: dlopen(/venv/lib/python3.8/site-packages/_dlib_pybind11.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_png_do_expand_palette_rgb8_neon'
If anyone can help me solve this error or know any work around to get it working ?
I'm trying to work with Microsofts Hyperspace application.
In order to make it work with Python I need to install the module called Hyperspace.
When I implement the code from hyperspace import * I get the following error:
ModuleNotFoundError: No module named 'hyperspace'
I tried the following but still no luck
from pyspark hyperspace import *
Can someone let me know what it will take to successfully install the module?
I
Thanks
The module isn't supported on Databricks
I am receiving this error from command prompt: ModuleNotFoundError: No module named 'pickle' running in python 3.7,
I have it setup like this:
import pickle as thisPickle
What can be the reason why I having this import issue, appreciate any help. Thanks.
pickle is a part of the Standard Library and is pre-included in the Python package. There should not be a reason that it does not work. Make sure that no other versions of python exist on your computer. The command prompt may be using outdated versions that still exist. Also, see if other modules install correctly on your machine.
I have Ubuntu Gnome 16.04 both python 2.7 and python 3.5 installed.
I have installed ggplot in python 3.5 but not able to import it.
I am getting ImportError: No module named 'StringIO'.
Am I missing something? As far as I know StringIO module has been merged in io module in python 3.5.
Found the issue, some files have not been fully converted for python3.
Open file /usr/local/lib/python3.5/dist-packages/ggplot/ggplot.py and change
import StringIO
to this
from io import StringIO
I am not getting any error now but there could be some other files where python2 codes needs to be converted to work in python3.