[PyInstaller] Re: Mac Error Unknown Mach-O header with DLLs

2020-04-15 Thread bwoodsend
Well judging from these lines of the traceback: File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 625, in _getImports_macholib m = MachO(pth) File

[PyInstaller] Re: pyinstaller works on one pc but not on another

2020-04-16 Thread bwoodsend
Could you put a print statement before and after each import. i.e print("Importing os") import os print("Importing pandas") import pandas as pd print("Importing package_resources") import pkg_resources.py2_warn print("Imported all") I strongly suspect one of pandas non mandatory imports which

[PyInstaller] Re: Help : Failed to execute script

2020-04-16 Thread bwoodsend
So it's this tiny bit here in workalendar's __init__ causing the issue. Namely that what it's trying to do doesn't work frozen. https://github.com/peopledoc/workalendar/blob/master/workalendar/__init__.py I can give you this temporary monkey wrench fix. Replace your import of workalendar with:

[PyInstaller] Re: Floating point roundoff on Windows

2020-04-14 Thread bwoodsend
I image it's due to your window's system being 32-bit but not sure entirely why it differs in PyInstaller. What do you get if you run the following normally and from PyInstaller? import sys print(sys.float_info()) And if you replace `a = .99...` in your code with import sys a = 1 -

[PyInstaller] Re: Compiling using pyinstaller external pythonpath that is in another program module

2020-04-20 Thread bwoodsend
I take it you are putting the sys.path.insert in your PC.py? In which case that isn't enough for PyInstaller to find and bundle it properly. I believe you can't do this using the command line. Run your bat file once. It should create a file called *PC.spec*. In it is all the information you

[PyInstaller] Re: ModuleNotFoundError: No module named 'pkg_resources.py2_warn'

2020-04-21 Thread bwoodsend
There are a couple of others. One is to put the following somewhere in your code: import pkg_resources.py2_warn Or to make it work as well with older setuptools versions: try: import pkg_resources.py2_warn except ImportError: pass A more satisfactory solution would be to use

[PyInstaller] Re: pyinstaller build fails when moved between computers

2020-04-26 Thread bwoodsend
You aught to be using pip to install PyQt5. You shouldn't need to install Qt on its own as it's embedded in the PyQt5 wheels. The standalone Qt package from homebrew shouldn't be needed or used by PyInstaller. -- You received this message because you are subscribed to the Google Groups

[PyInstaller] Re: Compiling using pyinstaller external pythonpath that is in another program module

2020-04-22 Thread bwoodsend
Yes your changes to the spec file were exactly what I meant. Hmm - running short of ideas. I've never had an issue caused by pyd files - I think PyInstaller handles them OK. This block at the top of the traceback: import search # PyInstaller PYZ > # caris not found in PYZ > # bytecode is

[PyInstaller] Re: Compiling using pyinstaller external pythonpath that is in another program module

2020-04-22 Thread bwoodsend
Ok I'm not sure we're talking about the same thing here. Do you want the Caris software to be copied into your executable or do you want your executable to find and interact with the Caris installation at run time? I originally assumed the first but it looks like you actually mean the second.

[PyInstaller] Re: Pyinstaller cannot access a particular file

2020-04-23 Thread bwoodsend
You're going to have to elaborate a lot more than that. Is this a run time error or a build error? What command / spec file are using to compile? Does this error occur only when trying to import certain libraries? Brénainn -- You received this message because you are subscribed to the Google

[PyInstaller] Re: Compiling using pyinstaller external pythonpath that is in another program module

2020-04-23 Thread bwoodsend
Unless they've taken steps to hide it you can run the Caris python interpreter just by searching inside the Caris installation for python.exe and running it. But if you can run the Caris modules from your normal Python then there is no need. I've tried googling around for what might trigger a

[PyInstaller] Re: Pyinstaller create this error :“File ”multiprocessing\connection.py“, line 691, in PipeClient”

2020-04-29 Thread bwoodsend
Multiproccessing requires special support to freeze. Think link is probably all you're missing. https://kite.com/python/docs/multiprocessing.freeze_support Brénainn -- You received this message because you are subscribed to the

[PyInstaller] Re: Pyinstaller create this error :“File ”multiprocessing\connection.py“, line 691, in PipeClient”

2020-04-30 Thread bwoodsend
Ok your doing the freeze_support() correctly. So it's not that. I mix PyInstaller with multiprocessing quite often and it's always been fine so it should be possible. I hadn't heard of concurrent but it just tested PyInstaller on this example from their docs

Re: [PyInstaller] Subprocess inherits sys.path from application packed with PyInstaller

2020-05-12 Thread bwoodsend
I'm not sure if this is relevant or not but `sys.path` is the PATH environment variable. It's PYTHONPATH plus some internal folders of whichever python you are running. `sys.path` says where to search for *modules* whenever it encounters an `import` statement. It will not affect subprocess

[PyInstaller] Re: ModuleNotFoundError: No module named 'pkg_resources.py2_warn'

2020-05-13 Thread bwoodsend
Now don't take this the wrong way but we've answered this question more times than I can count including on this very conversation. Are these not findable on Google? Are none of them understandable? Do none of them work for you? https://stackoverflow.com/a/60063283

Re: [PyInstaller] Re: Can't get started

2020-05-12 Thread bwoodsend
Are you using the Anaconda prompt or just the bog-standard Windows cmd? It's a while since I stopped using Anaconda but I remember that it didn't add anything to PATH. Rather there was an activation bat file that would add all you Python installation paths to PATH temporarily and the Anaconda

Re: [PyInstaller] Re: configparser error: NoSectionError

2020-05-11 Thread bwoodsend
Hi, > 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

Re: [PyInstaller] Re: configparser error: NoSectionError

2020-05-23 Thread bwoodsend
Hi Thor, thanks for sharing that. I've written a PyInstaller hook based on what you've said. Could you road-test it for me? Download it from here . To do this, download the hook, then add its parent folder as

[PyInstaller] Re: SyntaxError: unexpected EOF while parsing (WHILE COMPILING)

2020-05-22 Thread bwoodsend
Hi, Judging by the fact it's one of PyInstaller's hooks raising the error I think it's almost certainly not your problem. Could you run the following lines and share the results: import sqlalchemy.databases print(sqlalchemy.databases.__all__) from PyInstaller.utils.hooks import exec_statement

[PyInstaller] Re: Base_library.zip - create installer without?

2020-09-03 Thread bwoodsend
Use --debug=noarchive. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit

[PyInstaller] Re: Importing pye files

2020-09-02 Thread bwoodsend
I'm pretty certain PyInstaller is completely unaware `.pye`s exist and are therefore not recognised by any of the import/`PYTHONPATH` based parts of PyInstaller. So `--hidden-import` won't do it but just adding it as a plain data file using `--add-data=source:target` should work. This gets used

[PyInstaller] Re: How to encrypt .py files using my own encryption algorithm

2020-09-09 Thread bwoodsend
I’m afraid by using raw .py files you’re going against what PyInstaller does. It compiles you .pys to .pycs then bundles those into a PYZ archive so that there is a) no folder containing your scripts and b) even if there was, the scripts would be pre-compiled. That being said, it should be

[PyInstaller] Re: pkg_resources.py2_warn error with Pyinstaller 4.0 if built with docker

2020-09-11 Thread bwoodsend
The 5056 ERROR: Hidden import 'pkg_resources.py2_warn' not found: shouldn’t really be labelled an error - it’s just because setuptools removed that hidden module in version 49 (ish). Certainly it’s not why your CI is failing. I had an issue on both Github actions and TravisCI which turned

Re: [PyInstaller] Re: Base_library.zip - create installer without?

2020-09-08 Thread bwoodsend
I think you have to use the `--clean` option and possibly clear your build folder for the `--debug=noarchive` option to actually be used. Last time I used it I remember it needing some extra encouragement. But the scenario your describing is exactly what it's for - it should do what you want it

[PyInstaller] Re: pkg_resources.py2_warn error with Pyinstaller 4.0 if built with docker

