KBNLresearch / iromlab

Loader software for automated imaging of optical media with Nimbie disc robot
Apache License 2.0
31 stars 5 forks source link

Linux compatibility issues #103

Open bitsgalore opened 2 years ago

bitsgalore commented 2 years ago

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.