[PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-03 Thread Scott Hawley
Hi, I have a package called "myapp", for which I was able to successfully build a working executable using pyinstaller on Windows yesterday. Great! Today I'm trying to make a Linux executable (on the Pop!_OS distribution, which is an Ubuntu variant) using an Anaconda environment like I did

[PyInstaller] pyinstaller not working with gphoto2; how do i force a brew library into the build

2020-04-03 Thread Craigs List
I'm attempting to build a project with gphoto2. gphoto2 requires brew install libgphoto2. The binary is created successfully, but when I run the binary on a machine that doesn't have libgphoto2, it fails. once i brew install the package is continues to work. help? -- You received this

[PyInstaller] How do I specify a custom output direcory

2020-04-03 Thread Rob V
Hello, How do I specify an output directory for the dist and build folders? I'd like to have one output directory containing results at a user specified location. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group

Re: [PyInstaller] pyinstaller not working with gphoto2; how do i force a brew library into the build

2020-04-03 Thread Abasi Brown
1. Try opening the spec file and after the line that says 'block_cipher = None' put: def get_gphoto2_path(): import gphoto2 gphoto2_path = gphoto2.__path__[0] return gphoto2_path 2. Then after the lines that say 'pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)' put:

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-03 Thread Abasi Brown
revise step one: def get_librosa_path(): import librosa librosa_path = librosa.__path__[0] return librosa_path On Fri, Apr 3, 2020 at 8:38 AM Abasi Brown wrote: > 1. Try opening the spec file and after the line that says 'block_cipher = > None' put: > > def get_librosa_path():

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-03 Thread Hartmut Goebel
Am 03.04.20 um 01:04 schrieb Scott Hawley: > Any suggestions? See the "hooks" section in the manual -- Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer Information Security Management, Security Governance, Secure Software Development Goebel

Re: [PyInstaller] pyinstaller not working with gphoto2; how do i force a brew library into the build

2020-04-03 Thread Abasi Brown
1. Try opening the spec file and after the line that says 'block_cipher = None' put: def get_libgphoto2_path(): import libgphoto2 libgphoto2_path = libgphoto2.__path__[0] return libgphoto2_path 2. Then after the lines that say 'pyz = PYZ(a.pure, a.zipped_data,

Re: [PyInstaller] pyinstaller + librosa: "Module not found" for EXE, even w/ hidden import?

2020-04-03 Thread Abasi Brown
1. Try opening the spec file and after the line that says 'block_cipher = None' put: def get_librosa_path(): import librosa librosa_path = sklearn.__path__[0] return librosa_path 2. Then after the lines that say 'pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)' put:

[PyInstaller] Re: pyinstaller not working with gphoto2; how do i force a brew library into the build

2020-04-03 Thread Craigs List
Also, libgphoto is a collection of dylib On Friday, April 3, 2020 at 12:19:09 AM UTC-7, Craigs List wrote: > > I'm attempting to build a project with gphoto2. gphoto2 requires brew > install libgphoto2. > > The binary is created successfully, but when I run the binary on a machine > that

[PyInstaller] Re: How do I specify a custom output direcory

2020-04-03 Thread abhishek bhatta
I usually prefer making a batch/shell script to copy the file after creating the executable. On Friday, April 3, 2020 at 12:49:27 PM UTC+5:30, Rob V wrote: > > Hello, > > How do I specify an output directory for the dist and build folders? I'd > like to have one output directory containing

[PyInstaller] Re: pyinstaller not working with gphoto2; how do i force a brew library into the build

2020-04-03 Thread Craigs List
It seems to have progressed into another problem: Traceback (most recent call last): File "gphoto2/widget.py", line 25, in swig_import_helper File "importlib/__init__.py", line 127, in import_module File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "",