Closed Machoney closed 5 years ago
Okey, I have figure it out.
I have build bluepy from source in my venv. Then I set to run bluepy-helper as a normal user.
sudo setcap 'cap_net_raw,cap_net_admin+eip' bluepy-helper
After that, I have run pyinstaller one more time and it works.
@Machoney can you describe with details what you done to make it works i have the same problem
@bambachas this issue is caused by the required data file from bluepy is missed when PyInstaller trying collect the dependency. Put the attached hook-bluepy.py(change from .txt to .py) under
@bambachas this issue is caused by the required data file from bluepy is missed when PyInstaller trying collect the dependency. Put the attached hook-bluepy.py(change from .txt to .py) under /site-packages/PyInstaller/hooks and re-run the PyInstaller generation process can fix the problem hook-bluepy.txt
It works for me.
Hi. This is my first project on Linux. I do not exactly know how "executables" works here and quick research showed to use PyInstaller like on Windows.
I'm using:
The installation went with some warnings, but no one of them concern Bluetooth or bluepy. When I run my program, have error like his:
I went deep into the code, and it looks like the path to the bluepy-helper is incorrect.
helperExe = os.path.join(script_path, "bluepy-helper")
used in:I don't understand why he's referring to the /tmp/ folder, if it's generated from venv.
Did anyone have such a problem?