question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: No support for x86

See original GitHub issue

Specification

  • Platform: Win7 x86
  • Version: pywebview-2.2.1

Description

run hellow world

import webview
webview.create_window('Hello world', 'https://pywebview.flowrl.com/hello')

have this error

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NotImplementedException: No support for x86
   at Python.Runtime.TypeManager.NativeCode.get_Active()
   at Python.Runtime.TypeManager.InitializeNativeCodePage()
   at Python.Runtime.TypeManager.InitializeSlots(IntPtr type, Type impl)
   at Python.Runtime.TypeManager.CreateMetaType(Type impl)
   at Python.Runtime.MetaType.Initialize()
   at Python.Runtime.Runtime.Initialize()
   at Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv)
   at Python.Runtime.PythonEngine.InitExt()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at clrModule.PyInit_clr()

have this log while pywebview install

Collecting pywebview
  Using cached https://files.pythonhosted.org/packages/9c/98/2bb83cbe35b09bf5079684f3eeecba2f19d0c90c5cac0ca272539d058d7d/pywebview-2.2.1-py3-none-any.whl
Requirement already satisfied: pythonnet; sys_platform == "win32" in c:\python37\lib\site-packages (from pywebview) (2.4.0.dev0)
Installing collected packages: pywebview
Successfully installed pywebview-2.2.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vanillycppcommented, Nov 11, 2018

I started issue on pythonnet page https://github.com/pythonnet/pythonnet/issues/772 and solve this error with installing .net sdk then got problems that MSBuild 14 no supported so I need to install MSBuild 15 (Visual Studio 17) with Win 10 sdk

0reactions
denfromufacommented, Dec 5, 2018

@vanillycpp the installation for your platform (win7 32-bit) has been fixed in pythonnet

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I'm getting System.Reflection.TargetInvocationException
Why I'm getting System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.
Read more >
Xamarin forms: Unhandled Exception: System.Reflection ...
Xamarin forms: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Read more >
IL2CPP error - Unity Forum
Unhandled Exception : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.
Read more >
The method or operation is not implemented.
UnhandledException to handle the exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
Read more >
Launcher linux support? - Uthgard • View topic
Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.MissingMethodException: Method ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found