The installer for the labscript suite. This repository is used used to build zip files containing an install script and all the labscript suite python packages.
After installing labscript, the start menu shortcuts point to the copies of the labscript programs in the directory with the installer, rather than the copies in the target install directory. This occurred on a machine in which I was using an Anaconda environment other than base. This issue didn't occur on a separate machine in which I simply installed in the base environment, so that may be relevant.
Steps to reproduce:
Create a new anaconda environment, say "labscript", then activate it and install all of the necessary labscript dependencies.
Make a directory for the installer (e.g. %userprofile%\Software\Labscript\installer), and a target installation directory (e.g. %userprofile%\Software\Labscript\labscript_suite)
Clone the installer mercurial repo into %userprofile%\Software\Labscript\installer
Run the installer, and specify %userprofile%\Software\Labscript\labscript_suite as the target install directory
To see the result:
After the installation completes, open the start menu, type e.g. blacs then right-click on it and select "Open file location"
In that directory (%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs), right click on the link to blacs and select "Properties"
In the "Shortcut" tab, look at the entry in the box labeled "Target". In my case it looked like this:
%userprofile%\.conda\envs\labscript\pythonw.exe "%userprofile%\Software\Labscript\installer\labscriptutils\winlauncher.py" "-n" "labscript" "-p" "%userprofile%\.conda\envs\labscript" "%userprofile%\Software\Labscript\installer\blacs\(seems to be truncated in the display there, but the link opens fine) Note that these paths point to%userprofile%\Software\Labscript\installerrather than%userprofile%\Software\Labscript\labscript_suite`. The same is true for the links for the other runmanager etc.
Generally this isn't a big issue because there is a copy of the labscript suite in the installer directory which runs fine, so I've marked this bug as minor. However, it did cause some confusion when updating the mercurial repo for Lyse in the target install directory didn't affect the copy of Lyse that opens from the start menu. Additionally, the fact that the "Target" text box truncates the command makes it difficult to update the link to point to the correct location manually.
It's maybe worth noting that importing lyse in python imports the desired copy in the target directory (according to its __file__ attribute it's from %userprofile%\Software\Labscript\labscript_suite), so this is only an issue with the start menu link.
Version info:
Labscript suite installer changeset 44d0c0eb1828c3d26cc9962bf084f47499150c88
Anaconda 2019.10
Python 3.7.4
Windows 10, 64 bit
Original report (archived issue) by Anonymous.
After installing labscript, the start menu shortcuts point to the copies of the labscript programs in the directory with the installer, rather than the copies in the target install directory. This occurred on a machine in which I was using an Anaconda environment other than base. This issue didn't occur on a separate machine in which I simply installed in the base environment, so that may be relevant.
Steps to reproduce:
%userprofile%\Software\Labscript\installer
), and a target installation directory (e.g.%userprofile%\Software\Labscript\labscript_suite
)%userprofile%\Software\Labscript\installer
%userprofile%\Software\Labscript\labscript_suite
as the target install directoryTo see the result:
%userprofile%\.conda\envs\labscript\pythonw.exe "
%userprofile%\Software\Labscript\installer\labscriptutils\winlauncher.py" "-n" "labscript" "-p" "%userprofile%\.conda\envs\labscript" "
%userprofile%\Software\Labscript\installer\blacs\(seems to be truncated in the display there, but the link opens fine) Note that these paths point to
%userprofile%\Software\Labscript\installerrather than
%userprofile%\Software\Labscript\labscript_suite`. The same is true for the links for the other runmanager etc.Generally this isn't a big issue because there is a copy of the labscript suite in the installer directory which runs fine, so I've marked this bug as minor. However, it did cause some confusion when updating the mercurial repo for Lyse in the target install directory didn't affect the copy of Lyse that opens from the start menu. Additionally, the fact that the "Target" text box truncates the command makes it difficult to update the link to point to the correct location manually.
It's maybe worth noting that importing lyse in python imports the desired copy in the target directory (according to its
__file__
attribute it's from%userprofile%\Software\Labscript\labscript_suite
), so this is only an issue with the start menu link.Version info: Labscript suite installer changeset 44d0c0eb1828c3d26cc9962bf084f47499150c88 Anaconda 2019.10 Python 3.7.4 Windows 10, 64 bit