[PyInstaller] mac os app bundle build

2011-09-14 Thread David Cortesi
There is something wrong (perhaps in my understanding) with the Mac OS bundle step. Below is my build script. What this creates in dist, whether I specify -F or -D, is two things: a directory ppqt containing all the needed files, and also an app bundle PPQT containing: Contents    

[PyInstaller] Mac OS bundle problems

2011-10-08 Thread David Cortesi
Returning anew to building a Mac OS app bundle. The following is my spec file. === # -*- mode: python -*- a = Analysis([os.path.join(HOMEPATH,'support/_mountzlib.py'), os.path.join(CONFIGDIR,'support/useUnicode.py'), '../ppqt.py'],

Fwd: [PyInstaller] #157: All PyQt apps give Error: 'qt_menu.nib could not be loaded' on OS-X

2011-10-12 Thread David Cortesi
On Wed, Oct 12, 2011 at 2:21 AM, Martin Zibricky mzibri...@gmail.com wrote: 3) Not so good, when I use a spec WITH the BUNDLE request it builds an app bundle (with qt_menu.nib in it, hurrah!), but alas, this app does not run properly: It creates its window and the window responds to mouse

Re: [PyInstaller] #157: All PyQt apps give Error: 'qt_menu.nib could not be loaded' on OS-X

2011-10-13 Thread David Cortesi
did you use the option --windowed when creating your executable? This option is mandatory when creating windowed applications. You are correct I did not use that option (the manual does not say I must) but I regret to say that it did not make any difference. I tried with --windowed and also

[PyInstaller] pyenchant/Mac OS the adventure continues

