[PyInstaller] Re: Starts at root on the Desktop

2024-10-07 Thread bwoodsend
I'm assuming that by .py files "knowing where they're located" you're talking about current working directories being set to the location of the script. .py files don't set their working directories to where they're located -- they just inherit a working directory from the terminal/IDE that lau

[PyInstaller] Re: can't run behind a proxy

2024-09-27 Thread bwoodsend
This has nothing to do with PyInstaller? On Friday, September 27, 2024 at 3:08:08 PM UTC+1 f.sim...@gmail.com wrote: > > *Hi,trying to run this simple script:* > import sys > import os > import requests > from office365.runtime.auth.authentication_context import > AuthenticationContext > from of

[PyInstaller] Re: Python app works under Visual Studio but fails as .exe

2024-09-23 Thread bwoodsend
Following the line numbers to the source code is the best you can hope for with custom/uninformative exceptions like this. In this case, the exception is raised if some stdout doesn’t match a certain pattern

[PyInstaller] Re: Pyinstaller + Matplotlib -> export to PDF

2024-08-26 Thread bwoodsend
Matplotlib’s array of interchangeable backends model is fairly ambiguous to PyInstaller — particularly if you want more than one backend. Telling PyInstaller which backends you want straightens it out. # In your spec file

[PyInstaller] Re: PyInstaller + Inno Setup fails on github actions

2024-08-23 Thread bwoodsend
Your project structure is somewhat defunct. Those `src/__init__.py` and `src/__main__.py` files imply that `src` is a package and `yaas.py` is the submodule `src.yaas`. That's reflected in the wheels on PyPI which are installing `__init__.py` et al directly into `site-packages`. I'm guessing yo

[PyInstaller] Re: Runtime error caused by importing numpy

2024-08-19 Thread bwoodsend
Importing numpy (albeit with 2.0.1 ) on Windows with Python 3.12 is part of PyInstaller’s and numpy’s test suites so your environment or something you’re doing must b

[PyInstaller] Re: AttributeError:"super" object has no attribute "get_params"

2024-08-15 Thread bwoodsend
The attribute error comes from this placeholder class which is used if one of these sklearn imports

[PyInstaller] Re: PyQt6 with Pyinstaller Runtime Error

