Skip to main content
Cadet | Tier 2
February 4, 2025
Question

Using Python Package with venv

  • February 4, 2025
  • 2 replies
  • 174 views

With multiple servers and multiple Citizen Developers, we would like to use a venv for Python instead of having to constantly update all the servers and Developers.  Is this possible?

2 replies

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
February 4, 2025

In theory, yes! Here’s my thought on it.

  1. I would build a REST web service on a web server.
  2. This REST web service would accept Python code as a parameter along with an array for other parameters (or a JSON message probably better).
  3. The web server would run the Python code and return the values back as the web service response.

This would keep the Python execution to just a single computer, accessible via REST web service.

The other question is… how frequently are you needing to update Python? Is every update needed? Also, depending on how much Python code you execute, have you considered restricting bots needing Python to just a single bot runner?

tom 7795Author
Cadet | Tier 2
February 5, 2025

@Aaron.Gleason I will look into the REST service.  As to updates, Python updates frequently and since we have multiple Citizen developers using multiple Virtual servers, the chance of someone having an updated version is highly possible.  This can negatively impact other users.  Using venv would allow us to eliminate this issue.