# Error while trying to use REPL

**URL:** <https://forums.swift.org/t/error-while-trying-to-use-repl/50131>\
**Category:** Using Swift\
**Tags:** error\
**Created:** [June 30, 2021, 11:50am UTC](https://forums.swift.org/t/error-while-trying-to-use-repl/50131 "2021-06-30T11:50:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgautam03](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/tgautam03/32/18304_2.png) [@tgautam03](https://forums.swift.org/u/tgautam03)\
**Post date:** [June 30, 2021, 11:50am UTC](https://forums.swift.org/t/error-while-trying-to-use-repl/50131/1 "2021-06-30T11:50:30Z")

</div>

Hi, I had everything working fine earlier, but after a system update I'm not able to run REFL. I've swift installed and it shows version number when I run `swift --version`, but gives an error when I try to access REPL by running the command `swift`. I'm getting the following error:

```swift
/home/tushar/swift-5.4.1-RELEASE-ubuntu20.04/usr/bin/lldb: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

```

---

<div class="post-metadata">

**Author:** ![GETec](https://avatars.discourse-cdn.com/v4/letter/g/b5ac83/32.png) [@GETec](https://forums.swift.org/u/GETec)\
**Post date:** [September 8, 2021, 11:56am UTC](https://forums.swift.org/t/error-while-trying-to-use-repl/50131/2 "2021-09-08T11:56:52Z")

</div>

Hi Tushar

Have you been able to resolve this issue?

I've installed Swift on Ubuntu 20.4 and get the same problem. I did find libpython3.8.so.1.0 and added it to /usr/lib. Then I get another error message reporting another library is missing.

I look forward to a reply.

Gary

---

<div class="post-metadata">

**Author:** ![ganesh.khedkar](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/ganesh.khedkar/32/24736_2.png) [@ganesh.khedkar](https://forums.swift.org/u/ganesh.khedkar)\
**Post date:** [August 10, 2022, 5:03am UTC](https://forums.swift.org/t/error-while-trying-to-use-repl/50131/3 "2022-08-10T05:03:06Z")

</div>

Hello Gary && Tushar  
Here is the solution

1. sudo find / -name libpython3.8.so.1.0
2. cp (Result path) /usr/lib

---

<div class="post-metadata">

**Author:** ![stevapple](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/stevapple/32/31979_2.png) [@stevapple](https://forums.swift.org/u/stevapple)\
**Post date:** [August 10, 2022, 6:39am UTC](https://forums.swift.org/t/error-while-trying-to-use-repl/50131/4 "2022-08-10T06:39:06Z")

</div>

Seems related to [SR-15958](https://github.com/apple/llvm-project/issues/4295).
