Dear Thor, > Pynbody does have a configuration file, which is however contained within its package directory. I’d assume that all of these files are imported by PyInstaller; most likely I’m mistaken.
I'm not sure pyinstaller simply wraps entire package directories as a group of files, though others may have deeper knowledge. As a test, you might try just putting a copy of the configuration file next to the pyinstaller .exe, to see if it can find what it needs that way. There are instructions in the docs for making pyinstaller package extra files into the .exe Sincerely, Duane On Friday, May 8, 2020 at 1:37:02 AM UTC-5, ttepperg wrote: > > Dear Duane (if I may), > > Thank you for your email. > > Pynbody does have a configuration file, which is however contained within > its package directory. I’d assume that all of these files are imported by > PyInstaller; most likely I’m mistaken. > > Do I need to explicitly import this configuration file when creating an > executable? If yes, how do I accomplish this? > > Thanks in advance for your help! > > Thor. > > On Thu, 7 May 2020 at 10:17 pm, Duane Kaufman <[email protected] > <javascript:>> wrote: > >> Dear Sir, >> Without reviewing the package pynbody myself, does it use an external >> file for configuration/setup? If it does, has it been included in the >> pyinstaller process as a dependency? >> >> Sincerely, >> Duane >> >> On Thursday, May 7, 2020 at 4:51:44 AM UTC-5, ttepperg wrote: >>> >>> Hi, >>> >>> With the simplest script possible that only contains the following >>> statement: >>> >>> import pynbody >>> >>> I get a weird error when trying to run the exe file (error message >>> attached). >>> >>> >>> Pynbody is a library installed in a standard location, the same one in >>> which >>> PyInstaller resides. Needless to say, I don't have the problem when >>> running >>> the script from source (or any other more meaningful script using this >>> library), >>> so the problem is happening at runtime. >>> >>> I'm using PyInstaller 3.5 with Python 3.6 on a Mac (High Sierra). >>> >>> Thanks a lot in advance for your help! >>> >>> -- >> 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/pyinstaller/8a5b56ba-30dd-4fa0-a5de-40658e2b1ecb%40googlegroups.com >> >> <https://groups.google.com/d/msgid/pyinstaller/8a5b56ba-30dd-4fa0-a5de-40658e2b1ecb%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/7bbd491c-5cef-4523-9e5a-ceb0cb34b2f2%40googlegroups.com.
