iromlab
iromlab copied to clipboard
Installed package executables don't run
When I double-click on either the "iromlab" or "iromlab-configure" executables in the "Scripts" dir on my new Win 11 machine, nothing happens. Same when running them from a terminal (no terminal output is produced whatsoever). Isolyzer (installed as a dependency) does work, so perhaps a GUI-only thing.
OR perhaps this is just another manifestation of:
https://github.com/KBNLresearch/iromlab/issues/100
(not getting any import errors while running the scripts from the source repo though!)
UPDATE - tried old dll copying trick, doesn't make any difference here. Also tried installing older Iromlab version, with same result.
Python version = 3.12.4
Also tried installing with "--user" option. In that case install location is:
C:\Users\Redacted\AppData\Roaming\Python\Python312\Scripts
Note that "AppData" folder is hidden by default!
Double-clicking on iromlab or iromlab-configure launchers results in dialog "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item".
As an additional test I installed Jpylyzer with pip. Running the executable from Powershell terminal results in an "access denied" message:
Program `jpylyzer.exe` failed to run: Access is deniedAt line:1 char:1
A quick Google on this error message returned several hits, most of which indicate either antivirus or firewall software blocking execution:
https://serverfault.com/questions/895983/access-denied-when-running-any-python-script-on-windows
Also tried user install:
pip install --user jpylyzer
This installs in user dir (AppData\Roaming\Python\Python12\Scripts). Running executable also results in access denied!
After updating pip to the latest version, I'm now also getting the Access Denied error for pip itself! So this definitely looks like the problem is caused by the machine's configuration.
- Uninstalled Python (system install as admin) and re-installed as single user install (which used AppData). As a test again installed Jpylyzer. Result: again gives access denied error (this time on Scripts dir in AppData\Local\Programs\Python\Python312\Scripts).
- Installed older Python version (3.10.11). Same results.
Update: calling the executables also (sometimes) triggers an "action blocked" notification in the Windows Security application. So this is most likely Windows blocking the exe because of some security policy. It's still possible to run Iromlab from the terminal using:
python -m iromlab
This doesn't work for the iromlab configuration tool.