#DEEP FREEZE MAC COMMAND LINE FULL#The BIOS of your computer can usually be accessed during the startup of your computer, provided that it was not hibernated or put to sleep but actually shutdown in full when you last used it. Such wake events can usually be configured from within the BIOS. Your memory, and at times your CPU, will remain under power so that when you come back to the machine, and for example press the space bar or click a mouse button (as wake events), the computer will commence operating again at the point where you put it to sleep. #DEEP FREEZE MAC COMMAND LINE HOW TO#If someone knows how to do this, it would be a big help.A sleep state is very similar, though the power will not be completely taken away. What would have saved me a day would be a way to automagically dump the error message generated when executing from the command line to the console log. UiName = os.path.join(os.path.dirname(sys.executable), "tabDISE.ui" )Īnd it runs. I changed this to: if getattr(sys, 'frozen', False): The problem turned out to be in the way I was looking for the included_files. So I repeated the process of moving the program, only using the MacOS folder rather than the dist folder, and executing macdise from the command line on my wife's MBP. Update: I looked at the libraries in build/Contents/MacOS/PyQt4.*.so with otool, and these all have (as opposed to hard-coded paths in dist). I'm guessing the solution is simple, but I haven't stumbled across it yet. So it seems the failure is dlopen() returning a hard-coded path to the QtGui library. When I look in dist, there is a file QtGui that is the same size as the one in /opt. ImportError: dlopen(/Volumes/NO NAME/dist/, 2): Library not loaded: /opt/local/Library/Frameworks/amework/Versions/4/QtGui I put the dist directory on a thumb drive and ran it on another Mac that doesn't have Python, Qt4, etc installed, and got this: packages/cx_Freeze/initscripts/Console.py", line 27, in File "macdise.py", line 4, in įile "ExtensionLoader_PyQt4_QtGui.py", line 11, in #DEEP FREEZE MAC COMMAND LINE CODE#Through brute force trial and error, I found that if I put all of my code in a separate module, simply importing that module (without actually invoking it) causes the 10810 error, so I figured it was finding a library when run from the command line, but not from the app. I worked through a number of potential issues raised by Dan McCombs (_platform, sys.arg), but these don’t seem to be the problem. I get the dreaded LSOpenURLsWithRole() failed for the application /Users/jeffemandel/macdise/build/MacDISE-1.0.app with error -10810. If I open from the command line: $ open -a /Users/jeffemandel/macdise/build/MacDISE-1.0.app If I run the program directly either from the app bundle or the dist: $ build/MacDISE-1.0.app/Contents/MacOS/macdise app (python setup.py bdist_mac) in Yosemite using Python from macports. Using the unmodified setup.py generated by cxfreeze-quickstart-2.7, I can successfully build as both a console program (python setup.py build) and an. The program also uses requests, serial,, and collections. I have a Python 2.7/PyQt4 program that I am attempting to freeze with cx_freeze.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |