PyInstaller.depend.bindepend' has no attribute 'selectImports #1
Replies: 4 comments 2 replies
-
What version of pyinstaller are you running? |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
@Patricklevyy , I had same issue. Found a answer (not remember where 🤕 ) that simple patch it. I used scripts to automatically patch and use pyinstaller with kivy: To me, it resolves. |
Beta Was this translation helpful? Give feedback.
-
I also have a python app using Kivy and ran into the same issue. However, when I used python 3.12.3 with pyinstaller 5.13.0 it worked for me. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to convert my .py file to .exe with py installer. I have a simple code that uses kivy. But I have an error that I can't fix. When I launch pyinstaller I get after a few moments:
AttributeError: module 'PyInstaller.depend.bindepend' has no attribute 'selectImports'
I asked the issue on pyinstaller discussion but the autor said :
PyInstaller.depend.bindepend.selectImports was refactored into low-level PyInstaller.depend.bindepend.get_imports and high-level PyInstaller.depend.bindepend.binary_dependency_analysis in v.6.0 (pyinstaller/pyinstaller#7784).
So if kivy hook is using selectImports, it should be fixed accordingly. As the hook in question is maintained as part of kivy, you should report the issue to them. (As a side note, I am not sure why kivy hook would need to perform binary dependency analysis itself - it should just return the top-level binaries and let PyInstaller handle the dependencies).
Beta Was this translation helpful? Give feedback.
All reactions