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.

With --onefile extraction can fail with programs already running

See original GitHub issue
  • Nuitka version
$   python -m nuitka --version
0.6.12.3
Python: 3.8.7 (tags/v3.8.7:6503f05, Dec 21 2020, 17:59:51) [MSC v.1928 64 bit (AMD64)]
Executable: C:\Program Files\Python38\python.exe
OS: Windows
Arch: x86_6

Installed via pip

Used libraries

firebase-admin==4.5.1
python-dateutil==2.8.1
PyNaCl==1.4.0
cffi==1.14.4
TgCrypto==1.2.2
Pyrogram==1.1.13
APScheduler==3.7.0
python-engineio==4.0.0
python-socketio==5.0.4
Rx==3.1.1

The file used to work on 0.6.12 and execute perfectly. It still build right, but when I try to execute, the following error happens:

$ ./main.exe
Assertion failed: target_file != INVALID_HANDLE_VALUE, file static_src\WindowsOnefile.c, line 374

The main.exe inside main.dist still works normaly, so probably it’s a --oneflie error

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Feb 24, 2021

You probably meant --include-package-data=* didn’t you.

0reactions
LeonardoRickcommented, Mar 9, 2021

@kayhayen thats weird, it looks to me that it’s building like a plain --standalone inside .dist. I guess I’ll not be able to use a o single file version while --onefile give us this error

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyInstaller error with PyQt when trying to build --onefile
When you run the --onefile, it just creates a wrapper that extract everything in the dir to a temporary directory and then run...
Read more >
Using Spec Files - PyInstaller
These are loaded into the bootloader at startup of the application after they have been extracted (if the program has been packaged as...
Read more >
PyInstaller Documentation - Read the Docs
In order to locate included files at run time, your program needs to be able to learn its ... Where to extract libraries...
Read more >
Issues When Using auto-py-to-exe - Nitratine
This means something has gone wrong as it's giving you a visual warning about it; this is not an error, it's a warning;...
Read more >
BackupYourSystem/TAR - Community Help Wiki
This subpage will acquaint a user with the tar archival program, ... To get started, please open up a terminal, in Ubuntu this...
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