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

python app doesn't start #39

Closed
chlebowa opened this issue Jul 28, 2023 · 6 comments · Fixed by #40
Closed

python app doesn't start #39

chlebowa opened this issue Jul 28, 2023 · 6 comments · Fixed by #40
Labels
bug Something isn't working core

Comments

@chlebowa
Copy link

chlebowa commented Jul 28, 2023

When running

source("https://raw.github.com/insightsengineering/teal.gallery/main/_internal/utils/sourceme.R")
restore_and_run("python")

I get

Error in system2(python, args, stdout = TRUE, stderr = FALSE) :
error in running command

This is under R 4.2.2 on Ubuntu 20.04.

@chlebowa chlebowa added bug Something isn't working core labels Jul 28, 2023
@vedhav
Copy link
Contributor

vedhav commented Jul 31, 2023

Are you able to clone and run this app @chlebowa?

@chlebowa
Copy link
Author

Well, I cloned it but doesn't run.

@vedhav
Copy link
Contributor

vedhav commented Jul 31, 2023

Ah! I was able to reproduce it. Thanks for creating an issue for this.
Turnes out that if there is no Python virtual env called example_env_name in the path /Users/username/.virtualenvs it does not work.

@vedhav
Copy link
Contributor

vedhav commented Jul 31, 2023

@chlebowa Can you check if this works for you?

source("https://raw.github.com/insightsengineering/teal.gallery/main/_internal/utils/sourceme.R")
restore_and_run("python", ref = "39-fix-python-restore@main")

@chlebowa
Copy link
Author

Yes, now it works 👍

@vedhav
Copy link
Contributor

vedhav commented Jul 31, 2023

Can you please review PR #40 that fixes this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core
Projects
None yet
2 participants