OSError:[WinError 193]%1不是有效的Win32应用程序opencv.js

Qwerpotify

我试图opencv.js他们页面上的教程中构建

除了最后一个步骤,我已经完成了所有步骤:

C:\Users\student>python C:\Users\student\opencv\platforms\js\build_js.py documents

这给了我这个错误:

Args: Namespace(build_dir='documents', build_doc=False, build_test=False, build_wasm=False, clean_build_dir=False, config_only=False, emscripten_dir=None, enable_exception=False, opencv_dir='C:\\Users\\student\\opencv', skip_config=False)
Cannot get Emscripten path, please specify it either by EMSCRIPTEN environment variable or --emscripten_dir option.

我尝试使用这个

C:\Users\student>python C:\Users\student\opencv\platforms\js\build_js.py --emscripten=C:\Users\student\emsdk\emscripten\1.37.36 documents

带有--emscripten选项,但我得到了这个:

Args: Namespace(build_dir='documents', build_doc=False, build_test=False, build_wasm=False, clean_build_dir=False, config_only=False, emscripten_dir='C:\\Users\\student\\emsdk\\emscripten\\1.37.36', enable_exception=False, opencv_dir='C:\\Users\\student\\opencv', skip_config=False)
Check dir C:\Users\student\documents (create: True, clean: False)
Check dir C:\Users\student\opencv (create: False, clean: False)
Check dir C:\Users\student\emsdk\emscripten\1.37.36 (create: False, clean: False)
Traceback (most recent call last):
  File "C:\Users\student\opencv\platforms\js\build_js.py", line 215, in <module>
    builder = Builder(args)
  File "C:\Users\student\opencv\platforms\js\build_js.py", line 84, in __init__
    self.emcc_version = determine_emcc_version(self.emscripten_dir)
  File "C:\Users\student\opencv\platforms\js\build_js.py", line 62, in determine_emcc_version
    ret = subprocess.check_output([os.path.join(emscripten_dir, "emcc"), "--version"])
  File "C:\Users\student\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "C:\Users\student\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\Users\student\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:\Users\student\AppData\Local\Programs\Python\Python36\lib\subprocess.py", line 997, in _execute_child
    startupinfo)
OSError: [WinError 193] %1 is not a valid Win32 application

我已经搜索了此问题近2天,但没有任何解决方案。

我正在使用Windows 10 64位。

威士忌酒

打开opencv\platforms\js\build_js.py文件,并替换此行:

ret = subprocess.check_output([os.path.join(emscripten_dir, "emcc"), "--version"])

有了这个:

ret = subprocess.check_output([os.path.join(emscripten_dir, "emcc.bat"), "--version"])

希望在下一个opencv版本中可以解决此问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

JNI C ++ DLL-'UnsatisfiedLinkError:%1不是有效的Win32应用程序'

OSError:[WinError 193]%1不是有效的Win32应用程序

Python:DLL加载失败:%1不是有效的Win32应用程序

CreateProcess错误= 193,%1不是有效的Win32应用程序-> [帮助1]

VLC.DotNet System.ComponentModel.Win32Exception:'%1不是有效的Win32应用程序'

通过Java和Selenium启动Internet Explorer时出现“ OsProcess checkForError:CreateProcess错误= 193,%1不是有效的Win32应用程序”

Pycharm与Electron -Runnerw.exe:CreateProcess失败,错误193:%1不是有效的Win32应用程序

WinError 193]%1不是有效的Win32应用程序

如何解决“ OSError:[WinError 193]%1不是有效的Win32应用程序”

如何修复Jupyter Notebook熊猫错误(OSError:[WinError 193]%1不是有效的Win32应用程序)

Anaconda / Orange3产生OSError:[WinError 193]%1不是有效的Win32应用程序

OSError:[WinError 193]%1不是有效的Win32应用程序错误,在Windows上通过Selenium和Python使用GeckoDriver和Firefox

OSError:[WinError 193]%1不是有效的Win32应用程序,同时使用CTypes读取python中的custim DLL

Python [WinError 193]%1不是有效的Win32应用程序

Rails 3.2.1:%1不是有效的Win32应用程序。-c:/ RailsInstaller

DLL加载失败:%1不是有效的Win32应用程序-Appcelerator

切换到Windows后,node.js错误-错误:%1不是有效的Win32应用程序

IOException:无法运行程序:CreateProcess错误= 193,%1不是有效的Win32应用程序

节点js,%1不是有效的Win32应用程序,js-bson:无法加载c ++ bson扩展,Windows

PHP加载错误:%1不是有效的Win32应用程序。

错误:%1不是有效的Win32应用程序

错误:java.io.IOException:CreateProcess错误= 193,%1不是有效的Win32应用程序

读取Perl脚本错误:CreateProcess错误= 193,%1不是有效的Win32应用程序

psexec %1 不是有效的 Win32 应用程序

pycharm-selenium-python:无法启动 chromedriver 服务 - [WinError 193] %1 不是有效的 Win32 应用程序

OSError: [WinError 10057]

Qt 和 Web 服务器应用程序 OSError: [WinError 10038] 尝试对不是套接字的东西进行操作

OSError: [WinError 193] %1 在使用 ctypes 时不是有效的 Win32 应用程序

pyinstaller 錯誤:OSError: [WinError 6] 句柄無效