cx-freeze

Python 2.7 Cx_Freeze: ImportError: No module named __startup__

两盒软妹~` 提交于 2019-12-01 04:13:59
I am trying to compile a hello world program in Python into a stand-alone binary/package on Linux using cx_Freeze. When cx_Freeze is run, it completes without an error but when I attempt to run the generated executable, I am given the error: ImportError: No module named __startup__ My setup.py file is: from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages = [], excludes = []) base = 'Console' executables = [ Executable('test.py', base=base) ] setup(name='test', version = '1.0', description = '', options

Can I make a 32-bit program with cx_Freeze if I have a 64-bit OS?

时光怂恿深爱的人放手 提交于 2019-12-01 03:28:25
I am currently running Windows 7 Home 64-bit and am working on a program that I would like to make available for both 32-bit and 64-bit Windows operating systems. When I use cx_Freeze to turn my .py to a .exe, it only allows it to be installed on 64-bit operating systems. Would I need to buy a 32-bit computer to convert it to a 32-bit program or are there a special set of commands I can use to make cx_Freeze create both a 32-bit and a 64-bit exe? from cx_Freeze import * import sys base = None if sys.platform == 'win32': base = "Win32GUI" executables = [Executable("iNTMI.py", shortcutName =

exe built with cx_Freeze, PyQt5, Python3 can't import ExtensionLoader_PyQt5_QtWidgets.py and run

蓝咒 提交于 2019-12-01 01:31:18
I'm trying to pack my app Python3, PyQt5 for Windows using cx_Freeze. I've installed Python 3.4.3, Python-win32, PyQT5, cxfreeze. Application itself, run in console, works fine. I try to pack it with cx_freeze: python setup.py build_exe. It works on the same host. But when I move it to another clean installation WinXP it gives an error: Traceback: File "C:\Python34\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27 in <module> File "pyftp1.py" in 7, in <module> File "c:\python\32-bit\3.4\lib\importlib\_bootstrap.py", in 2237, in _find_and_load File "c:\python\32-bit\3.4\lib\importlib

Python 2.7 Cx_Freeze: ImportError: No module named __startup__

混江龙づ霸主 提交于 2019-12-01 01:15:07
问题 I am trying to compile a hello world program in Python into a stand-alone binary/package on Linux using cx_Freeze. When cx_Freeze is run, it completes without an error but when I attempt to run the generated executable, I am given the error: ImportError: No module named __startup__ My setup.py file is: from cx_Freeze import setup, Executable # Dependencies are automatically detected, but it might need # fine tuning. buildOptions = dict(packages = [], excludes = []) base = 'Console'

Can't make standalone binary scrapy spider with cx_Freeze

混江龙づ霸主 提交于 2019-11-30 21:49:46
A short description about my working environment: win 7 x64, python 2.7 x64, scrapy 0.22, cx_Freeze 4.3.2. First, I developed a simple crawl-spider and it works fine. Then, using the core scrapy API, I created an external script main.py, which can run spider, and it also works as required. Here is the code of the script: # external main.py using scrapy core API, 'test' is just replaced name of my project from twisted.internet import reactor from scrapy.crawler import Crawler from scrapy import log, signals from test.spiders.testSpider import TestSpider from test import settings, pipelines from

Error when building executable from Python3.6 script importing pandas using cx_Freeze

喜夏-厌秋 提交于 2019-11-30 17:48:20
问题 I'm trying to create a Python 3.6 executable using cx_Freeze which includes pandas and numpy. I'm using Python 3.6.5 and a virtual env created using virtualenvwrapper. I'm developing on Windows 10. cx_Freeze version is 5.1. Pandas versions is 0.23.4. My setup.py looks like this: import os from cx_Freeze import setup, Executable PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__)) os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6') os.environ['TK_LIBRARY

cxfreeze missing distutils module inside virtualenv

风格不统一 提交于 2019-11-30 17:14:46
问题 When running a cxfreeze binary from a python3.2 project I am getting the following runtime error: /project/dist/project/distutils/__init__.py:13: UserWarning: The virtualenv distutils package at %s appears to be in the same location as the system distutils? Traceback (most recent call last): File "/home/chrish/.virtualenvs/project/lib/python3.2/distutils/__init__.py", line 19, in <module> import dist ImportError: No module named dist Correspondingly there are several distutils entries in the

ImportError with cx_Freeze and pyinstaller

自作多情 提交于 2019-11-30 15:20:12
I was using pyinstaller before to try and get my app with twisted as an executable, but I got this error when executing: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/cx_Freeze/initscripts/Console.py", line 27, in <module> exec code in m.__dict__ File "client_test.py", line 2, in <module> File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/__init__.py", line 53, in <module> _checkRequirements() File "/usr/local/lib/python2.7/dist-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/__init__.py", line 37, in

Python 3 project into exe?

懵懂的女人 提交于 2019-11-30 15:04:38
问题 I've made my first Python program, using Python 3.2. Now I'm trying to figure out how to make it an executable. I pretty much only need it for Windows only. I've searched as much as possible and found out that py2exe doesn't support Python 3. cxfreeze does, but I can't figure out how to make a single executable of my program with it. I need it as a portable one-file exe. Please bear with me as I am a total newcomer :) Any help is appreciated. 回答1: You can use cxfreeze to make the executable

how to use cx_freeze in linux to create a package to be used in windows

让人想犯罪 __ 提交于 2019-11-30 13:56:25
how to use cx_freeze in linux to create a one package to be used in windows like .exe or .bin file. I tested cx_freeze in linux but that make package for linux and in windows is unknown. for example : $ cxfreeze gui.py and this is file that maked : gui that is running only in linux. Is there any way to use cx_freeze for making exe or bin package ? Or any alternative way instead of cx_freeze to make one bin file to execute in other platform independent? I use python3(3.x). I've been trying to get cx_freeze properly working on windows in every way possible but with no luck...I was trying to do