Skip to content

impossible to import pyacq and clr #642

@samuelgarcia

Description

@samuelgarcia

Environment

  • Pythonnet version: 2.3
  • Python version: 3.6.2
  • Operating System: windows10

Details

I am dev of pyacq module.
I need to use clr to access a .NET dll.

I can import pyacq and import clr independantly but not in the same module.

So when:

import pyacq
import clr

I have a non informative (for me) message:

Windows fatal exception: code 0xe06d7363

Current thread 0x00000d18 (most recent call first):
  File "<frozen importlib._bootstrap>", line 205 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 922 in create_module
  File "<frozen importlib._bootstrap>", line 560 in module_from_spec
  File "<frozen importlib._bootstrap>", line 648 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 950 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 961 in _find_and_load
  File "test_pythonnet.py", line 10 in <module>
Windows fatal exception: code 0xe06d7363

Current thread 0x00000d18 (most recent call first):
  File "<frozen importlib._bootstrap>", line 205 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 922 in create_module
  File "<frozen importlib._bootstrap>", line 560 in module_from_spec
  File "<frozen importlib._bootstrap>", line 648 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 950 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 961 in _find_and_load
  File "test_pythonnet.py", line 10 in <module>
Windows fatal exception: code 0xe06d7363

.... very long message ...

I guess that there is a hook on import somewhere but I am totally lost.
Any help would be very usefull.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions