python-fedex-devs / python-fedex

A light wrapper around FedEx's SOAP API.
http://python-fedex.readthedocs.org
BSD 3-Clause "New" or "Revised" License
155 stars 139 forks source link

"ModuleNotFoundError: No module named 'version'" in "import fedex.base_service" #166

Closed stenci closed 2 years ago

stenci commented 2 years ago

I'm not able to import fedex.base_service.

This is the traceback:

  File "C:\workspace\Anvil\OpenCart\ShippingCostCalculator\server_modules\FedexShippingCost.py", line 6, in <module>
    import fedex.base_service
  File "C:\Users\StefanoMenci\Anaconda3\envs\Anvil37\lib\site-packages\fedex\base_service.py", line 13, in <module>
    import suds
  File "C:\Users\StefanoMenci\Anaconda3\envs\Anvil37\lib\site-packages\suds\__init__.py", line 28, in <module>
    from version import __build__, __version__
ModuleNotFoundError: No module named 'version'

I am configuring a new computer. The project tests run without problems on the old one, but I'm having problems in the new one. I have created the environment with:

conda create --name Anvil37 python=3.7 pandas [...]
conda activate Anvil37
pip install setuptools==57.5.0
pip install fedex==2.4.0

I have installed an older version of setuptools because I was having the problem mentioned here: https://github.com/python-fedex-devs/python-fedex/issues/158

I tried with pip install fedex==2.4.1, but the problem is still there.

Any idea how to solve this problem?

stenci commented 2 years ago

Duplicated of https://github.com/python-fedex-devs/python-fedex/issues/163