Hi everyone,

I get the following error with paddleocr. Have some an idea how to install

“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/
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/", line 552, in _run_script
    exec(code, module.__dict__)
  File "/app/receiptgpt_streamlit/", line 4, in <module>
    from paddleocr import PaddleOCR
  File "/home/appuser/venv/lib/python3.9/site-packages/paddleocr/", line 14, in <module>
    from .paddleocr import *
  File "/home/appuser/venv/lib/python3.9/site-packages/paddleocr/", line 21, in <module>
    import paddle
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/", line 31, in <module>
    from .framework import monkey_patch_variable
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/framework/", line 17, in <module>
    from . import random  # noqa: F401
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/framework/", line 17, in <module>
    from paddle import fluid
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/", line 36, in <module>
    from . import framework
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/", line 35, in <module>
    from . import core
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/", line 356, in <module>
    raise e
  File "/home/appuser/venv/lib/python3.9/site-packages/paddle/fluid/", line 269, in <module>
    from . import libpaddle
ImportError: cannot open shared object file: No such file or directory



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 bookworm InRelease [151 kB]
Get:2 bookworm-updates InRelease [52.1 kB]
Get:3 bookworm-security InRelease [48.0 kB]
Get:4 bookworm/main amd64 Packages [8906 kB]
Get:5 buster InRelease [6517 B]
Get:6 bookworm-updates/main amd64 Packages [4732 B]
Get:7 bookworm-security/main amd64 Packages [48.0 kB]
Get:8 buster/main all Packages [2275 B]
Get:9 buster/main amd64 Packages [173 kB]
Fetched 9392 kB in 1s (9277 kB/s)
W: 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:
The following NEW packages will be installed:
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 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.