Closed
Description
Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
Description of the bug
Iron python import pyadet error due to numpy
pyadet version: main branch
numpy version: 1.21.6
error message:
File "c:\users\byang\desktop\pyaedt_numpy\venv\lib\site-packages\numpy\__init__.py", line 132
raise ImportError(msg) from e
^
SyntaxError: unexpected token 'from'
Both cpython and ironpython are used in aedt test framework. And ironpython is not compatible with numpy version 1.21.6.
We want to install some minimal packages like this:
pip install pyaedt[minimal]
and this will install only pyaedt + COM interfaces
Steps To Reproduce
- create venv (python 3.7)
- pip install git+https://github.com/pyansys/pyaedt.git@main
- launch ironpython
- run:
import sys sys.path.append(r"c:\users\byang\desktop\pyaedt_numpy\venv\lib\site-packages") import pyaedt
Which Operating System are you using?
Windows
Which Python version are you using?
3.7
Installed packages
ironpython