KBNLresearch / iromlab

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

Running iromlab-configure results in 'no configuration file found in package' #101

Closed bitsgalore closed 4 years ago

bitsgalore commented 4 years ago

This happens on new Windows 10 machine, Python 3.8.

bitsgalore commented 4 years ago

Error happens because iromlab-configure expects package config file in:

c:\python\python38\lib\site-packages\iromlab\conf\config.xml

Which is the expected location for a globally installed package, but not for a user install!

Locations are found using:

sitePackageDirs = site.getsitepackages()

Which gives following output:

c:\python\python38\
c:\python\python38\lib\site-packages\

For the user site packages directory we need (note this returns 1 single dir, not a list!):

sitePackageDirUser = site.getusersitepackages()

which returns the expected directory.

bitsgalore commented 4 years ago

Fixed by https://github.com/KBNLresearch/iromlab/commit/c6310edb0c0148adeb6ae4a7ccbe3417cdee81d8 and https://github.com/KBNLresearch/iromlab/commit/38bae1b34039467ccaa86063c1bb10cad089a38d. TODO: test if this doesn't break global package installs!