{"id":4613,"date":"2014-03-30T14:00:27","date_gmt":"2014-03-30T14:00:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-cx-freeze-collection-of-common-programming-errors\/"},"modified":"2014-03-30T14:00:27","modified_gmt":"2014-03-30T14:00:27","slug":"problem-about-cx-freeze-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/problem-about-cx-freeze-collection-of-common-programming-errors\/","title":{"rendered":"problem about cx-freeze-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/93cc3e2eea2efdf7a7d261d47da6b7f7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1389652<br \/>\npyqt pyqt4 cx-freeze<br \/>\nI have a system,written on PyQt4. It is mostly developed and debug under linux (ubuntu) systems, in Eric IDE, and everything works fine. Last task was to create a nested editor for a table cell. So, i did it and it also looks nice in ubuntu. I also ran it under Windows 7 x64, and the behavior was the same.However, after making executable file with cx_Freeze in Windows 2000 (it&#8217;s weird, but this environment was configured before me), the editors behavior became unexpected. After opening Editor it<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c66c796793a4df79af4692c816244c81?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSridhar Ratnakumar<br \/>\npython windows windows-xp msvcrt cx-freeze<br \/>\nI have been plagued with this problem ever since I started with Python, I want to write a Python script, and then export it as an EXE that I can run on any Windows XP (and up) machine.cx_Freeze covers all of this perfectly, the only problem is that it required Visual C++ Runtime to be installed on the client computer before the resulting EXE will run on it&#8230;Is it possible to convert my beautiful *.py file into a nice distributable EXE that will run on a fresh install of Windows XP and up?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/abbb3c1585cf679c1d08385c729757fc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncmh<br \/>\npython postgresql shared-libraries psycopg2 cx-freeze<br \/>\nI have built an executable using cxfreeze (inside a python3.2 virtualenv) on my local machine. The executable runs correctly on the local machine. I&#8217;m trying to run the executable on a separate target machine (of identical OS and architecture), but get the following error: &#8230;File &#8220;\/home\/chris\/.virtualenvs\/python3env\/lib\/python3.2\/site-packages\/psycopg2\/__init__.py&#8221;, line 67, in &lt;module&gt;File &#8220;ExtensionLoader_psycopg2__psycopg.py&#8221;, line 18, in &lt;module&gt;ImportError: No module named Non<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/85f0b684de1144a0a9b86170283c5974?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nuser2727932<br \/>\npython pygame windows-vista compatibility cx-freeze<br \/>\nI made a game with Python 2.6. I also made it into an executable with cx_Freeze 4.3. When I run the executable on my computer it came up with this:Microsoft Visual C++ Runtime LibraryProgram: C:\\Users\\smm\\Desktop\\asteroid shower 1.4.5\\asteroid.exeThis application has requested the Runtime to terminate it in an unusual way. Please contact the application&#8217;s support team for more information.I don&#8217;t understand what happened here. I tried solving the problem but with no luck. Then I searched the run<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7ef264821db2afb6e7e485bfd4288f1c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKarnisov<br \/>\npython pyqt4 cx-freeze<br \/>\nI&#8217;m trying to freeze a python 3.2.2 script with cx_freeze 4.2.3. PyQt4 is used by the source script, I&#8217;m not sure if that is a potential source of the issue. Python crashes during the build process. Here is the command line output:C:\\Python32\\New Folder&gt;python setup.py buildrunning buildrunning build_execopying C:\\Python32\\Lib\\site-packages\\cx_Freeze\\bases\\Win32GUI.exe -&gt; build\\exe.win32-3.2\\app.execopying C:\\WINDOWS\\system32\\python32.dll -&gt; build\\exe.win32-3.2\\python32.dllPython itself crashes<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7c2c96930000f6f743e8d5afaf5f2865?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nxoolive<br \/>\npython py2exe pyside pyinstaller cx-freeze<br \/>\nI am trying to build a very basic executable (Windows) using PySide. The following script runs properly in the interpreter (Python 2.7, PySide 1.1.2)#!\/usr\/bin\/pythonimport syssys.stdout = open(&#8220;my_stdout.log&#8221;, &#8220;w&#8221;) sys.stderr = open(&#8220;my_stderr.log&#8221;, &#8220;w&#8221;)import PySide.QtGui from PySide.QtGui import QApplication from PySide.QtGui import QMessageBox# Create the application object app = QApplication(sys.argv)# Create a simple dialog box msgBox = QMessageBox() msgBox.setText(&#8220;Hello World &#8211; using PyS<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c8adc5616c969415211597f0f97b77bf?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSjuul Janssen<br \/>\npython json cx-freeze<br \/>\nThe following python script runs fine:#!\/usr\/bin\/python import simplejsonprint str(simplejson.loads(&#8216;{&#8220;a&#8221;: &#8220;abc&#8221;}&#8217;))Then after freezing it:cxfreeze test.py &#8211;target-dir distTraceback (most recent call last):File &#8220;\/usr\/lib\/pymodules\/python2.7\/cx_Freeze\/initscripts\/Console.py&#8221;, line 29, in &lt;module&gt;exec code in m.__dict__File &#8220;test.py&#8221;, line 3, in &lt;module&gt;import simplejson as jsonFile &#8220;\/usr\/lib\/python2.7\/dist-packages\/simplejson\/__init__.py&#8221;, line 111, in &lt;module&gt;from decoder impo<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>user1389652 pyqt pyqt4 cx-freeze I have a system,written on PyQt4. It is mostly developed and debug under linux (ubuntu) systems, in Eric IDE, and everything works fine. Last task was to create a nested editor for a table cell. So, i did it and it also looks nice in ubuntu. I also ran it under [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4613","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4613"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4613\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}