Skip to content

Bug located in ...Iron python import pyadet error due to numpy #1308

Closed
@boyang2022

Description

@boyang2022

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

Which Operating System are you using?

Windows

Which Python version are you using?

3.7

Installed packages

ironpython

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions