-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux compatibility #188
Linux compatibility #188
Conversation
…ylabnet into linux_compatibility
Lan compatibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Tested it on a Linux Mint machine by starting nanopositioner GUI without problems. Added option to provide a network_configuration
config file containing the following:
{
'subnet' : '192.168.50', # For Windows
'network_interface' : 'enp1s0f3' # For Linux
}
If a computer is connected to multiple networks, this file provides a way to specify the network which is used to launch the pylabnet
servers. The network interface on Linux can be found using the ifconfig
command.
@cknaut this may interest you Figured out how to turn pylabnet executable binaries into an "application". Create a file
You can do the same for From here, you can copy the |
Made pylabnet compatible with Linux (tested working on Ubuntu 20.04)
Important notes
get_os()
function inpylabnet.utils.helper_methods
will return either'Windows'
or'Linux'
and can be used prior to performing any OS specific calls (such asctypes.windll
related functionality)./etc/ssl/certs
directory/etc/ssl/openssl.cnf
must be modified as described in this bug reportsource /path/to/env/bin/activate
(rather than the batch file typically used in Windows)show_console
method has been depreciated in favor of GUI-based popups. Seepylabnet.gui.pyqt.external_gui
,ParameterPopup
for cases where there is alreayd a parent app and GUI, andfresh_popup
andwarning_popup
methods when there is no underlying app. This has been tested to work in Ubuntu and WindowsDevice specific notes
Should test device functionality moving forward.
nidaqmx
is not officially supported, although it might work. Lots (but not all) NI hardware is Linux compatible. pydaqmx may be an alternativepyvisa
should work identically, taking care of standard serial connections