2020-09-14 Thread bwoodsend
If it runs ok on CI then Gitlab CI has everything it needs so missing opengl DLL isn’t the issue. The fault is definitely somewhere in the PyInstaller-ing part. Can you clarify what you are doing? It looks you are using PyInstaller in a docker image on CI, then downloading the executable and

Re: [PyInstaller] Re: PyInstaller not working with module pycountry?

2020-10-02 Thread bwoodsend
If you want to recycle fixes for a specific library then you can create a hook for it which you can copy between projects. In this case it would be a file called hook-pycountry.py containing: from PyInstaller.utils.hooks import

[PyInstaller] Re: Is 3.8 supported?

2020-10-02 Thread bwoodsend
PyInstaller 4.0 (the one on PyPI) doesn’t fully support 3.8 but most of the 3.8 issues were fixed so you usually can get away with it. PyInstaller 4.1 fully supports 3.8 but it isn’t out yet. You can use the development version on Github. As for the increases in size and startup time - I’m

[PyInstaller] Re: AttributeError occurs even with --hidden-imports, hooks and runtime hooks

2020-10-02 Thread bwoodsend
That setup should fail even without PyInstaller because mypkg.mymod is never imported. # This initialises mypkg.__init__ only. import mypkg if __name__ == "__main__": # So even if mymod has been collected by PyInstaller, it won't have been loaded # and set as an attribute of `mypkg`.

Re: [PyInstaller] Re: PyInstaller not working with module pycountry?

2020-10-05 Thread bwoodsend
Looks like pycountry also contains data files (which PyInstaller also doesn’t collect by default). There’s a hook utility for that too (although it’s odd we haven’t seen this sooner). Your hook becomes: from PyInstaller.utils.hooks import copy_metadata, collect_data_files datas =

[PyInstaller] Re: Code compatibility

2020-10-19 Thread bwoodsend
Does this page in the docs not solve your problem. You should be able to specify *if pyinstaller: do x; else: do y*. Or the approach that I prefer is to modify the *dest* parameter in your --add-datas options to put the

[PyInstaller] Re: Pyinstaller hangs on hook-PyQt5.py

2020-10-11 Thread bwoodsend
There’s a bug in collect_system_data_files that causes it to collect the parent folder of the folder it’s supposed to collect, which in some cases means trying to include most of your operating system. And it looks like there is a second bug in the Qt hooks if '/usr' if being passed to

Re: [PyInstaller] Execution delay

2020-08-25 Thread bwoodsend
There is a splash screen option [coming soon](https://github.com/pyinstaller/pyinstaller/pull/4887) - you can test it now if you want. To actually speed up initialisation from a onefile archive, the only thing you can really do is squeeze your package as small as possible so that there is less

[PyInstaller] Re: Pyinstaller: Module not found when running .exe when generated with --hidden-import

2020-08-17 Thread bwoodsend
If python -m PyInstaller gives a No module named PyInstaller error then your venv is a mess and PyInstaller is not in the correct environment. Using python -m ... forces it to use the correct PyInstaller (which doesn’t exist). The PyInstaller in your PATH presumably is left over from some

[PyInstaller] Re: Pyinstaller: Module not found when running .exe when generated with --hidden-import

2020-08-18 Thread bwoodsend
Under the hood PyInstaller always uses a spec file. If you use PyInstaller --[some options] script.py it will generate script.spec (overwriting it if one already exists) that contains all your options, then call automatically PyInstaller script.spec. If you want to use the spec to avoid

[PyInstaller] Re: 'Windows cannot find 'wc3270' - error when running the .exe generated with PyInstaller

2020-08-27 Thread bwoodsend
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

[PyInstaller] Re: Pyinstaller: Module not found when running .exe when generated with --hidden-import

2020-08-17 Thread bwoodsend
Hi, I am using a BAT file to generate the executable Grr, why does everyone instantly go for this. The spec file contains all your input parameters. Once you’ve called pyinstaller --onefile --hidden-import _openpyxl --hidden-import xlsxwriter --hidden-import openpyxl --hidden-import xlwt

[PyInstaller] Re: Issues printing unicode characters

2020-09-30 Thread bwoodsend
I’m not getting this issue when I test your little print snippet. Do you have an encoding shebang at the top of your script (such as # -*- coding: utf-8 -*-)? Also, Windows’s cmd prompt isn’t utf-8 by default. When you say *The source code doesn’t have this problem*, did you verify that it

[PyInstaller] Re: AttributeError occurs even with --hidden-imports, hooks and runtime hooks

2020-10-02 Thread bwoodsend
Because import mypkg.mymod initialises it but --hidden-import=mypkg.mymod just says include it. Python doesn’t automatically import modules just because they exist otherwise it would be incredibly slow. If you really don’t want to use from . import mymod then you can put the following in

[PyInstaller] Re: Cannot install pkg on Mac OS

2020-10-02 Thread bwoodsend
There should be more than that. Unless you’re using --windowed mode in which case please turn it off. -- 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] Re: PyInstaller not working with module pycountry?

2020-09-17 Thread bwoodsend
Presumably pycountry uses pkg_resources.get_distribution("pycountry") somewhere to access its own metadata (usually to set a __version__ attribute). But PyInstaller doesn’t collect that by default. To include it you need to use the spec file. It looks like your code is named temp2.py so your

[PyInstaller] Re: $50 bounty to package my simple Python 2D game to a Windows executable.

2020-05-29 Thread bwoodsend
Hi, Based on your imports I think all you need is this hook file for arcade and it should be pretty straightforward after that. I’ve frozen a couple of arcade demo scripts with it OK. Depending on your

[PyInstaller] Re: $50 bounty to package my simple Python 2D game to a Windows executable.

2020-05-29 Thread bwoodsend
Hi, Sure. My email address is bwoods...@gmail.com. Brénainn -- 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+unsubscr...@googlegroups.com. To view

[PyInstaller] Re: PyInstaller not working with module pycountry?

2020-09-18 Thread bwoodsend
Umm, yes and no. For your step 1 you can use `pyi-makespec --onefile temp2.py` which will generate the spec file (instant) without launching a build (slow). Then proceed to your step 2. So it's two commands but it only builds once. -- You received this message because you are subscribed to

Re: [PyInstaller] Re: EXE crashes on run, nothing displayed

2020-10-23 Thread bwoodsend
@Liam - In theory just copying that dll should work. But you shouldn't be in that scenario - are you using that rather strange distribution of Python from the Windows store? If not then which are you using? @Ramajayam - That's not a crash then if putting `input` at the end changes anything.

[PyInstaller] Re: OSError while running exe

2020-10-20 Thread bwoodsend
Ah, I see. It’s got two of them and a rather messy way of finding them. For this you have to use the spec file. Find the test.spec (or whatever you called your code) and put from PyInstaller.utils.hooks import collect_dynamic_libs at the top. And in the a = Analysis(...) bit change

[PyInstaller] Re: EXE crashes on run, nothing displayed

2020-10-20 Thread bwoodsend
Run your program from the terminal (using ./dist/test/test) instead of double-clicking it. It’ll still crash but you’ll at least get an error message you can work with. (Also I’ve never yet solved an issue using the warnings file or for anything out of --log-level DEBUG.) -- You received

[PyInstaller] Re: Markdown integration

2020-10-25 Thread bwoodsend
Well the offending code is inside markdown/htmlparser.py which has been rather nastily monkey-patched. # Import a copy of the html.parser lib as `htmlparser` so we can monkeypatch it.# Users can still do `from html import parser` and get the default behavior. spec =

[PyInstaller] Re: Markdown integration

2020-10-28 Thread bwoodsend
Ah, well not only do I need to eat my words but it turns this has already been fixed . (I also was the one to merge said fix which speaks volumes on how poor my memory is…). When it’s released you can pip install

[PyInstaller] Re: No Module: browserhistory

2020-07-16 Thread bwoodsend
Does --hidden-import=browserhistory not fix it? That warning makes me think it won’t but try it first anyway. Application runs fine via pycharm Can you also ensure that running it from cmd works too (using python MyScript.py)? If it does then try using python -m PyInstaller instead of just

[PyInstaller] Re: Keras fail - Module not found

2020-07-16 Thread bwoodsend
Use --hidden-import=tensorflow.python.keras.engine.base_layer_v1 to fix ModuleNotFoundError errors. -- 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] Re: api-ms-win-crt-runtime-l1-1-0.dll is missing

2020-08-03 Thread bwoodsend
Not even on your Windows 10? That is odd. Do you know if a specific library is using it or if just a hello-world PyInstaller build gives that error? In theory you shouldn’t be able to run your code normally without it. I notice Conda brings a copy of that dll with it (actually it has it twice

[PyInstaller] Re: OSError while running exe

2020-08-06 Thread bwoodsend
You just need to do what it’s telling you. It’s expecting a dll called spatialindex_c-64.dll which PyInstaller failed to detect - you’ll need to explicitly tell it to include it. No use ripping up your Python installation. Find where it is one your computer, then add the

[PyInstaller] Re: pyinstaller error "c:\users\ra\appdata\local\programs\python\python37\lib\site-packages\importlib_resources\version.txt" when adding binary and data files.

2020-08-07 Thread bwoodsend
Ahh, didn't realise it was already done. It's really hard to tell when 4.0 will happen. We keep hitting new issues we need to fix first. I'd say a couple of weeks but we said that 3 months ago. Just install from Github if you can. -- You received this message because you are subscribed to the

[PyInstaller] Re: Executable Fails at Runtime - RuntimeError: Could not find the matplotlib data files

2020-07-31 Thread bwoodsend
This is issue #5004 . We’re midway through fixing it. For now just pip install matplotlib==3.2.2. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop

[PyInstaller] Re: api-ms-win-crt-runtime-l1-1-0.dll is missing

2020-07-31 Thread bwoodsend
You’ll need to add that missing dll to your app when building on Windows 10 if you want it to work on Windows 7. To do this: First locate that dll. Use where api-ms-win-crt-runtime-l1-1-0.dll. It’s a system dll so it’s probably in the same place for everyone. Mine is at

[PyInstaller] Re: Pyinstaller: Module not found when running .exe when generated with --hidden-import

2020-08-13 Thread bwoodsend
Do you have openpyxl installed (i.e. does import openpyxl work normally)? Pandas tries a range of backends to read and write xlsx files - you need to ensure that the one you tell PyInstaller to include is the one that you actually have. For reading it’s usually xlrd and writing either

[PyInstaller] Re: NameError: name 'defaultParams' is not defined

2020-08-05 Thread bwoodsend
This is issue #5004 . We’ve fixed it (I think) but need to fix something else before releasing PyInstaller 4.0 which will contain the fix. For now just pip install matplotlib==3.2.2. -- You received this message because you are

Re: [PyInstaller] put DLLs, PYDs and modules under a sub-directory?

2020-07-09 Thread bwoodsend
I like this idea. It might be more complicated than it sounds though. As I understand it dlls and pyds are searched for differently. **Dlls** are usually referenced by name and searched for in all the directories in PATH. Note that this the system `PATH` variable given by

[PyInstaller] Re: pyinstaller cannot locate ExcelModel class in excel\__init__.py file of formulas package

2020-07-09 Thread bwoodsend
Hmm, that is pretty odd. It certainly doesn’t normally matter if classes are defined in __init__.pyfiles. I’ve tried PyInstallering formulas and it’s working normally on my machine. Looking at the source code however there is some rather unconventional stuff happening in the top level

[PyInstaller] Re: How to include a directory of files when makine onefile

2020-07-06 Thread bwoodsend
Hi, Firstly I suggest to use --onedir (the default) instead of --onefile to debug then switch back to --onefile once it’s working. --onefile does everything --onedir does but hidden in a temporary directory so you can’t see anything that’s happening. With --onedir mode, you’ll be able to

Re: [PyInstaller] Re: numpy using mkl libraries

2020-07-07 Thread bwoodsend
The other mkl dlls are manually specified in a hook file inside PyInstaller here . It looks like they just missed that one simply because libiomp5md doesn’t have mkl in its name. In which case it

[PyInstaller] Re: any easy way to re-use what pyinstaller has created?

2020-07-06 Thread bwoodsend
Hello, Firstly you certainly shouldn’t need to copy those files about. It looks like the problem is nimpy can’t read the standard lib files from the base_library.zip archive and you’re extracting them manually. You can tell PyInstaller not to use the zip by adding the kwarg noarchive=True to

[PyInstaller] Re: pyinstaller onefile and Windows XP: access denied on temp folder _MEI

2020-07-06 Thread bwoodsend
*The short answer: * Use PyInstaller --onefile --runtime-tempdir . myscript.py to have the _MEI folder placed . *The long answer:* You can override where the _MEI folder goes with the --runtime-tmpdir. Quoting the docs: —runtime-tmpdir PATH Where to extract libraries and support files in

[PyInstaller] Re: Pyinstaller reducing image quality

2020-07-15 Thread bwoodsend
Hi, Could you provide a minimal Python script that causes the error so we can reproduce it? -- 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] Re: Raise AtributeError - using PySide2

2020-07-04 Thread bwoodsend
Am I right in saying you are using PyQt5 and not PySide2? And PyInstaller appears to be trying to include both but failing on the PySide2 hook. In which case you just need to exclude PySide2 by passing --exclude PySide2. On Friday, July 3, 2020 at 6:43:40 PM UTC+1 nurulde...@gmail.com wrote:

[PyInstaller] Re: Module Distribution not found but is required by the application

2020-07-04 Thread bwoodsend
Hi, Is there more of a traceback you can provide besides the pkg_resources.DistributionNotFound: The "onnx" distribution was not found and is required by the application line? I’ve seen errors like that caused when packages use pkg_resources to get there own version to set as a __version__

[PyInstaller] Re: pyinstaller cannot locate ExcelModel class in excel\__init__.py file of formulas package

2020-07-10 Thread bwoodsend
I can reproduce your error by installing `formulas<=0.2.0`. Are you using an old version of formulas? -- 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] Re: Windows package generated by PyInstaller and .exe file is instantly closing ,

2020-07-11 Thread bwoodsend
Well you're current build in your second link is failing due to the [pkg_resources hidden module](http://pyinstaller.47505.x6.nabble.com/ModuleNotFoundError-No-module-named-pkg-resources-py2-warn-td2779.html) which you can fix by adding `"pkg_resources. py2_warn"` to the `hiddden_imports=[]`

[PyInstaller] Re: Help needed: Error loading Python lib

2020-07-11 Thread bwoodsend
Well if it’s happening on any of the 3.7s then it’s definitely not the 3.8 compatibility issue. 3.7 will certainly not be retiring soon - you should still be able to use anything from 3.5 to 3.7.7. In that case can you give us some more information on what you’re doing. - Full build and

[PyInstaller] Re: Software size

2020-06-21 Thread bwoodsend
I'm afraid Python is not the language for anything that small. PyInstaller has to include a minimal working Python installation inside your program which is around 20MB - and that's before your code goes in it. Using the --onefileoption allows it to compress some of it so you can get down to

Re: [PyInstaller] Re: Scipy Interpolate module

2020-06-23 Thread bwoodsend
out 100MB, versus ~300MB > in Anaconda). > I saw indeed warnings in Anaconda documentation against using pip. Since I > want to use both Anaconda and Python, I will probably setup two separate > machines, one only with Python and the other only with Anaconda. > > Best, >

[PyInstaller] Re: Can not get binary dependencies. Too Many Files to unpack

2020-06-26 Thread bwoodsend
Hi, A lot of PyInstaller build warnings are harmless so I wouldn’t assume that that is the issue just yet. We’d need to see the runtime traceback to say anything useful. Launch your exe from cmd by entering its path dist\TestScript\TestScript.exe. Your app should launch and still fail but

Re: [PyInstaller] Re: Scipy Interpolate module

2020-06-26 Thread bwoodsend
Thanks Chris for sharing that. It’s been a while since I used Anaconda. Itsik, I tried from skimage.transform import warp’ on my plain Python and it’s worked fine. Could you give us the full traceback rather than a screenshot. If you find copying awkward in cmd you can pipe stderr to a file

[PyInstaller] Re: Dock Icon appears and the disappears

2020-06-22 Thread bwoodsend
Hi, Firstly, apologies to Thor for the lack of response. It looks like there aren’t many mac users on here. I’m not a mac user but i have noticed some inconsistent behaviour on my Windows that could be the source. Could you please clarify, by *setting the icon* you mean calling

[PyInstaller] Re: Scipy Interpolate module

2020-06-22 Thread bwoodsend
scipy.interpolate is working no problem on my Windows. Scipy is on PyInstaller’s list of packages which may require tight version control. I’m using: python==3.7.7 PyInstaller==3.6 scipy==1.4.1 I also notice your using Anaconda which rearranges your package structures in a way PyInstaller

[PyInstaller] Re: libratom folder does not get created

2020-06-20 Thread bwoodsend
Use the --add-data option to include extra files. The syntax is --add-data path/to/file;path/to/put/it. Your command should look like PyInstaller --add-data D:/path/to/libratom/data/media_types.json;libratom/data/media_types.json. ​ -- You received this message because you are subscribed

[PyInstaller] Re: Why these (apparently harmless) error messages?

2020-06-25 Thread bwoodsend
It is harmless. win32com, from pywin32 , is conditionally imported by distutils.msvccompiler which is standard lib. PyInstaller has a special hook file telling it how to load win32com but it doesn’t cover the case where it is not installed (it probably

[PyInstaller] Re: Pyinstaller not able to run datacompy library

2020-06-09 Thread bwoodsend
Hi, datacompy has some data files in it which PyInstaller doesn’t spot. I’m assuming you get some kind of FileNotFoundError when you run it? In which case you have to tell PyInstaller to include them. I’ve put together a hook you can use

[PyInstaller] Re: Help needed: Error loading Python lib

2020-06-11 Thread bwoodsend
PyInstaller doesn’t support Python 3.8.It’s probably just that. Grab a vanilla Python 3.7 for PyInstaller-ing. ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this

[PyInstaller] Re: Python/C API project - compile to exe

2020-07-23 Thread bwoodsend
Certainly it's possible. I'm not entirely sure what your doing. Normally when we glue C++ to Python we compile the C++ to either dll/so and load via ctypes or to pyd and import directly but you seem to be saying you've compiled your C++ to an exe? In which case I take it your using subprocess

[PyInstaller] Re: Tests to EXE

2020-07-16 Thread bwoodsend
I’ve been meaning to write this for a while. Does this <https://github.com/bwoodsend/unittest-pyinstaller-demo> help? -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emai

[PyInstaller] Re: WIndows Mysteriously Launch After Exiting a Frozen Application

2020-07-27 Thread bwoodsend
This line in your spec implies that PyInstaller should run each of these scripts as main scripts one after the other. a = Analysis(['VTMv008.py','VTMConfig.py','VTMLayout.py'],` It should only contain your top level script. If this top level script imports the other 2 then these will be

[PyInstaller] Re: pyinstaller (auto-py-to-exe) error: Project output will not be moved to output folder!

2020-07-27 Thread bwoodsend
This is a known issue . It has been fixed on this branch but it’s not been merged into PyInstaller yet. Until then, you can fix it by

[PyInstaller] Re: pyinstaller error "c:\users\ra\appdata\local\programs\python\python37\lib\site-packages\importlib_resources\version.txt" when adding binary and data files.

2020-07-27 Thread bwoodsend
Could you raise this one as an issue on PyInstaller’s github . Include the above traceback and your version of importlib_resources. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To

[PyInstaller] Re: Dock Icon appears and the disappears

2020-07-21 Thread bwoodsend
Hi, This got raised as an issue then posted on stackoverflow and someone’s managed to solve it ! Hopefully you can finally fix your apps now. Brénainn -- You received this message because you

[PyInstaller] Re: Python/C API project - compile to exe

2020-07-23 Thread bwoodsend
Ahh your embedding Python into C++. I’ve never done that so I probably can’t help much. I imagine your C++ program needs to be able to find python3.dll and all its dependents so it needs to be in either your PATH or your current working directory. And it will also need PythonApplication1.py

[PyInstaller] Re: Error loading Python DLL

2020-08-14 Thread bwoodsend
That's never going to happen. - PyInstaller doesn't get on with Anaconda - especially anything including Conda's numpy. - mayavi does all kinds of things PyInstaller can't cope with (dynamic imports, modules in zip files, dynamically generated code etc) - you'll never freeze it. - PyQt4 is

[PyInstaller] Re: No module pymysql?

2020-11-27 Thread bwoodsend
Does the usual --hidden-import pym not do the job? If not can you run python -c "import pym" and python -m PyInstaller --onefile --hidden-import pycountry --exclude-module matplotlib StockVal.py and report the results for each. -- You received this message because you are subscribed to

[PyInstaller] Re: pyinstaller created exe fails for python key error

2020-11-30 Thread bwoodsend
That, on its own, is a very un-PyInstaller looking type of error. It’s more likely that either your built app is reading a different xml file or that you are filtering self.text in a way that depends on the existence of 7z.exe. Are you able to reduce it down to something that you can send us?

[PyInstaller] Re: Fail to run on portuguese windows systems

2020-11-24 Thread bwoodsend
4.1 is released! -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit

[PyInstaller] Re: A way to include all standard library modules

2020-12-02 Thread bwoodsend
There’s no distinction between builtin and 3rd party libraries to PyInstaller so you won’t find an --include-standard-lib option. That python-stdlib-list sounds like a sensible option. All you’d need to so is edit the .spec file: put from stdlib_list import stdlib_list at the top and replace

[PyInstaller] Re: macOS ARM & Intel

2020-12-02 Thread bwoodsend
There have been no reports (here or on Github) that it doesn't work but there also hasn't been anything to say it does. We don't expect it to be a problem. Big Sur is the thing to watch out for - it's already broken quite a lot of our tests. -- You received this message because you are

[PyInstaller] Re: OSError: [Errno 22] Invalid argument - when trying to add an icon

2020-12-15 Thread bwoodsend
Hmm, don’t see anything obvious. It looks like you’re doing it correctly. That corner of PyInstaller uses the Windows API so it’s a) very fragile and b) very cryptic if it goes wrong (as you can see). If you run os.startfile(r'D:\pssolanki\projects\client\smartStacks\icon.ico') does it open

[PyInstaller] Re: Pipx-based meta-installer

2020-12-12 Thread bwoodsend
You're never going to run anything pip related from a PyInstaller app - I can think of a whole list of components which pip needs but PyInstaller intentionally strips down. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from

[PyInstaller] Re: ctypes.util.find_library cant find .so in the bundle

2020-12-18 Thread bwoodsend
Are you remembering to --add-binary=/path/to/library.so:. them? It should work fine with that. -- 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] Re: Fail to run on portuguese windows systems

2020-11-10 Thread bwoodsend
The change I think it is is bootloader: pyi_path_fullpath: use _wfullpath() #5189 . Basically the bootloader (the little program which loads Python and runs your code) used an ascii-only data type to handle filenames which obviously means

Re: [PyInstaller] Executable file

2020-11-10 Thread bwoodsend
Change your filename to use `.py` instead of `.pyw`. `.pyw` will implicitly add `--windowed` which will hide error messages. *Unable to find python38.dll* normally translates to you're using the weird unsupported python from the Windows store. Instead use the official version from python.org.

[PyInstaller] Re: FileNotFoundError: [Errno 2] No such file or directory

2020-11-14 Thread bwoodsend
You need to read up on what --onefile actually does to understand why it’s looking in such an obscure corner of your PC. PyInstaller doesn’t collect data files by default - you need to use the --add-data option to explicitly add each one (note the very specific syntax

[PyInstaller] Re: Fail to run on portuguese windows systems

2020-11-14 Thread bwoodsend
I honestly haven't a clue. It's whenever Harmut has enough time to make the release which could be this afternoon or in a months time. We're not as short staffed as we used to be but things still take a while in PyInstaller land. -- You received this message because you are subscribed to the

[PyInstaller] Re: Executable gives no error, but does not run the code.

2020-11-16 Thread bwoodsend
-w means no error output so you can’t see what’s wrong. Please turn it off. IMO that option shouldn’t exist seeing as no-one uses it for what it's actually for. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group

  1   2   3   >