2024-08-11 Thread bwoodsend
I homed in on it because any piece of code that uses a relative path to locate an application resource is broken (it’s relative to your current working directory which could be anywhere, not the application root, but IDEs hide this bug by setting your current working directory to the location

[PyInstaller] Re: PyQt6 with Pyinstaller Runtime Error

2024-08-10 Thread bwoodsend
Your bug is the line engine.load('./UI/main.qml') (although the issue is masked by the fact that Qt doesn’t raise an error if it can’t load a file). Relative paths to locate application resources are not portable. I suggest you change that line to: qml_path = './UI/main.qml' if not os.path.exi

[PyInstaller] Re: Dynamic list of modules in a package

2024-08-09 Thread bwoodsend
pkgutil.iter_modules() doesn’t require Python files on the file system. The problem is that PyInstaller doesn’t know to collect these submodules at all. Use --collect-submodules=conversionAlgos to fix that although you almost certainly will run into #6294

Re: [PyInstaller] ValueError: Unable to configure formatter 'default'

2024-08-03 Thread bwoodsend
On a semi-related note, I think we need to reword that piece of documentation . The recommended approach is to wrap your

Re: [PyInstaller] ValueError: Unable to configure formatter 'default'

2024-08-02 Thread bwoodsend
But is it possible that PyInstaller could do it by default for Windows apps? I’d be rather raise the question of why doesn’t pythonw.exe do it by default. We don’t particularly like adding accommodations for broken code and, with Python’s current handling of windowed mode (even though almost

[PyInstaller] Re: How to deliver a Mac App bundle

2024-07-26 Thread bwoodsend
Does this answer you question? ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group

[PyInstaller] Re: DLL load failed while importing _ctypes

2024-07-16 Thread bwoodsend
All bugs are features if you're using anaconda. -- 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

[PyInstaller] Re: using own ld-linux loader in onedir mode

2024-07-16 Thread bwoodsend
Any reason why you can't just use staticx or build on an old Docker container to make your application portable? I doubt anyone wants to support this case. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop

[PyInstaller] Re: Getting AssertionError in bindepend.get_python_library_path

2024-07-12 Thread bwoodsend
And how did you install Python and PyInstaller? -- 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

[PyInstaller] Re: Getting AssertionError in bindepend.get_python_library_path

2024-07-11 Thread bwoodsend
What Linux distribution is this and how did you install Python and PyInstaller? Whilst it shouldn’t be raising assertion errors, generally whenever something goes wrong in get_python_library_path(), it means that your Python environment doesn’t provide libpython3.x.so so it’s unusable to PyI

[PyInstaller] Re: ModuleNotFoundError: no module named 'numpy'

2024-07-01 Thread bwoodsend
If you're using ChatGPT at all then I'd ask to you stay off these support channels. No one wants to spend their time sifting through the utter nonsense that AI calls code. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this

[PyInstaller] Re: ModuleNotFoundError: no module named 'numpy'

2024-06-30 Thread bwoodsend
If I’m reading this right, you’ve got raw .py scripts in the src folder and presumably you’re running them as subprocesses using something akin to subprocess.run(["python", "src/IO_Analysis.py"]) or possibly something involving exec()? So you’re giving code to PyInstaller as data files so it

[PyInstaller] Re: ModuleNotFoundError: No module named 'numpy.f2py'

2024-06-28 Thread bwoodsend
Then add --hiddenimport=scipy._lib.array_api_compat.numpy.fft too ​ -- 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

[PyInstaller] Re: ModuleNotFoundError: No module named 'numpy.f2py'

2024-06-27 Thread bwoodsend
Just add --collect-submodules=numpy.f2py to your pyinstaller command ​ -- 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.

[PyInstaller] Re: ModuleNotFoundError: No module named 'my_module'

2024-05-23 Thread bwoodsend
Because its real name is scraper.scrap_crawlers. (And please get rid of that os.chdir(). It shouldn’t be there.) ​ -- 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

[PyInstaller] Re: Error message "OSError(22, 'Invalid argument')" during build

2024-05-21 Thread bwoodsend
That retry logic is trying to accommodate for security scans that intercept the EXE that PyInstaller is midway through building and temporarily block PyInstaller’s access to it. I guess the easiest thing to try would be to increase the timeout (e.g. change the first 1

[PyInstaller] Re: Issue running the exe: No Module named '_jpype'

2024-05-19 Thread bwoodsend
I’m not seeing any issues with just an import jpype (which includes loading the _jpype module). >python -VV Python 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)] >python -m venv env >.\env\Scripts\activate.bat (env) >pip install jpype1 pyinstaller (env) C:\tmp\

[PyInstaller] Re: Issue running the exe: No Module named '_jpype'

2024-05-17 Thread bwoodsend
--hiddenimport=_jpype is the flag for missing modules. ​ -- 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

[PyInstaller] Re: REgarding pyinstaller and tkinter app packaging

2024-04-04 Thread bwoodsend
I also did not have the wheel package in my pip packages. Is that required? It looks like a packaging format. It prevents pip from installing .sdist packages in the broken *legacy mode* (a.k.a. eggs/zipped eggs). Pip has since changed that behaviour so its need should become less prominent wi

[PyInstaller] Re: REgarding pyinstaller and tkinter app packaging

2024-04-03 Thread bwoodsend
Is just import tkinter on its own enough to trigger the issue? I’ve tried it in a Void Linux (and I blindly assumed glibc rather than musl based?) docker container and I’m seeing no signs of trouble. > docker run --network=host -v(pwd):/io -it ghcr.io/void-linux/void-linux:latest-mini-x86_64 #

[PyInstaller] Re: Unable to even run pyinstaller - pkg_resources.DistributionNotFound: The 'altgraph' distribution was not found and is required by the application

2024-04-03 Thread bwoodsend
I’m guessing you get the same error just running python -c "from altgraph.ObjectGraph import ObjectGraph"? Sounds more like a butchered altgraph install than anything to do with PyInstaller. Best I can suggest is to upgrade pip, wheel and setuptools then uninstall and reinstall altgraph. ​ -

[PyInstaller] Re: REgarding pyinstaller and tkinter app packaging

2024-04-03 Thread bwoodsend
Can we get the runtime error message? And what distribution+version is this? -- 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.

[PyInstaller] Re: Streamlit app

2024-04-02 Thread bwoodsend
sys.argv.append(‘main_st.py’) Arhhh! See standard reply . ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from i

[PyInstaller] Re: Streamlit app

2024-03-29 Thread bwoodsend
Never try to run a Python command line entry point from a subprocess. Even without PyInstaller involved, there’s no guarantee that it’ll be findable. Lookup what the entry point does (in this case calling from streamlit.web.cli.main()

Re: [PyInstaller] Re: How to debug why share/icons folder get included

2024-03-25 Thread bwoodsend
There are some special options for excluding the bits of Gtk that you don’t want. Although I’m surprised that you can’t use Kivy to create the message dialogues. ​ -- You received this message because you a

[PyInstaller] Re: How to debug why share/icons folder get included

2024-03-23 Thread bwoodsend
Hmm, it’s expected that knowing where a file came from (which you can find in the various build/*/*.toc files) is enough to answer that question. Failing that, I guess you could look at the INFO: Loading module hook 'hook-xxx.py' from '.../PyInstaller/hooks and read those hook files to see if

Re: [PyInstaller] Set interpreter when creating executable

2024-03-07 Thread bwoodsend
If you expect to use a Python interpreter on the user’s machine then PyInstaller is completely the wrong tool. Assuming that Python interpreter is at a fixed location, you’re probably better off shipping your raw Python code along with a .bat file along the lines of: cd /D "%~dp0" "C:\Program

[PyInstaller] Re: Issue running the exe (Part 2)

2024-03-07 Thread bwoodsend
For ModuleNotFoundErrors use --hidden-import=photutils.geometry.core ​ -- 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.

[PyInstaller] Re: Please help with the hidden imports issues with django

2024-02-28 Thread bwoodsend
Please could you tell me what am I doing wrong? Trying to freeze a web server for one. 🙃 You’re chasing the wrong issue here. Django contains many submodules which can’t be loaded unless you have some strange stuff installed on your machine. PyInstaller collects each submodule only if its lo

[PyInstaller] Re: Pyinstaller exe file is not working .

2024-02-21 Thread bwoodsend
Top level ModuleNotFoundErrors normally mean you’re running PyInstaller from the wrong Python environment. Try running your original Python code from a terminal using python cyllo_installer.py and then building from that same environment using python -m PyInstaller cyllo_installer.py. One of

Re: [PyInstaller] Re: pyinstaller issue with scikit_learn or scipy

2024-01-27 Thread bwoodsend
My bad. 3.12.0 is the bad version. See https://github.com/pyinstaller/pyinstaller/issues/7992 -- 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+unsubsc

[PyInstaller] Re: no suitable image found libpython3.8.dylib

2024-01-26 Thread bwoodsend
Sounds like your Python environment isn't compatible with mavericks. Generally speaking, building on a new platform and expecting it to run on an old one is the wrong way to do things. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscr

[PyInstaller] Re: pyinstaller issue with scikit_learn or scipy

2024-01-23 Thread bwoodsend
Are you using Python 3.10.0 by any chance? It's got a bug in it. You'll need to upgrade Python. -- 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+unsub

[PyInstaller] Re: Set python command option -OO

2024-01-20 Thread bwoodsend
You can use: exe = EXE( pyz, a.scripts, [('O', None, 'OPTION'), ('O', None, 'OPTION')], ... but, whilst it does set sys.flags.optimize to 2, it doesn’t remove either the assertions or docstrings since they need to happen at compile time. You used to be able to use python -OO -m PyInstaller y

[PyInstaller] Re: Will a compile work across different Windows versions?

2024-01-16 Thread bwoodsend
They're interchangeable. You only need to build on one of them. -- 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

Re: [PyInstaller] Understanding PyInstaller

2024-01-05 Thread bwoodsend
Also worth checking the imp entry in the build/*/xref-*.html. I’m guessing it’s going to say *not found* which won’t tell us much but it might say something else. ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this grou

Re: [PyInstaller] Understanding PyInstaller

2024-01-05 Thread bwoodsend
Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32 But what does the second line of PyInstaller’s build log say? The simple fact that pyinstaller is complaining about stdlib modules is just odd. To PyInstaller, there’s no way of telling what modul

[PyInstaller] Re: Understanding PyInstaller

2024-01-04 Thread bwoodsend
Are you sure that your pyinstaller is not in a Python 3.12 environment? Freezing import imp works fine for me under Python 3.11. ​ -- 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

[PyInstaller] Re: Flet compiling error

2023-10-25 Thread bwoodsend
There's no point in asking us about flet if it's proprietary. We have no idea what's in it or what it's doing. -- 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 py

Re: [PyInstaller] --add-data behavior?

2023-10-05 Thread bwoodsend
Ughh, I’ve seen that snippet of misinformation before on stackoverflow. The code in the *else* block is what you should be running unconditionally. If that can’t find your resources then you’re putting your data files in the wrong place inside your application and you should adjust the DEST pa

[PyInstaller] Re: PyiFrozenImporter cannot handle module

2023-09-26 Thread bwoodsend
I can’t get the issue to occur using the latest PyInstaller and compound_split. Line 10 of compound_split\char_split.py is import compound_split.char_split so running pyinstaller on a script containing just that line should be enough to trigger the error. Can you confirm if that is the case f

[PyInstaller] Re: _internal

2023-09-26 Thread bwoodsend
If 6.0.0 breaks your data file locating then your code is broken and PyInstaller’s change is merely shedding light on it. If you anchor resource paths using __file__ like the docs tell you to then it shouldn’t matter whic

Re: [PyInstaller] Re: Application creating second instance of self

2023-09-26 Thread bwoodsend
That sounds like a red herring. It’s specifically subprocess.run([sys.executable, ...]) that we’re interested in — any other command should run fine under PyInstaller. ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from thi

[PyInstaller] Re: Application creating second instance of self

2023-09-24 Thread bwoodsend
I’ve read some about how sys.executable() is different when you run a packaged application, so I’m sure that could be playing a role, but I have no idea how to fix that. A library that tries to run Python subprocesses will cause a PyInstaller application to keep spawning itself because sys.ex

[PyInstaller] Re: pyinstaller: error: unrecognized arguments: B:/coding/py2exe/test.py

2023-09-24 Thread bwoodsend
It’s your dist/work/spec path parameters causing the problem. They need to be written as either '--distpath=B:\\coding\\py2exe' or two separate strings '--distpath', 'B:\\coding\\py2exe'. The command line equivalent of your current Python code is pyinstaller --onefile --clean "--distpath B:\co

[PyInstaller] Re: Can Pyinstaller generate a list of the files added to the .exe?

2023-09-16 Thread bwoodsend
Try looking in the various build/*/*.toc files that PyInstaller writes. ​ -- 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.c

[PyInstaller] Re: Issues detecting __file__ parent apparently

2023-09-03 Thread bwoodsend
That WORDLIST_DIR won’t exist by default because PyInstaller needs to be told to collect data files. Adding --collect-data=eth_acount.hdaccount to your pyinstaller co

[PyInstaller] Re: Size of .exe bigger and bigger

2023-08-23 Thread bwoodsend
You're the only one in a position to answer that question. Look inside your application. What files are taking up the most space? Are there any there that shouldn't be? -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this gr

[PyInstaller] Re: Problems arising from pyinstaller and cgitb

2023-08-23 Thread bwoodsend
Looks like cgitb is naive to windowed applications. Here it writes to a file-like attribute which gets set to sys.stdout

[PyInstaller] Re: ERROR with simple python code, requesting help

2023-08-21 Thread bwoodsend
You’re running the program in the build directory — that’s not your application! It’s just a temporary space PyInstaller uses to assemble things. Your real application is in the dist directory. ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group

[PyInstaller] Re: - - add-data not behaving as expected

2023-08-21 Thread bwoodsend
If you want to add a directory, you don’t want wildcards. Wildcards add the contents of a directory but not the directory itself. Just --add-data program/config:config gives me the following which I’m guessing is what you want? _MEI.../ ├── base_library.zip ├── config │ ├── development │ │ └──

[PyInstaller] Re: Pyinstaller fails with adding matlab.ctf file into binary

2023-08-16 Thread bwoodsend
*Binaries* in PyInstaller is specific to .dylib or executable files. That matlab.ctf file isn’t either — it’s just a data file. Add it to datas instead. ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop

[PyInstaller] Re: PyInstaller 5.13.0 Restructured my MacOS app and breaks it

2023-08-16 Thread bwoodsend
Are you using unreleased PyInstaller from GitHub? If so, it looks like you need to recompile the bootloaders. -- 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 pyi

[PyInstaller] Re: Windows Service start error 1053 always happens when pyinstaller create's exe

2023-08-07 Thread bwoodsend
pywin32’s construction of the service command is assuming that your application contains the python.exe entrypoint which isn’t possible with PyInstaller. This isn’t goin

[PyInstaller] Re: Portaudio Bundled but location is local?

2023-08-01 Thread bwoodsend
PyPI packages that depend on Homebrew are always painful. otool -L (roughly equivalent to Linux’s ldd) is your go-to tool for this. The original unfrozen copy of pyaudio‘s extension module will be linked against libportaudio.*.dylib from Homebrew using an absolute path: $ otool -L ./env/lib/p

[PyInstaller] Re: Pyinstaller dependency with libreadline

2023-07-20 Thread bwoodsend
No, that’s not true. PyInstaller looks at your binary dependencies (Python extension modules, libpython.so, anything you’ve added via --add-binary), runs ldd on each file to see what other libraries they depend on and then packages those. If PyInstaller is collecting libreadline.so.6 then one

Re: [PyInstaller] 'PyInstaller' works, but 'pyinstaller' does not?

2023-07-07 Thread bwoodsend
It turns out that segfaulting on macOS with PyQt6==6.5.1 is a known issue. It was fixed in e3ad7c71c7f8acd79e73ae2ca13db18ecfc354d1 but that hasn’t been released yet so for now I suggest using pip ins

[PyInstaller] Re: 'PyInstaller' works, but 'pyinstaller' does not?

2023-07-06 Thread bwoodsend
The executable is called pyinstaller (all lower case). macOS (and Windows) use case-insensitive file systems so I’d have thought that they’d be interchangeable but evidently not. Irregardless, you’ve got two different versions of PyInstaller there. If you run which PyInstaller, that should te

[PyInstaller] Re: AttributeError: module 'PyInstaller.compat' has no attribute 'is_py312'

2023-07-05 Thread bwoodsend
Is there really not a stack trace saying where the exception originates from? is_py312 wasn’t added until PyInstaller v5.13. Nothing except PyInstaller v5.13 should be referencing it. P.S. We do not support Anaconda. It rearranges packages in ways that PyInstaller can’t track and can’t be te

[PyInstaller] Re: 'pathlib' obsolete backport of a standard library package and incompatible with PyInstaller

2023-07-02 Thread bwoodsend
Uninstall pathlib. There's an actually maintained version already in the standard library. The one on PyPI, as the error message says, is obsolete. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving

[PyInstaller] Re: able to generate exe file but its not running properly.

2023-07-02 Thread bwoodsend
Run the application from cmd so that the terminal stays open and you can see the error message. On Sunday, July 2, 2023 at 11:25:29 AM UTC+1 Parikshit Saha wrote: > I have written an python code which is working perfectly with > python SNC_OCTwork.py command. > while running pyinstaller --onefil

[PyInstaller] Re: Segmentation fault in "hello world" PyQt6 app on Mojave M1 mac

2023-06-15 Thread bwoodsend
PyQt6 doesn't support macOS < 11.0 now. And PyInstaller doesn't support macOS<10.15 unless you compile it from source. If you want to support old macOS versions, you should build on old macOS versions so that these issues are easy to diagnose. -- You received this message because you are subsc

Re: [PyInstaller] Mac app bounces in system dock, closes, and then re-opens

2023-05-09 Thread bwoodsend
However, when I click on the .app icon, the icon bounces in the system tray, then closes, and, after about 15 seconds, re-opens. It’s a side effect of --onefile mode combined with --windowed mode (or the .spec file equivalents). Because a onefile executable is an executable within an executab

[PyInstaller] Re: How to add suport for pyqtlet2?

2023-05-08 Thread bwoodsend
The javascript stuff in pyqtlet2 itself is easy enough. The command line option --collect-data=pyqtlet2 to PyInstaller is enough which corresponds to a hook which looks like: # hook-pyqtlet2.py from PyInstaller.utils.hooks import collect_data_files datas = collect_data_files("pyqtlet2") If y

[PyInstaller] Re: skimage error

2023-03-31 Thread bwoodsend
Someone's already fixing that one. https://github.com/pyinstaller/pyinstaller-hooks-contrib/pull/565 On Thursday, March 30, 2023 at 2:39:38 PM UTC+1 Yitzhak Weissman wrote: > I have a script named skimage_test.py which reads: > import skimage > print(skimage.__version__) > When the script is exe

[PyInstaller] Re: ValueError: unmarshallable object in PyInstaller 5.4+

2023-03-27 Thread bwoodsend
t; > I did try with the latest version, and got the same results. 5.4 is just > the first version that's failing in this way. > > On Monday, March 20, 2023 at 8:38:18 AM UTC-4 bwoodsend wrote: > >> There's been a fair bit of code churn surrounding that part of Wi

[PyInstaller] Re: ValueError: unmarshallable object in PyInstaller 5.4+

2023-03-20 Thread bwoodsend
There's been a fair bit of code churn surrounding that part of Windows DLL discovery so first dumb question would just be could you try with the latest PyInstaller? Failing that, you'll probably need to get a print statement in where that exception is being raised to see what exactly it is that

[PyInstaller] Re: virus threat during pytinstaller installation

2022-12-27 Thread bwoodsend
This is Microsoft's bug - not PyInstaller's. Report it there. On Monday, December 26, 2022 at 3:41:39 PM UTC sayan...@gmail.com wrote: > Hello, I have faced Torjan virus attack issue when i try to install latest > virsion of pyinstaller. > please fix the virus threat issue of latest version. > >

[PyInstaller] Re: pyInstaller package creation for windows raises missing module

2022-10-11 Thread bwoodsend
It works first go for me. git clone g...@github.com:aggerdom/screenruler.git mv screenruler/main.py screenruler/screenruler.py pyinstaller --windowed --onefile screenruler/screenruler.py ./dist/screenruler ​ On Tuesday, October 11, 2022 at 1:56:27 PM UTC+1 limest...@gmail.com wrote: > Hi, > >

[PyInstaller] Re: PyInstaller error loading Python DLL when running executable on another machine

2022-06-08 Thread bwoodsend
Python 3.9 not supporting Windows 7 *is* the reason. python39.dll is linked against libraries which only exist on Windows >= 8.1 so it fails to load. If you want to support Windows 7 then you should be building on Windows 7 so that you aren’t picking up libraries which are similarly dependent

Re: [PyInstaller] Codesign on Mac fails when including shapely

2022-05-29 Thread bwoodsend
I’m afraid not. And I doubt there ever will specifically be something to move files around and replace them with symlinks in PyInstaller since the real fix would be for PyInstaller not to put libraries in the MacOS folder to begin with. Nobody is going to wire in a workaround when they know th

[PyInstaller] Re: Codesign on Mac fails when including shapely

2022-05-26 Thread bwoodsend
For some reason, codesign is allergic to names with . in them in the Contents/MacOS/ subdirectory. Normally the hacky workaround is to move shapely to Contents/Resources then create a symlink (using ln -s) from Contents/MaOS/shapely to Contents/Resources/shapely. See also the same issue here

[PyInstaller] Re: Pyinstaller for Windows can't find custom module

2022-05-14 Thread bwoodsend
It’s the parent directory of your custom package that needs adding to sys.path (controlled via pathex). pathex=[‘C:\Users’], should do it. You’ll probably need to rebuild adding the —clean option (or you can just delete the build folder). That said, using pathex at all is a symptom of poor pa

[PyInstaller] Re: trouble with built app in Macos

2022-04-02 Thread bwoodsend
I believe that the main difference between running an application from macOS’s terminal and via clicking on it is that clicking on it runs the application in a very bare environment with almost no environment variables so that your application can’t find the home directory or the current enco

[PyInstaller] Re: Unable to find EGG-INFO when adding binary and data files.

2022-03-08 Thread bwoodsend
The problem is that you’ve installed mtaf in zipped egg format which was abandoned years ago. This happens if you build a package from source (usually without realising) and don’t have wheel installed. You should be able to fix this by installing wheel then reinstalling mtaf. pip install whee

Re: [PyInstaller] Re: Created .exe cannot be opened when moved to a new directory

2022-02-10 Thread bwoodsend
I’m afraid that there’s no nice switch in the spec file to toggle between onefile and onedir mode. Converting spec files is possible but you’d be better just creating a new spec file. And for the record, pyinstaller program.spec ignores --onefile (and almost all other flags). ​ On Tuesday, Feb

[PyInstaller] Re: Created .exe cannot be opened when moved to a new directory

2022-02-07 Thread bwoodsend
You’ve built in onedir mode (the default) which as the name suggests produces a directory. The EXE file inside that directory will not function without the rest of the contents of that folder. You need to distribute the folder with the program name. Or build in --onefile mode. ​ On Sunday, Feb

[PyInstaller] Re: OSError: Unable to open file (unable to open file: name = 'weight_res1.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

2022-01-31 Thread bwoodsend
And presumably your Python code references this file using something like filename = "weight_res1.h5" which assumes that weight_res1.h5 is in your current working directory instead of import os filename = os.path.join(os.path.dirname(__file__), "weight_res1.h5") which assumes that weight_res

[PyInstaller] Re: Request: Inclusion of "Robotframework" package in the Supported Packages

2022-01-31 Thread bwoodsend
You’d be better off making a hook request here to get new packages supported. ​ On Friday, January 28, 2022 at 6:23:37 PM UTC Bruno Calado wrote: > Hi, it would be nice if you could include Robotframework ( > https:/

[PyInstaller] Re: How to install Pyaudio with Pyinstaller?

2022-01-18 Thread bwoodsend
Updating to pyinstaller 4.8 *should* clear the issue with subprocess handles in windowed mode. ​ -- 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+un

[PyInstaller] Re: Issue after creating .exe while using wexpect within the script

2022-01-18 Thread bwoodsend
; > I also tried compiling the code below with swapping the "." for "wexpect" > and got the same error from the original code. > [image: Capture2.png] > [image: Capture.PNG] > On Monday, January 10, 2022 at 3:07:29 AM UTC-6 bwoods

[PyInstaller] Re: Issue after creating .exe while using wexpect within the script

2022-01-10 Thread bwoodsend
That’s a bug in wexpect. See here where they’re misusing the __init__.py as a regular module. It should be just from . import spawn. Try changing that line in your copy and if it works, I'

[PyInstaller] Re: Troubles with Geopandas

2021-12-30 Thread bwoodsend
For plain PyInstaller, you just need to add --collect-data=geopandas to your build command. I’ve no idea if auto-py-to-exe has an equivalent setting. ​ -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop re

[PyInstaller] Re: pyinstaller

2021-12-29 Thread bwoodsend
Hmm, that’s a new one. What architecture does Python think it’s running (output of platform.machine() in Python)? What architecture are you really on (output of uname -m from terminal)? Does removing the icon the icon make any difference? What’s the output of: lipo -archs /Users/user/PycharmP

[PyInstaller] Re: Pyinstaller can't find target architecture when building bootloader

2021-11-05 Thread bwoodsend
That one is a bug in PyInstaller 4.6. It's fixed in 4.6.1 but we haven't released it yet. If you install 4.5 instead then you should be fine. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving email

[PyInstaller] Re: Pyinstaller can't find target architecture when building bootloader

2021-11-02 Thread bwoodsend
You’re on arm7l which pip and PyPI don’t support so that’s why PyInstaller can’t ship precompiled bootloaders for you. Most Pi users can install packages from pywheels which contains a specially compiled copy of most common packages (see their ho

[PyInstaller] Re: import error no module named _bootlocale

2021-10-26 Thread bwoodsend
PyInstaller doesn't yet support Python 3.10. We're releasing PyInstaller 4.6 either today or tomorrow which will support it. You can either wait and then update PyInstaller or downgrade Python to 3.9. On Tuesday, October 26, 2021 at 2:19:22 PM UTC+1 solomon...@gmail.com wrote: > Good day, > >

[PyInstaller] Re: How to specify dependency versions?

2021-09-27 Thread bwoodsend
I think I may have misunderstood what pyinstaller does. It does not download Python modules from any repository given some package name, but it packages only the modules that are present *in the current environment*, is that right? This is correct. PyInstaller has virtually no awareness of pa

[PyInstaller] Re: FIX MY ERROR (UPX IS NOT AVAILABLE)

2021-09-01 Thread bwoodsend
UPX being unavailable is not an error. It just means that you don’t have UPX installed so PyInstaller can’t use its UPX compression feature . It still works fine without UPX. ​ On Wednesday, September 1, 2021 at

[PyInstaller] Re: Pyinstaller error in yocto image

2021-08-30 Thread bwoodsend
As is says in the docs PyInstaller requires ldd and objcopy which are typically provided by the binutils package. It looks like you’re using Raspian which uses apt as its package manager so you should run sudo apt-get

[PyInstaller] Re: Fatal Error: Failed to Execute Script (name)

2021-07-03 Thread bwoodsend
--noconsole means no debugging output so with that option you will likely never know what the problem is because it can’t tell you. Either turn --noconsole off and see what Python error message it comes out with in the console it opens or wrap your Python code in a try: [your code] except Bas

Re: [PyInstaller] subprocess not working after onefile pyinstaller even with stdout/stdin defined

2021-06-23 Thread bwoodsend
subprocess.Popen([sys.executable, “-u”, “testsubprocess.py”], A frozen application does not ship a Python interpreter. Instead sys.executable points to your EXE file which is equivalent to python testsubprocess.py so what you’re effectively running is subprocess.Popen(["python", "testsubproc

[PyInstaller] Re: no package metadata was found for t61codec centos

2021-06-22 Thread bwoodsend
Add --copy-metadata=t61codec to your build command. ​ On Tuesday, June 22, 2021 at 1:37:44 PM UTC+1 annalupa...@gmail.com wrote: > Compiled the files via the command pyinstaller --onefile test2.py I get an > error when I try to open the file. She is in the screenshot > [image: err.png] > -- Y

  1   2   3   >