You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is provided by setuptools, but ansys-dpf-core does not list setuptools as a dependency. This causes failures in cases where setuptools isn't already installed.
Steps To Reproduce
Create a clean virtualenv, activate it
pip uninstall -y setuptools
pip install ansys-dpf-core
Try loading ansys.dpf.core
Exception:
>>> import ansys.dpf.core
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\tmp\myenv\lib\site-packages\ansys\dpf\core\__init__.py", line 23, in <module>
from ansys.dpf.core.dpf_operator import Operator, Config
File "D:\tmp\myenv\lib\site-packages\ansys\dpf\core\dpf_operator.py", line 15, in <module>
from ansys.dpf.core.config import Config
File "D:\tmp\myenv\lib\site-packages\ansys\dpf\core\config.py", line 10, in <module>
from ansys.dpf.core import server as server_module
File "D:\tmp\myenv\lib\site-packages\ansys\dpf\core\server.py", line 16, in <module>
from ansys.dpf.core.misc import is_ubuntu, get_ansys_path
File "D:\tmp\myenv\lib\site-packages\ansys\dpf\core\misc.py", line 7, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
Which Operating System are you using?
Windows
Which DPF/Ansys version are you using?
none (this issue occurs independent of the DPF server)
Add an explicit dependency on `setuptools`, as a workaround for
ansys/pydpf-core#784 (since the
fix is not yet released).
When merged, we should add a new issue to remind us to remove
the dependency when a new `ansys-dpf-core` is released.
Before submitting the issue
Description of the bug
The
pkg_resources
module used here:https://github.com/pyansys/pydpf-core/blob/5a92a48b4133592b02be7930b76e2112add8d03c/src/ansys/dpf/core/misc.py#L7
is provided by
setuptools
, butansys-dpf-core
does not listsetuptools
as a dependency. This causes failures in cases wheresetuptools
isn't already installed.Steps To Reproduce
pip uninstall -y setuptools
pip install ansys-dpf-core
ansys.dpf.core
Exception:
Which Operating System are you using?
Windows
Which DPF/Ansys version are you using?
none (this issue occurs independent of the DPF server)
Which Python version are you using?
3.9
Installed packages
Package Version
ansys-dpf-core 0.7.2
ansys-dpf-gate 0.3.0
ansys-dpf-gatebin 0.3.0
ansys-grpc-dpf 0.7.0
cachetools 5.3.0
certifi 2022.12.7
charset-normalizer 3.0.1
colorama 0.4.6
google-api-core 2.11.0
google-api-python-client 2.76.0
google-auth 2.16.0
google-auth-httplib2 0.1.0
googleapis-common-protos 1.58.0
grpcio 1.51.1
httplib2 0.21.0
idna 3.4
numpy 1.23.5
packaging 23.0
pip 21.1.3
protobuf 4.21.12
psutil 5.9.4
pyasn1 0.4.8
pyasn1-modules 0.2.8
pyparsing 3.0.9
requests 2.28.2
rsa 4.9
six 1.16.0
tqdm 4.64.1
uritemplate 4.1.1
urllib3 1.26.14
The text was updated successfully, but these errors were encountered: