Closed MappingSuite closed 4 years ago
Same issue, same error on Linux Ubuntu 16.04LTS 64 bits
Python 3.5.2
import pyforce
File "/home/xxxx/.local/lib/python3.5/site-packages/pyforce/init.py", line 3, in
from xmlclient import _tPartnerNS, _tSObjectNS, _tSoapNS, SoapFaultError,\ ImportError: No module named 'xmlclient'
Not sure if it's a pathing issue. xmlclient is an internally provided module. See: https://github.com/alanjcastonguay/pyforce/blob/master/src/pyforce/xmlclient.py
got the same issue while using version 1.8.0 for python=3.6(Conda). Created venv (with virtualenv) with python=2.7 and it worked
This is happening because from xmlclient import ...
is a relative import. This style of import is not supported in python 3. If you change it to from .xmlclient import ...
it should work. However, this points to the broader concern of the lack of python 3 support.
support for 2.7 officially ended. do we have a solution for this issue yet?
Latest version 1.9.0 supports Python 3 and should resolve this issue. Let me know if it does not.
Environment: Windows 10 64 bits.
Python 3.6.5 :: Anaconda, Inc. (the one installed with Spyder)
A simple test file
test.py
:import pyforce
Launching:
> python test.py
An error: