- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
I open the following track to ask for clarifications on the configuration of the node "Open source code" in SASModelStudio in Viya 3.5
In particular, I was wondering if it was possible to set the use of a specific virtualenv (in Python) based on the type of user.
At the beginning of the user session it would be necessary to invoke the command "source bin/activate" of a certain venv.
[user1@machine /home/user1/venv]# source bin/activate
(venv) [user1@machine /home/user1/venv]#
If it wasn't possible to discriminate by user/group, could it be possible to set a default venv in some configuration file?
Thanks
Davide
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Currently there is no way to invoke a python virtual environment from the Open Source Code (OSC) node because the node just calls the python executable it finds (mostly in PATH) and invokes its base environment.
You can update the PATH by modifying the sas-compsrv file under the /opt/sas/viya/config/etc/sysconfig/compsrv/default directory by adding the following line:
export PATH=path_to_your_python_bin_directory:${PATH}
Radhikha
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Radhikha,
thank you for the response. Do you think will be it available in the future or isn't it in the roadmap to add this feature?
Thanks
Davide