iromlab
iromlab copied to clipboard
Linux compatibility issues
This is just for my own reference in case of any possible future spinoff products (e.g. floppy imager) that should work on Linux:
Launcher gives ModuleNotFoundError
python3 ~/iromlab/iromlab-launch.py
Result:
ModuleNotFoundError: No module named 'iromlab.iromlab'
Fix: rename "iromlab.pyw" to "iromlab.py".
Import errors on Windows-specific modules
Cdworker.py contains imports of these Windows-specific modules that are unavailable under Linux:
import pythoncom
import wmi
These are both used in:
def mediumLoaded(driveName):
"""Returns True if medium is loaded (also if blank/unredable), False if not"""
userDir depends on Window environment variable
See here. This also causes some secondary issues because config and tools directory locations are Windows-specific.