2011-11-10 Thread David Cortesi
The symptom has changed - suddenly (and I swear I didn't change the spec file) the error is no longer enchant C library not found, it has become the following, I show the full debug output because it seems to show the bundled app executing code out of the pyinstaller's folder and the build folder

Re: [PyInstaller] pyenchant/Mac OS the adventure continues

2011-11-11 Thread David Cortesi
I am travelling next 48 hours, will try to sort on the weekend. thanks On Fri, Nov 11, 2011 at 1:06 AM, Hartmut Goebel h.goe...@goebel-consult.dewrote: ** Am 11.11.2011 04:50, schrieb David Cortesi: The symptom has changed - suddenly (and I swear I didn't change the spec file) the error

Re: [PyInstaller] pyenchant/Mac OS the adventure continues

2011-11-14 Thread David Cortesi
Zibricky mzibri...@gmail.comwrote: David Cortesi píše v Pá 11. 11. 2011 v 05:42 -0800: I am travelling next 48 hours, will try to sort on the weekend. thanks To implement the hook you need to: - find properly enchant plugins (e.g. libenchant_aspell.so, libenchant_ispell.so

Re: [PyInstaller] pyenchant/Mac OS the adventure continues

2011-11-15 Thread David Cortesi
On Tue, Nov 15, 2011 at 12:16 AM, Hartmut Goebel h.goe...@goebel-consult.de wrote: Have you read the section about Hooks (http://www.pyinstaller.org/** export/latest/trunk/doc/**Manual.html#hookshttp://www.pyinstaller.org/export/latest/trunk/doc/Manual.html#hooks ). I must admit, that the

[PyInstaller] Re: [New feature] Making pyinstaller using system libpython

2012-04-24 Thread David Cortesi
If somebody wants to comment on the above, I'll gladly take your suggestions into account during development. Sounds like a bad idea. It makes the bundled app dependent on the content of the user's system. Suppose that's a different level of Python -- 3.x when the program is 2.x (or vice

[PyInstaller] False positive trojan detection

2012-11-21 Thread David Cortesi
I am distributing an app built with pyinstaller and a user reported that his AVG antivirus would not allow him to execute the app because it had a trojan. This is surely the same as reported on this list 4 Sept, see also ticket #619. In investigating this I installed the latest level of Parallels

[PyInstaller] Any way to minimize the console window?

2012-11-23 Thread David Cortesi
I use the one-dir, console options for an app that is used on windows, mac, and ubuntu. It is useful to have the console window for various reasons, but I have a user request, could the console window please be minimized after startup? To save them that one annoying click on the minimize button

[PyInstaller] Supporting --onefile --icon=name.icns for Mac?

2013-01-29 Thread David Cortesi
To resolve ticket #350 (http://www.pyinstaller.org/ticket/350) you added code to make a Mac OS --onefile bundled app use the pyinstaller icon. This demonstrates that somebody understood how to apply an icon file to a mac app bundle (add a line in the info.plist and put the .icns file in the

[PyInstaller] What's your usual cwd for pyinstaller?

2013-02-24 Thread David Cortesi
Pyinstaller users, in what current working directory do you usually run it? There's two (at least) ways of running pyinstaller. Method 1 (from the docs) cd /path/to/pyinstaller python pyinstaller.py --options... /path/to/project/src/yourscript.py This creates yourscript/build,

[PyInstaller] Request review of updated doc

2013-03-26 Thread David Cortesi
I have completed a first draft of an update to the PyInstaller manual. This would be part of the upcoming 2.1 release, which will include a change in the way to install and the way to run PyInstaller. I would appreciate any comments, however detailed and nit-picky, and especially any

[PyInstaller] Confused about --out=path option

2013-03-27 Thread David Cortesi
Using 2.0 on Mac OSX. When I use the option --out=$HOME/Desktop/scratch what I find in scratch is: drwxr-xr-x 3 original staff 102 Mar 27 13:01 build/ drwxr-xr-x 3 original staff 102 Mar 27 13:01 pyi.darwin/ drwxr-xr-x 11 original staff 374 Mar 27 13:02

[PyInstaller] Further confused about --out=path option with a spec file

2013-03-27 Thread David Cortesi
Say I have a project folder with source and spec file, but I want to put the bundled app elsewhere. This should do it, cd $PROJECT/src pyinstaller --out=$HOME/scratch ./myscript.spec But the --out option is ignored, the build and dist directories are built in the cwd. Note the

[PyInstaller] re: confusions about --out, --buildpath

2013-03-28 Thread David Cortesi
Martin Zibricky mzibr.pub...@gmail.com Mar 27 10:04PM +0100 As you describe it, I'm confused as well: - never tried these options myself. - they are from time before unified interface pyinstaller.py How should be changed the behavior of these options? - should the --out point to

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 17 Messages in 3 Topics

2013-04-11 Thread David Cortesi
Don Dwiggins ddwigg...@advpubtech.com Apr 10 04:34PM -0700 Does anyone here have experience building a Windows service with PyInstaller? Excuse me, is this the same as windows com server support? If so, there is some material in the existing manual here (no newlines in this url):

[PyInstaller] Review the draft doc for 2.1

2013-04-11 Thread David Cortesi
I have made considerable changes in the draft documentation file for the upcoming 2.1 release. I would very much appreciate any review comments. Read it here (careful, long URL) http://htmlpreview.github.com/?https://github.com/tallforasmurf/pyinstaller/blob/master/doc/Manual.html If you do

[PyInstaller]

2013-04-13 Thread David Cortesi
Daniel Hyams dhy...@gmail.com Apr 12 12:03PM -0400 If we have something to add, would it make sense to fork your repository at https://github.com/tallforasmurf/pyinstaller and issue pull requests to you? I think I'd rather you just file Issues on my repo. That way I can easily track which

[PyInstaller] Re:

2013-04-13 Thread David Cortesi
I wrote, re input to the draft doc, I think I'd rather you just file Issues on my repo. That way I can easily track which I've dealt with and comment back. But, equally good would be writing to me cc this list, especially if you aren't sure, or have an interesting point or new info. -- You

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 3 Messages in 3 Topics

2013-05-09 Thread David Cortesi
Martin Zibricky mzibr.pub...@gmail.com May 06 03:41PM +0200 upx does not support 64bit binaries on osx/win. the most visible effect in size reduction is on win. See the UPX page at http://upx.sourceforge.net/ for the list of supported binaries. The only specific Mac formats

[PyInstaller] Re: LD_LIBRARY_PATH unset on OSX; cannot load shared lib via ctypes

2013-05-10 Thread David Cortesi
Daniel Hyams dhy...@gmail.com May 09 09:30AM -0400 ...I think the correct way to handle this is to provide the full path to ctypes.CDLL(). In the case of being frozen, this just means to query sys.argv[0] to get the path to where the executable is, so long as the .so

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 3 Messages in 1 Topic

2013-05-13 Thread David Cortesi
Thanks for the reply. If I want to add the entire contents of a directory (and its sub directories), does this mean that the best solution is to walk through the source directory structure and add each file one at a time using some script? You should use the Tree class to create a TOC

[PyInstaller] Re: Supporting --onefile --icon=name.icns for Mac?

2013-05-27 Thread David Cortesi
Will the icon support for OSX be available soon('ish)? It is not in my plan yet. But you could contribute a patch for it. It should not be hard. Indeed it should not be hard. Everything about a Mac OS app is described in the info.plist that is inside Contents inside the app

[PyInstaller] Problem building onedir on ubuntu 10 with current build

2013-09-18 Thread David Cortesi
Hello. I have a program that builds correctly on Ubuntu 12, Mac OS and Windows XP. But the identical spec file fails when trying to build on Ubuntu 10. Building with --debug the build module executes as follows: $ file ./ppqt ./ppqt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),

[PyInstaller] PyQt problem with rthook in 2.1

2013-09-19 Thread David Cortesi
Operating in Ubuntu 13 (Actually, Lubuntu 13 but all the libs are the same). Bundle a big PyQt4 program using version 2.0, it works. (Note this is using a spec file generated by 2.0) Bundle same program using v.2.1 (using a spec file generated by 2.1) and it fails. The loader debug output is

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 3 Messages in 2 Topics

2013-09-20 Thread David Cortesi
Martin Zibricky mzibr.pub...@gmail.com Sep 19 09:33PM +0200 On Thursday 19 of September 2013 11:54:28 David Cortesi wrote Bundle same program using v.2.1 (using a spec file generated by 2.1) and it fails. ... Could you please try to put to the pyi_rth_qt4plugins rthook code

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 3 Messages in 2 Topics

2013-09-21 Thread David Cortesi
JB boydj...@gmail.com Sep 20 03:26PM -0700 Thanks for the responses. After some more testing I realized the problem is indeed that messages to stdout are not being displayed I'm puzzled. Are you using the -w / --windowed / --noconsole option? If you do, it doesn't give you a

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 6 Messages in 3 Topics

2013-10-01 Thread David Cortesi
Don Dwiggins ddwigg...@advpubtech.com Sep 30 01:55PM -0700 * In the Installed commands section, several commands prefixed with py- are mentioned, but they don't exist. The python source of the commands is in pyinstaller/PyInstaller/cliutils. If you do python setup.py install (rather

[PyInstaller] Linux - excluding libs

2013-10-05 Thread David Cortesi
I have a case where if I built on Ubuntu 10, the resulting bundle would segfault on Ubuntu 13. I was making separate builds for each, but then I read the excellent suggestion by Nathan Weston elb...@spamcop.net: One thing I've found is that, on Linux, PyInstaller will pull in a bunch of system

[PyInstaller] Re: I need help to test this software

2013-10-07 Thread David Cortesi
Way Chooses arie3...@gmail.com Oct 06 10:46AM -0700 I am using 64bit windows to pack up below software with pyinstaller, I do not think anybody will download a .rar and run it. At least, they should not, in my opinion. Even if there were source files to read (and there are not) how would we

[PyInstaller] Re: Onefile executable data files...

2013-11-23 Thread David Cortesi
Regarding data files in a one-file executable, the doc I edited is obviously needs work. First read this: http://pythonhosted.org/PyInstaller/#adapting-to-being-frozen That is clear on knowing whether you are frozen -- now your code can tell if it is bundled, or in test mode, and you have from

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 5 Messages in 3 Topics

2013-12-03 Thread David Cortesi
Laurence Anthony anthony0...@gmail.com Dec 02 09:04PM +0900 The manual is really fantastic. Great work documenting every thing about PyInstaller so carefully. Thanks! Bryan A. Jones bjo...@ece.msstate.edu Dec 02 08:51AM -0600 I had a couple of suggestions to improve it further:

Re: [PyInstaller] issues when compiling in Ubuntu and run in win

2013-12-24 Thread David Cortesi
It sounds as if you think PyInstaller is a cross-compiler. It is not. Read the doc again, http://pythonhosted.org/PyInstaller/ esp. in the Overview where it says The output of PyInstaller is specific to the active operating system and the active version of Python. To prepare a distribution for a

[PyInstaller] Re: New user, need advice on fixing my workarounds

2014-03-06 Thread David Cortesi
The problem is I need to manually copy files into my *.app directory after building... You seem to have solved it by putting the cp into a script with the pyinstaller command. But, have you read the part of the doc about using the spec file?

[PyInstaller] Re: Help with packaging pyqt and pythonOCC program

2014-03-06 Thread David Cortesi
Kene Meniru kemen...@gmail.com Mar 04 05:27PM -0800 I am building a program which requires PyQt and PythonOCC. Interesting! I had never heard of PythonOCC (www.pythonocc.org/), which is a 3D CAD tool for Python. I have the following directory tree... Unfortunately I think the email program

[PyInstaller] Re: Help with packaging pyqt and pythonOCC program

2014-03-07 Thread David Cortesi
You see the GUI module is standalone. It provides the user with menu's and a text dialog to create a script file. The first line in the script file imports program.py and when the user has finished creating the script file clicks a button and the GUI system basically calls python to process

[PyInstaller] Good news all around

2014-03-21 Thread David Cortesi
R. Oussoren is making major improvements in modulegraph: https://bitbucket.org/ronaldoussoren/modulegraph/issue/17/how-to-diagnose-a-missingmodule (scroll to end) And someone wants to contribute money to the pyinstaller project?!? Let's get a donate button onto the front page quick! (I'll click

[PyInstaller] I think I may have something here for Python 3

2014-12-09 Thread David Cortesi
Thinking about pyinstaller and python 3 it occurred to me that it should be possible to get a complete list of what a script imports in a somewhat simpler way than pyinstaller presently does it. Below find a script that first imports a target script and then executes it. It copies sys.modules at

[PyInstaller] Re: not finding cocoa

2015-01-16 Thread David Cortesi
I said that under Python 3, pyinstaller made a one-folder bundle of my PyQt5 app that failed with the message, This application failed to start because it could not find or load the Qt platform plugin cocoa. Glenn Ramsey said, On my build it looks like this:

Re: [PyInstaller] not finding cocoa

2015-01-22 Thread David Cortesi
Apologies for a messed-up report earlier. I had attempted pyinstaller -w myscript.spec, but the spec file was left over from previous runs that did not specify -w. My bad. When I ran pyinstaller -w -i iconfile.icns myscript.py, a correct Mac OS app folder was created, it even sported the desired

[PyInstaller] Re: not finding cocoa

2015-01-23 Thread David Cortesi
The file libqcocoa.dylib does exist in the Qt distribution. Definitely the stock pyinstaller -w operation does not include it or anything else with a name like *coco* in the output bundle. I modified the spec file to read as follows: # -*- mode: python -*- a =

[PyInstaller] QSettings with normal and bundled apps

2015-01-26 Thread David Cortesi
The following relates to Python3.4, PyQt5.4, and OS X 10.10. While trying to bundle an app for distribution I found that the behavior of QSettings differs between the app when run by CPython from the command line, and when it runs in a “bundle” as prepared by cx_freeze[1] OR by PyInstaller[2].

[PyInstaller] hook-PyQt5.Qt.py

2015-01-10 Thread David Cortesi
I am experimenting with bundling an app based on Python3.4 and PyQt5.4 under Mac OSX 10.10. (so, really really up to date, eh?) My app terminates with the message, This application failed to start because it could not find or load the Qt platform plugin cocoa. Reinstalling the application may

[PyInstaller] Python 3 status?

2015-01-08 Thread David Cortesi
What's the status of Python 3 support? Looking at the Python 3 branch on github, the TODO list is quite short! -- You received this message because you are subscribed to the Google Groups PyInstaller group. To unsubscribe from this group and stop receiving emails from it, send an email to

[PyInstaller] pull request 1192

2015-03-15 Thread David Cortesi
I posted this pull request, https://github.com/pyinstaller/pyinstaller/pull/1192 a few weeks back, I see it is now marked with a red X = Failure: the Travis CI build failed. Is that a bad thing? Something I need to fix? -- You received this message because you are subscribed to the Google Groups

[PyInstaller] Broad hiddenimports in PyQt4, PyQt5?

2015-02-23 Thread David Cortesi
In the files hook-PyQt4.Qt.py and the very similar hook-PyQt5.Qt.py, there is a complete list of all PyQt modules as hiddenimports: hiddenimports = ['sip', 'PyQt4.QtAssistant', 'PyQt4.QtCore', 'PyQt4.QtGui', 'PyQt4.QtNetwork',

[PyInstaller] Further research re: finding cocoa

2015-01-25 Thread David Cortesi
To recap. PyInstaller makes a nice Mac OS bundle out of PyQt program. However for me it won't start because it could not find or load the Qt platform plugin cocoa. This Python3, PyQt5.4, MacOS 10.10.1 Yosemite. I've read a bit more about deploying Qt apps on Mac OS. Supposedly Qt looks for its

[PyInstaller] Further, further research re: finding cocoa

2015-01-25 Thread David Cortesi
I learned that exporting QT_DEBUG_PLUGINS might get some info, and it did. The app says it is checking directory path .../dist/cobro.app/Contents/MacOS/qt5_plugins/platforms. qt5_plugins ??? Where does THAT come from? OK, just to make sure everything was clean I reran pyinstaller. Moved

[PyInstaller] Confused on status of merged Python3 branch

2015-05-04 Thread David Cortesi
The rebased Python3 works a treat on Mac OS, so I am trying it out on Ubuntu and I am hitting the same issues as before, namely that compat.py does not properly detect virtualenv; and if I hack around that, hook-site.py does something wrong also. When I look at compat.py on the two branches,

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 2 updates in 1 topic

2015-05-05 Thread David Cortesi
they are quite different, in particular the latter has very different (and nicer!) code for detecting the use of virtual environment. Also, comparing hook-site.py, I simply may have done this wrong :-) I'd appreciate a pull-request for how ever it is correct (I assume it's quicker if you

[PyInstaller] Re: What is orig-prefix.txt?

2015-04-06 Thread David Cortesi
I asked why, on Ubuntu, the boot loader of a one-dir bundle is failing with No such file or directory: ...orig-prefix.txt' (the full traceback is below). I have investigated further. I omitted to mention that I was running Python3 and PyInstaller, in a virtual environment. It turns out that

Re: [PyInstaller] Digest for pyinstaller@googlegroups.com - 2 updates in 1 topic

2015-04-07 Thread David Cortesi
Regarding bootloader looking for orig-prefix.txt, Hartmut G. wrote, Please have a look at the hook for `site.py`. It contains handling for venv, which seams to fail. Of course! Thank you. Looking at it, it is clearly not going to work with the FakeModule on the Python3 branch. I will see if I

[PyInstaller] Re: what is orig-prefix.txt

2015-04-07 Thread David Cortesi
The problem is not the Python3 FakeModule class; it has support for retarget() and is working for hook-distutils. The problem is that in my system, compat.is_venv is False, even though this is a virtualenv. As a result, hook-site does nothing and the error follows. hook-distutils uses a

[PyInstaller] What is orig-prefix.txt?

2015-04-04 Thread David Cortesi
Ubuntu 14.10 Python 3 The Python3 branch of PyInstaller Create a one-dir version of a PyQt5 app. On startup it fails with: Traceback (most recent call last): File string, line 86, in module File frozen importlib._bootstrap, line 2237, in _find_and_load File frozen importlib._bootstrap, line

Re: [PyInstaller] Re: performance running code via source versus pyinstaller binaries

2015-06-18 Thread David Cortesi
On Thu, Jun 18, 2015 at 4:35 AM, Parkway dineshbvad...@hotmail.com wrote: @davecortesi Not related to the OP's question. Above, you said, PyInstaller doesn't do anything that should cause this. It collects all imported modules into a special archive that is part of the executable. It makes a

[PyInstaller] Re: PyInstaller and OpenCV

2015-06-01 Thread David Cortesi
The total runtime of my program as a script (opencv, numpy, matplotlib) is about 4 to 5 seconds. As exe-file it takes about 30 to 40 seconds to finish. Well, this in unacceptable. Indeed! But can you tell where the time is being spent? That is, is it 25 seconds setting up before your code begins

[PyInstaller] PyQt audio behaves differently in compiled module

2015-10-22 Thread David Cortesi
This is baffling me entirely. Any ideas welcome! MacOS 10.10.5; PyQt5.4, Qt5.4 When run under the interpreter, the static method QAudioDeviceInfo.defaultInputDevice() returns the actual current default audio input device. But when this very simple test case is bundled, the returned value

[PyInstaller] Please review new hooks chapter

2015-10-27 Thread David Cortesi
Users as well as developers, please review the new chapter on Hooks in the manual: https://pythonhosted.org/PyInstaller/#understanding-pyinstaller-hooks If something is untrue or unclear, reply to this message. Thank you for your time! Dave Cortesi -- You received this message because you

Re: [PyInstaller] A comment on PreSafeImportModule API design

2015-10-16 Thread David Cortesi
> I agree. I' change this this weekend, according to your description. Cool! When I see the commit, I'll revise my doc section to match and be able to push that. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and

[PyInstaller] Survey of existing hooks

2015-10-08 Thread David Cortesi
In preparation to document the hook API, I did a survey of the existing hooks. The following are some observations. The current release contains 168 "normal" or "traditional" hooks (that is, excluding the ones in the special directories pre_find_module_path and pre_safe_import_module). Of these

[PyInstaller] Doc Query: some hook oddities

2015-10-08 Thread David Cortesi
In surveying the existing hooks I noticed some odd things. In coming days I mean to read some of the code and may be able to find some answers that way, but still, I'd appreciate any comment on these. Six of the hook-xml* files assign values to an attrs global, as if this had some meaning. Does a

[PyInstaller] ELI5 - python3 branch in local clone?

2015-09-08 Thread David Cortesi
I want to work on the docs and am embarrassed to run into problems with basic git/hub usage. I thought I knew this stuff a little bit, but I guess not. On Github I fork PyInstaller/PyInstaller. All four branches are visible. But when I try to make a local clone... [14:39:53 PYINSTALLERWORK] git

[PyInstaller] Doc Query: how to contribute link

2015-09-11 Thread David Cortesi
Currently "How to Contribute" says "At Pyinstaller.org you find links to the mailing list, IRC channel, and Git repository" pyinstaller.org redirects to https://github.com/pyinstaller/pyinstaller/wiki But that top wiki page does not offer the promised links to

[PyInstaller] Doc Query: FreeBSD

2015-09-11 Thread David Cortesi
I'm going to be asking some doc-related questions, I will put "Doc Query" in the subject line of each, to make it easy to find the answers later. Requirements: Current doc says of FreeBSD, "FreeBSD 9.2 or newer (Tested with FreeBSD 9.2 amd64, with included gcc version 4.2.1.)" Is that still

[PyInstaller] Doc Query: bootloaders for AIX, Solaris, FreeBSD

2015-09-11 Thread David Cortesi
Present doc says "For platforms other than Windows, Linux and Mac OS, you must build a bootloader program for your platform before installing the Python package." Still true? No bootloaders distributed for AIX, Solaris or FreeBSD? (How do we test?) Note that the topic "Building the Bootloader"

[PyInstaller] Doc Query: use of Analysis(datas=, binaries=)

2015-09-17 Thread David Cortesi
Refer to https://github.com/pyinstaller/pyinstaller/issues/1460 for context. The Analysis() call in a spec file now allows passing datas=[list of tuples of data files] and binaries=[list of tuples of binaries] This is a big improvement over the old method where the user had to use TOC or

Re: [PyInstaller] Doc Query: use of Analysis(datas=, binaries=)

2015-09-18 Thread David Cortesi
On Fri, Sep 18, 2015 at 7:05 PM, Laurence Anthony wrote: > Do the data= and binaries= options allow for adding a directory of files? > If not, the Tree option is still really useful. Are you saying you would > delete this from the docs? > I hope it is the case that one

[PyInstaller] Suggestion: cgitb in loader for debug

2016-05-30 Thread David Cortesi
I'm reading the writeup on the cgitb (extended traceback) module on the PMOTW blog: https://pymotw.com/3/cgitb/ To get a much longer & more informative traceback of an error, it is only necessary to use import cgitb cgitb.enable(format='text') at the start of execution. It occurs to me

[PyInstaller] Stupid PyQt5 problem

2016-11-14 Thread David Cortesi
Been a while since I needed to use PyInstaller, and now that I do, I am running into what must be a user error, but I can't figure it out. Python 3.5 MacOS 10.10 PyInstaller 3.2 Python imports and runs PyQt5 modules fine. DYLD_LIBRARY_PATH includes /Developer/Qt5.6/5.6/clang_64/lib/ which is

Re: [PyInstaller] Re: how to add data files with pyinstalled

2017-03-22 Thread David Cortesi
> I'm not sure what the consequence of this is. Unfortunately the consequence is that PyInstaller is working fine, your --onedir bundle is properly bundling the .wav files and the bundled script is looking for them in the correct place, the bundle folder. When you move them, it fails. So it was

Re: [PyInstaller] Re: how to add data files with pyinstalled

2017-03-18 Thread David Cortesi
On Sat, Mar 18, 2017 at 9:49 AM, Owen Walker wrote: > I have tried: "pyinstaller --onedir --add-data wavFiles;wavFiles > myscript.py" and it does not produce an error. Further the folder > dist/myscript contains not only myscript.exe but also a copy of wavFiles. > So

Re: [PyInstaller] Re: how to add data files with pyinstalled

2017-03-20 Thread David Cortesi
On Mon, Mar 20, 2017 at 12:28 PM, Owen Walker wrote: > > I like your second suggestion, because it is easier for on the recipient > than the first. The only trouble is that when I use the command: > > "pyinstaller --clean -y --onefile --add-data wavFiles;wavFiles >

Re: [PyInstaller] Re: how to add data files with pyinstalled

2017-03-20 Thread David Cortesi
OK let's wrap this up with a ribbon. So we verified that this... pyinstaller --clean -y --oneDIR --add-data.wavFiles;wavFiles myscript.py created a folder dist/myscript which contains * all the support files (there's a shit-ton of them, no?) * the wavFiles the program expects * an

Re: [PyInstaller] Re: how to add data files with pyinstalled

2017-03-14 Thread David Cortesi
On Tue, Mar 14, 2017 at 1:19 PM, Owen Walker wrote: > When I run pyinstaller --onefile --add-data.wavFiles;wavFiles myscript.py > (or the same with --onedir) I get this message: "--add-data: invalid > add-data_or_binary_value:'wavFiles:wavFiles." This leaves me

[PyInstaller] have pywin32 but pyinstaller wants -- more?

2018-03-29 Thread David Cortesi
Under Windows 7 64bit, Python 3.5, I have pip installed PyInstaller and pypiwin32 packages: >pip show pywin32 Name: pywin32 Version: 223 ... Location: c:\python35\lib\site-packages >pip show pypiwin32 Name: pypiwin32 Version: 223 ... Location: