Hi,
I don't know this library at all. But your error seems to point to a problem in dependencies. Not Python dependencies, obviously. More like a DLL or another executable file isn't present. My guess would be to check the dependencies of py3270. It might install DLL files or executable files that are accessible in your PATH. Usually DLL gets installed in a global location on Windows, but you can include them in your PyInstaller build, so anyone could run your script, no matter whether they have Python with py3270 installed or not.
So that's my guess. I can't help your with specific details, but you might want to check your Python's directory. If you have access to py3270, or documentation, it could also help, there might be a section on third-party integration. Additional dependencies is something you could easily add to your PyInstaller's .spec file.
HTH,
Vincent
Hi everyone! I have used PyInstaller to create an executable of a python script that uses py3270 (an IBM 3270 emulator) and pymsgbox. In my computer runs like a charm, in another computer that has python and those libraries installed does as well; when trying to execute it in a computer that has no python installed, the pymsgbox prompts worked fine (as they are the first thing that comes in the script) but then when the py3270 kicks in this error message pops up: "Windows cannot find 'wc3270'. Make sure you typed the name correctly, and then try again." Same happened with a computer that had python installed, but not this library.
I know that py3270 isn't the most popular thing around so there might not be a lot of people with experience with it, but does this error ring any bell on a similar case? All info and suggestions are more than welcomed. Thanks!
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/fab541c9-5504-409c-9131-cadeeb576879n%40googlegroups.com.
Sounds like you’re in the same knot that all the ffmpeg + PyInstaller users get into. Your app requires this wc3270
to be installed and in your PATH
. Or that your app brings wc3270
and anything that wc3270
depends on with it.
If wc3270
is single file executable (which I think it is) you’d use --add-data=path/to/wc3270.exe;.
to include it in your app's root where it'll find it at runtime. If it has other files you need then you’ll must include them too, preserving the directory structure, and explicitly adding wc3270.exe
‘s parent folder to PATH
at runtime by appending it to os.environ["PATH"]
at the start of your code.