exe

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings'

让人想犯罪 __ 提交于 2019-11-30 15:14:59
I am trying to make simple python program that is opening list of webpages for a user to manually download reports from the site. I don't have any previous experience with preparing exe files.. And I'm just in learning process for python coding. All of this is done on Windows 7 x64 This is my python code: #!C:/Python34/python.exe -u from splinter import * import time import os import csv #---------------------------------- raporty = [] with open('../raporty.csv', newline='') as csvfile: contents = csv.reader(csvfile, delimiter=' ', quotechar='|') for row in contents: r = ', '.join(row) r = r

Loading an EXE as a DLL, local vftable

跟風遠走 提交于 2019-11-30 14:19:43
I have an exe named test.exe which is usually used as a stand-alone application. I want to use this exe as a module (a dll) inside another application, app.exe. The code in test.exe does something really simple like: void doTest() { MyClass *inst = new MyClass(); inst->someMethod(); } Where someMethod() is virtual and MyClass has a virtual d'tor. doTest() is exported from test.exe and thus a lib called test.lib is created app.exe is linked with this lib to statically load test.exe when it starts. When I'm running test.exe stand-alone it runs just fine but when I'm running it loaded from within

How to decompile an exe or a dll to assembly

北城以北 提交于 2019-11-30 13:23:09
问题 I am really interested in assembly language and I want to learn about how exe files work how dlls run etc... and I have an idea of writing an application to decompile an exe to assembly code since i am not a very good assembly programmer and with the lack of knowledge of the inner working of exe I couldn't do it. Since I can read an exe in hex i think it is not impossible but I don't know how to write my own program. Any resources or any help would be appreciated. 回答1: I think you're looking

How to convert python .py file into an executable file for use cross platform?

五迷三道 提交于 2019-11-30 12:07:41
问题 I've been searching through SO for a while now trying to come up with an answer to this but due to my inexperience with programming I don't understand much of the documentation, nor am I confident enough to experiment too much. Would anyone be able to describe in slightly simpler terms how I would use programs like Py2exe, PyInstaller, cx_freeze etc.? I just want a way for others (mainly friends) to be able to run my (simple, text only) program without having to download python themselves. If

How to read / write .exe machine code manually?

老子叫甜甜 提交于 2019-11-30 10:52:01
问题 I am not well acquainted to the compiler magic. The act of transforming human-readable code (or the not really readable Assembly instructions) into machine code is, for me, rocket science combined with sorcery. I will narrow down the subject of this question to Win32 executables (.exe). When I open these files up in a specialized viewer, I can find strings (usually 16b per character) scattered at various places, but the rest is just garbage. I suppose the unreadable part (majority) is the

Call an exe from Java with passing parameters with writing to stdout and reading from stdin

旧时模样 提交于 2019-11-30 10:00:11
问题 I have read this question: Java Programming: call an exe from Java and passing parameters And this answer is good enough https://stackoverflow.com/a/5604756/2674303 But I additionally want to pass parameters to stdin of external process and read from stdout of this process. How can I do this? My efforts : main method: public class ProcessBuilderTest { public static void main(String[] args) throws IOException, InterruptedException { ProcessBuilder pb = new ProcessBuilder("C:\\Program Files\

getting error when converting a pyscript to exe using Py2Exe

一笑奈何 提交于 2019-11-30 09:51:26
问题 I am new to this py2exe, I have my script in cmd.py import sys for arg in sys.argv: print arg print "Hello World!" setup.py, from distutils.core import setup import py2exe setup(console=['cmd.py']) having both the files in same directory, I ran, python setup.py py2exe and getting the below error, G:\PyScripts>python setup.py py2exe running py2exe Traceback (most recent call last): File "setup.py", line 3, in <module> setup(console=['cmd.py']) File "C:\ProgramData\Anaconda3\lib\distutils\core

How to my “exe” from PyCharm project [duplicate]

十年热恋 提交于 2019-11-30 09:35:10
This question already has an answer here: Create a single executable from a Python project 2 answers Writing some project on Python via PyCharm. I want to get an exe file from it. I've tried to "Save as->XXX.exe" - but ,when i'm trying to execute it there is an error "file is not supported with such kind of OS" p.s. i've got win7 x64,it doesn't work on x32 too. You cannot directly save a Python file as an exe and expect it to work -- the computer cannot automatically understand whatever code you happened to type in a text file. Instead, you need to use another program to transform your Python

Merge two exe files into one programmatically

那年仲夏 提交于 2019-11-30 08:32:42
Is there a way to merge two exe files into one, programmatically, so that running it would execute both older exe files together. I found some things on google about injecting code or dll files but is it possible two merge two exe files or to inject exe into exe? Thanks in advance. [EDIT] Thanks everyone. Just for those who said that it's not possible, I have to say I almost did it in the end in the way some suggested. It almost goes like this (I can't remember all of it cos it was a long time ago): [BEWARE: This algorithm is very similar to those of some worms and viruses. I am not a hacker

How to set custom icon for javafx native package icon on Windows

懵懂的女人 提交于 2019-11-30 08:31:26
问题 I am trying to chance the icon of the exe file while creating native bundling of javafx packaging. I tried adding icon into pom.xml but till it wont work out for me as it gives default icon Using Intellij IDEA IDE which contain an Pom.xml creating an package by command = mvn jfx:build-native Here is my pom.xml : <build> <plugins> <plugin> <groupId>com.zenjava</groupId> <artifactId>javafx-maven-plugin</artifactId> <version>1.5</version> <configuration> <mainClass>com.demoApp.testapp