Install libssl.so.1.1

Hi everyone,

I get the following error with paddleocr. Have some an idea how to install libssl.so.1.1?

“libssl-dev” in package.txt isn’t working.

Thank you :slight_smile:

Error: Can not import paddle core while this file exists: /home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/libpaddle.so
2023-07-24 08:49:14.849 Uncaught app exception
Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/app/receiptgpt_streamlit/first_script.py", line 4, in <module>
    from paddleocr import PaddleOCR
  File "/home/appuser/venv/lib/python3.9/site-packages/paddleocr/__init__.py", line 14, in <module>
    from .paddleocr import *
  File "/home/appuser/venv/lib/python3.9/site-packages/paddleocr/paddleocr.py", line 21, in <module>
    import paddle
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/__init__.py", line 31, in <module>
    from .framework import monkey_patch_variable
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/framework/__init__.py", line 17, in <module>
    from . import random  # noqa: F401
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/framework/random.py", line 17, in <module>
    from paddle import fluid
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/__init__.py", line 36, in <module>
    from . import framework
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/framework.py", line 35, in <module>
    from . import core
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/core.py", line 356, in <module>
    raise e
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/core.py", line 269, in <module>
    from . import libpaddle
ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory

packages.txt

libssl-dev

should work.
Typo in the file name?

Unfortunately not :neutral_face: See log:

[12:42:51] 📦 Processing dependencies...
[12:42:51] 📦 Apt dependencies were installed from /app/receiptgpt_streamlit/packages.txt using apt-get.
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8906 kB]
Get:5 https://packages.microsoft.com/debian/10/prod buster InRelease [6517 B]
Get:6 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [4732 B]
Get:7 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [48.0 kB]
Get:8 https://packages.microsoft.com/debian/10/prod buster/main all Packages [2275 B]
Get:9 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages [173 kB]
Fetched 9392 kB in 1s (9277 kB/s)
W: https://packages.microsoft.com/debian/10/prod/dists/buster/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Reading package lists...[2023-07-24 12:42:54.057363] 
Building dependency tree...[2023-07-24 12:42:54.233717] 
Reading state information...[2023-07-24 12:42:54.234034] 
Suggested packages:
  libssl-doc
The following NEW packages will be installed:
  libssl-dev
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
Need to get 2428 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 libssl-dev amd64 3.0.9-1 [2428 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2428 kB in 0s (30.2 MB/s)
Selecting previously unselected package libssl-dev:amd64.
(Reading database ... 19619 files and directories currently installed.)
Preparing to unpack .../libssl-dev_3.0.9-1_amd64.deb ...
Unpacking libssl-dev:amd64 (3.0.9-1) ...
Setting up libssl-dev:amd64 (3.0.9-1) ...

I don’t see an error message…

Yes, there is no Problem, But after that the requierements are installed, which of course still works without problems. But when the app starts, exactly the error I described at the beginning occurs.

Which actually says that it is not installed?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.