Self-hosted cannot import python libraries

Hello

I cannot see the option of import python libraries using the requirements.txt in my self-hosted retool environment. It is running on Ubuntu 24.04.01 -LTS with Docker version 27.3.1. Using Retool image release 3.52.25-stable

pythonlibrary

Actually the package that I'm trying to look for does not appear in the inbox

office365library

I found on internet it could be a problem with the code-executor container, but I don't see any problem according to documentation.

This is my config

code-executor:
image: code-executor:3.52.25-stable
command: bash -c "./start.sh"
env_file: ./docker.env
environment:
- DEPLOYMENT_TEMPLATE_TYPE=docker-compose
- NODE_OPTIONS=--max_old_space_size=1024
- PYPI_REPOSITORIES=Simple index
- TRUSTED_HOSTS=pypi.org
networks:
- code-executor-network
# code-executor uses nsjail to sandbox code execution. nsjail requires
# privileged container access.
# If your deployment does not support privileged access, you can set this
# to false to not use nsjail. Without nsjail, all code is run without
# sandboxing within your deployment.
privileged: true
restart: on-failure

And the log of the executor has no error too

Do you have any idea of what's wrong or if I'm missing something?

Thks!

1 Like

Hey @Jorge! Welcome to the community. :slightly_smiling_face:

There are generally two possible reasons for this:

  1. Your code-executor isn't running in privileged mode
  2. The necessary feature flags haven't been toggled on for your organization

Your logs pretty much eliminate the first possibility, meaning I'll go ahead and check those flags. After your instance performs its next license check, let me know if you're still not seeing that option. :+1:

Hello Darren

Thanks for your support, when it is suppose to check the license again.?Menawhile I see, the option it is not appearing

image

Best regardss

It should automatically perform a sync every six hours, but you can optionally force it via the Advanced Settings menu:

Let me know if you still don't see it after manually checking!

Hi Darren
I still don't see it after forced manually

Do you know the primary email associated with your license key? I activated the necessary keys for the key that is associated with your email, but notice now that there's a few others with the same domain.

Actually, the on prem deployment is running with a Team license with other e-mail. The captures shown are with the Team license running.
How can I send you the real email? I dont want to write it in this post

1 Like

That likely explains it, then! You can DM me here on the forums or email me at darren@retool.com. :+1: