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

Swift REPL not working #78

Closed
marius-se opened this issue Oct 11, 2023 · 2 comments
Closed

Swift REPL not working #78

marius-se opened this issue Oct 11, 2023 · 2 comments

Comments

@marius-se
Copy link

I just Swift 5.9.0 using Swiftly on a fresh Fedora 38 and it seems like swift repl isn't working because of a missing Python version.

python3 --version tells me I'm on 3.11.5 and swift repl returns the following error:

/home/marius/.local/share/swiftly/toolchains/5.9.0/usr/bin/lldb: error while loading shared libraries: libpython3.9.so.1.0: cannot open shared object file: No such file or directory

I suspect installing Python 3.9 would fix the issue, but is there a way to get this out of the box with Swiftly?

@patrickfreed
Copy link
Contributor

Unfortunately, with external system dependency issues like this, there isn't much swiftly can do. At the moment, swiftly-install.sh scrapes the list of dependencies to install from the Dockerfile associated with that platform. For Fedora 38, I imagine the RHEL dockerfile would be used: https://github.com/apple/swift-docker/blob/main/nightly-main/rhel-ubi/9/Dockerfile#L6-L18. That list does include python3-devel, but it looks like that package on Fedora 38 installs Python 3.11.5, as you're seeing: https://packages.fedoraproject.org/pkgs/python3.11/python3-devel/

To work around this, I'd recommend just manually installing the required Python version, since unfortunately, I don't think there's anything swiftly or swiftly-install.sh can do for platforms other than the ones that have dockerfiles explicitly provided for them.

@marius-se
Copy link
Author

I see, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants