exe

Using Pyinstaller with NLTK results in error: can't find nltk_data

≡放荡痞女 提交于 2020-05-14 03:46:13
问题 I am attempting to export a simple GUI that used NLTK as an exe with Python 3.6 and Windows 10. When I run PyInstaller to freeze my simple program as an exe I get the error: Unable to find "c:\users\usr\nltk_data" when adding binary and data files. When I even copied the nltk_data folder here and I get an error in a different nltk.data.path path "c:\users\usr\appdata\local\programs\python\python36\nltk_data" import tkinter as tk from nltk.corpus import stopwords sw = stopwords.words('english'

Fatal Python error: initfsencoding: unable to load the file system codec

可紊 提交于 2020-04-12 09:32:11
问题 I have created a .exe file of a simple script with intentions to run it on a server however I cannot seem to figure out what this fault means or find any answers online. The fault code is as follows: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00003c8c (most recent call first): To get this far I used pyinstaller pyinstaller --onefile MyScript.py When this didn't work I also tried pyinstaller

Fatal Python error: initfsencoding: unable to load the file system codec

人走茶凉 提交于 2020-04-12 09:31:49
问题 I have created a .exe file of a simple script with intentions to run it on a server however I cannot seem to figure out what this fault means or find any answers online. The fault code is as follows: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current thread 0x00003c8c (most recent call first): To get this far I used pyinstaller pyinstaller --onefile MyScript.py When this didn't work I also tried pyinstaller

Closing form from another thread

会有一股神秘感。 提交于 2020-04-09 15:46:42
问题 I have got this code which runs an .exe string openEXE = @"C:\Users\marek\Documents\Visual Studio 2012\Projects\tours\tours\bin\Debug\netpokl.exe"; Process b = Process.Start(openEXE); b.EnableRaisingEvents = true; b.Exited += (netpokl_Closed); And when it closes it calls method netpokl_Closed. The issue is when I insert into netpokl_Closed command - this.Close() this exception rises: Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on How

Closing form from another thread

只愿长相守 提交于 2020-04-09 15:46:41
问题 I have got this code which runs an .exe string openEXE = @"C:\Users\marek\Documents\Visual Studio 2012\Projects\tours\tours\bin\Debug\netpokl.exe"; Process b = Process.Start(openEXE); b.EnableRaisingEvents = true; b.Exited += (netpokl_Closed); And when it closes it calls method netpokl_Closed. The issue is when I insert into netpokl_Closed command - this.Close() this exception rises: Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on How

How to do python .exe file with face_recognition module

大兔子大兔子 提交于 2020-03-23 04:26:11
问题 I did programm using face_recognition module and when I try to make .exe file for Windows it doesn't work. May be smb can tell me what to do? 回答1: Download the file shape_predictor_68_face_landmarks.dat from here http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 and extract it and place in C:\Users\YOUR_NAME\PycharmProjects\test_exe\dist\face_recognition_models\shape_predictor_68_face_landmarks.dat That needed file is a trained model for Dlib! 来源: https://stackoverflow.com

Flex Air程序打包成独立的exe安装文件

此生再无相见时 提交于 2020-03-17 11:25:29
某厂面试归来,发现自己落伍了!>>> 开发背景: FlexBuilder3.2开发生成的Air程序需要能够独立安装,事先不需要安装AdobeAir运行环境 实现方法: 1)用winrar打开xx.air文件爱能,并将它解压在D:\airapp目录中。 2)在D:\airapp目录下新建一个文件夹,命名为app,此目录用于存放我们的AIR主程序。 3)把D:\airapp目录下的其它所有文件及文件夹都拷到D:\airapp\app目录中。 4)把C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0\bin目录中的adl.exe文件也拷到D:\airapp\app目录中。 5)把C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.2.0目录下的runtimes文件夹拷到D:\airapp目录中。 6)此时我们在D:\airapp中创建一个setup.bat文件,在其中输入以下代码: app\adl -runtime runtimes\air\win app\application.xml -nodebug -- -main app\index.swf 7)使用Quick Batch File Compiler软件将setup.bat打包成exe文件,并可以添加图标

Is it possible to know in what language an exe file is written?

老子叫甜甜 提交于 2020-03-12 17:59:23
问题 I have an exe file and I decompiled it with Ida. I was told the program coded in Delphi, so I tried to decompile with DeDe but it failed, no output and no error. And I'm wondering is it possible to find language used in creating exe by trying different decompilers written specifically for a programming language? Or can they fail for some other reason? 回答1: In many cases it is possible to identify the compiler used to compile the code, and from that, the original language. Most language

Is it possible to know in what language an exe file is written?

▼魔方 西西 提交于 2020-03-12 17:44:56
问题 I have an exe file and I decompiled it with Ida. I was told the program coded in Delphi, so I tried to decompile with DeDe but it failed, no output and no error. And I'm wondering is it possible to find language used in creating exe by trying different decompilers written specifically for a programming language? Or can they fail for some other reason? 回答1: In many cases it is possible to identify the compiler used to compile the code, and from that, the original language. Most language

Is it possible to know in what language an exe file is written?

帅比萌擦擦* 提交于 2020-03-12 17:40:54
问题 I have an exe file and I decompiled it with Ida. I was told the program coded in Delphi, so I tried to decompile with DeDe but it failed, no output and no error. And I'm wondering is it possible to find language used in creating exe by trying different decompilers written specifically for a programming language? Or can they fail for some other reason? 回答1: In many cases it is possible to identify the compiler used to compile the code, and from that, the original language. Most language