Closed bitsgalore closed 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.
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!
This happens on new Windows 10 machine, Python 3.8.