bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OSError: [WinError 193] %1 is not a valid Win32 application


From: Jianshan Jiang
Subject: OSError: [WinError 193] %1 is not a valid Win32 application
Date: Tue, 30 Apr 2024 15:10:03 +0800

Hello,
     I use the newest version of gnulib from git. when I run the ./autogen.sh where I create for sed-4.9. gnulib-tool will throw an exception like below:

  top/README-release
  top/maint.mk
Traceback (most recent call last):
  File "E:\Githubs\msvc-pkgs\pkgs\gnulib\.gnulib-tool.py", line 30, in <module>
    main.main_with_exception_handling()
  File "E:\Githubs\msvc-pkgs\pkgs\gnulib\pygnulib\main.py", line 1367, in main_with_exception_handling
    main()
  File "E:\Githubs\msvc-pkgs\pkgs\gnulib\pygnulib\main.py", line 953, in main
    importer.execute(filetable, transformers)
  File "E:\Githubs\msvc-pkgs\pkgs\gnulib\pygnulib\GLImport.py", line 1222, in execute
    emit = sp.run([joinpath(DIRS['root'], 'build-aux/prefix-gnulib-mk'), '--from-gnulib-tool',
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Python312\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError 193] %1 is not a valid Win32 application

Finally, I have found the solution. I have add the 'shell=True' into function sp.run in GLImport.py. You can see the detail in 001-gnulib-fix-WinError-193.diff.

Attachment: autogen.sh
Description: Text Data

Attachment: 001-gnulib-fix-WinError-193.diff
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]