Skip to content
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

Fix dev mode deps #54

Closed
pbarker opened this issue Jun 9, 2024 · 0 comments · Fixed by #62
Closed

Fix dev mode deps #54

pbarker opened this issue Jun 9, 2024 · 0 comments · Fixed by #62
Labels
bug Something isn't working

Comments

@pbarker
Copy link
Contributor

pbarker commented Jun 9, 2024

When running sk it activates the virtual env for surfkit but that can cause the agent to be missing packages since they are in the agent's venv

This could maybe be fixed by adding the site packages to the sys.path like:

import sys
import site
import os

# Path to the first virtual environment
venv1_path = "/path/to/first/venv"
# Path to the second virtual environment
venv2_path = "/path/to/second/venv"

# Add the site-packages of the first virtual environment
site.addsitedir(os.path.join(venv1_path, "lib/pythonX.X/site-packages"))
# Add the site-packages of the second virtual environment
site.addsitedir(os.path.join(venv2_path, "lib/pythonX.X/site-packages"))
@pbarker pbarker added the bug Something isn't working label Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant