Skip to content

ImportError: System.NotImplementedException: No support for armv7l #873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bimajatiwijaya opened this issue May 28, 2019 · 8 comments
Closed

Comments

@bimajatiwijaya
Copy link

bimajatiwijaya commented May 28, 2019

Environment

  • Pythonnet version:
    • 2.4.0 & 2.4.1.dev0
  • Python version: 2.7.9
  • Operating System: Raspbian GNU/Linux 8 (jessie)

Details

    import clr
    clr.AddReference("myLib")
  • Traceback (most recent call last):

import clr
File "", line 1, in
ImportError: System.NotImplementedException: No support for armv7l
at Python.Runtime.TypeManager+NativeCode.get_Active () [0x0002a] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.TypeManager.InitializeNativeCodePage () [0x00017] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.TypeManager.InitializeSlots (System.IntPtr type, System.Type impl) [0x000ad] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.TypeManager.CreateMetaType (System.Type impl) [0x00077] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.MetaType.Initialize () [0x00000] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.Runtime.Initialize (System.Boolean initSigs) [0x002a2] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.PythonEngine.Initialize (System.Collections.Generic.IEnumerable`1[T] args, System.Boolean setSysArgv, System.Boolean initSigs) [0x00014] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.PythonEngine.Initialize (System.Boolean setSysArgv, System.Boolean initSigs) [0x00005] in <9666540cfc85422bb7aded792ea4f880>:0
at Python.Runtime.PythonEngine.InitExt () [0x00000] in <9666540cfc85422bb7aded792ea4f880>:0

@bimajatiwijaya
Copy link
Author

bimajatiwijaya commented May 28, 2019

For now i reset commit to 6d68d70 and error message "No support for armv7l" is solved.

@maurice1103
Copy link

Can you probably explain to me (with the command line commands) how you solved it? I tried it yesterday for several hours and failed miserably...

@maurice1103
Copy link

Environment

  • Pythonnet version: 2.4.0
  • Python version: 2.7.13
  • Operating System: Raspbian GNU/Linux 9.9 (stretch)

Details

    import clr
  • Python 2.7.13 (default, Sep 26 2018, 18:42:22)
    [GCC 6.3.0 20170516] on linux2
    Type "help", "copyright", "credits" or "license" for more information.

import clr
sh: 0: getcwd() failed: No such file or directory
Traceback (most recent call last):
File "", line 1, in
ImportError: System.NotImplementedException: No support for armv7l
at Python.Runtime.TypeManager+NativeCode.get_Active () [0x0002a] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.TypeManager.InitializeNativeCodePage () [0x00017] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.TypeManager.InitializeSlots (System.IntPtr type, System.Type impl) [0x000ad] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.TypeManager.CreateMetaType (System.Type impl) [0x00077] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.MetaType.Initialize () [0x00000] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.Runtime.Initialize (System.Boolean initSigs) [0x002a2] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.PythonEngine.Initialize (System.Collections.Generic.IEnumerable`1[T] args, System.Boolean setSysArgv, System.Boolean initSigs) [0x00014] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.PythonEngine.Initialize (System.Boolean setSysArgv, System.Boolean initSigs) [0x00005] in <3c181e2b216e4da7b915e672de4e00f2>:0
at Python.Runtime.PythonEngine.InitExt () [0x00000] in <3c181e2b216e4da7b915e672de4e00f2>:0

@bimajatiwijaya
Copy link
Author

  1. uninstall pythonnet
  2. clone to /home/user/pythonnet
  3. cd /home/user/pythonnet
  4. git reset --hard 6d68d70
  5. Then install it

@maurice1103
Copy link

thx a lot for your help but im still getting the same error....
Is probabla still something wrong with my .whl file?
Pythonnet.zip

@bimajatiwijaya
Copy link
Author

@maurice1103 we have different environment python version & OS version please try to make it equal.

@filmor
Copy link
Member

filmor commented Jun 20, 2019

The problematic PR is #752, I have created a pull request for this but have right now no easy way of testing it. Could you both check whether it works for you with

pip install git+https://github.com/filmor/pythonnet.git@support-arm

?

@filmor
Copy link
Member

filmor commented Jun 24, 2019

This should be fixed on master, please reopen if it isn't.

@filmor filmor closed this as completed Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants