I am trying to deploy my first app - repo link here - RyvrImmersive/streamlit-langchain-pdf (github.com)
pls help resolve
I am trying to deploy my first app - repo link here - RyvrImmersive/streamlit-langchain-pdf (github.com)
pls help resolve
Nothings jumping out at me from your requirements file unless you can relax some of the pins. Can you copy more from the logs so we can see what error you actually encountered instead of just the end result? (Do a refresh reboot of the app, then copy the logs.)
i have the same error. here is the log for the terminal server:
[17:32:48] π Pulling code changes from Github...
[17:32:49] π¦ Processing dependencies...
[17:32:49] π¦ Processed dependencies!
[17:32:51] π Updated app!
[17:33:13] π₯ Provisioning machine...
[17:33:14] π Preparing system...
[17:33:14] β Spinning up manager process...
[17:33:15] π₯ Provisioning machine...
[17:33:20] π Preparing system...
[17:33:25] β Spinning up manager process...
[17:33:32] π Inflating balloons...
[17:33:37] π Unpacking Comic Sans RAR files...
[17:33:19] π Starting up repository: 'dxrare', branch: 'main', main module: 'app.py'
[17:33:19] π Cloning repository...
[17:33:20] π Cloning into '/app/dxrare'...
[17:33:20] π Cloned repository!
[17:33:20] π Pulling code changes from Github...
[17:33:21] π¦ Processing dependencies...
ββββββββββββββββββββββββββββββββββββββββ pip βββββββββββββββββββββββββββββββββββββββββββ
Collecting streamlit
Downloading streamlit-1.22.0-py2.py3-none-any.whl (8.9 MB)
ββββββββββββββββββββββββββββββββββββββββ 8.9/8.9 MB 122.4 MB/s eta 0:00:00[2023-05-18 17:33:22.219792]
Collecting openai
Downloading openai-0.27.6-py3-none-any.whl (71 kB)
βββββββββββββββββββββββββββββββββββββββ 71.9/71.9 KB 124.8 MB/s eta 0:00:00[2023-05-18 17:33:22.292924]
Collecting deep-translator
Downloading deep_translator-1.10.1-py3-none-any.whl (35 kB)
Collecting streamlit-option-menu
Downloading streamlit_option_menu-0.3.4-py3-none-any.whl (785 kB)
βββββββββββββββββββββββββββββββββββββ 785.2/785.2 KB 282.5 MB/s eta 0:00:00[2023-05-18 17:33:22.464201]
Collecting streamlit-aggrid
Downloading streamlit_aggrid-0.3.4.post3-py3-none-any.whl (3.4 MB)
ββββββββββββββββββββββββββββββββββββββββ 3.4/3.4 MB 164.9 MB/s eta 0:00:00[2023-05-18 17:33:22.553569]
Collecting PyPDF2
Downloading pypdf2-3.0.1-py3-none-any.whl (232 kB)
βββββββββββββββββββββββββββββββββββββ 232.6/232.6 KB 186.0 MB/s eta 0:00:00[2023-05-18 17:33:22.642932]
Collecting reportlab
Downloading reportlab-4.0.0-py3-none-any.whl (1.9 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.9/1.9 MB 134.5 MB/s eta 0:00:00[2023-05-18 17:33:23.096120]
Collecting click>=7.0
Downloading click-8.1.3-py3-none-any.whl (96 kB)
βββββββββββββββββββββββββββββββββββββββ 96.6/96.6 KB 235.7 MB/s eta 0:00:00[2023-05-18 17:33:23.207593]
Collecting pyarrow>=4.0
Downloading pyarrow-12.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (39.0 MB)
βββββββββββββββββββββββββββββββββββββββ 39.0/39.0 MB 205.9 MB/s eta 0:00:00[2023-05-18 17:33:23.579679]
Collecting typing-extensions>=3.10.0.0
Downloading typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting packaging>=14.1
Downloading packaging-23.1-py3-none-any.whl (48 kB)
βββββββββββββββββββββββββββββββββββββββ 48.9/48.9 KB 113.7 MB/s eta 0:00:00[2023-05-18 17:33:23.733234]
Collecting watchdog
Downloading watchdog-3.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
βββββββββββββββββββββββββββββββββββββββ 82.1/82.1 KB 173.7 MB/s eta 0:00:00[2023-05-18 17:33:23.864180]
Collecting requests>=2.4
Downloading requests-2.30.0-py3-none-any.whl (62 kB)
βββββββββββββββββββββββββββββββββββββββ 62.5/62.5 KB 200.6 MB/s eta 0:00:00[2023-05-18 17:33:23.941834]
Collecting validators>=0.2
Downloading validators-0.20.0.tar.gz (30 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting protobuf<4,>=3.12
Downloading protobuf-3.20.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.0/1.0 MB 237.6 MB/s eta 0:00:00[2023-05-18 17:33:24.759192]
Collecting tenacity<9,>=8.0.0
Downloading tenacity-8.2.2-py3-none-any.whl (24 kB)
Collecting numpy
Downloading numpy-1.24.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
βββββββββββββββββββββββββββββββββββββββ 17.3/17.3 MB 163.6 MB/s eta 0:00:00[2023-05-18 17:33:25.447779]
Collecting importlib-metadata>=1.4
Downloading importlib_metadata-6.6.0-py3-none-any.whl (22 kB)
Collecting cachetools>=4.0
Downloading cachetools-5.3.0-py3-none-any.whl (9.3 kB)
Collecting pandas<3,>=0.25
Downloading pandas-2.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.4 MB)
βββββββββββββββββββββββββββββββββββββββ 12.4/12.4 MB 146.1 MB/s eta 0:00:00[2023-05-18 17:33:26.064404]
Collecting gitpython!=3.1.19
Downloading GitPython-3.1.31-py3-none-any.whl (184 kB)
βββββββββββββββββββββββββββββββββββββ 184.3/184.3 KB 230.2 MB/s eta 0:00:00[2023-05-18 17:33:26.180522]
Collecting pydeck>=0.1.dev5
Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)
ββββββββββββββββββββββββββββββββββββββββ 4.8/4.8 MB 274.6 MB/s eta 0:00:00[2023-05-18 17:33:26.265630]
Collecting tzlocal>=1.1
Downloading tzlocal-5.0.1-py3-none-any.whl (20 kB)
Collecting python-dateutil
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
βββββββββββββββββββββββββββββββββββββ 247.7/247.7 KB 221.4 MB/s eta 0:00:00[2023-05-18 17:33:26.358091]
Collecting rich>=10.11.0
Downloading rich-13.3.5-py3-none-any.whl (238 kB)
βββββββββββββββββββββββββββββββββββββ 238.7/238.7 KB 213.6 MB/s eta 0:00:00[2023-05-18 17:33:26.494159]
Collecting pympler>=0.9
Downloading Pympler-1.0.1-py3-none-any.whl (164 kB)
βββββββββββββββββββββββββββββββββββββ 164.8/164.8 KB 127.9 MB/s eta 0:00:00[2023-05-18 17:33:26.547493]
Collecting tornado>=6.0.3
Downloading tornado-6.3.2-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (426 kB)
βββββββββββββββββββββββββββββββββββββ 426.9/426.9 KB 172.4 MB/s eta 0:00:00
Collecting altair<5,>=3.2.0
Downloading altair-4.2.2-py3-none-any.whl (813 kB)
βββββββββββββββββββββββββββββββββββββ 813.6/813.6 KB 171.6 MB/s eta 0:00:00[2023-05-18 17:33:26.769932]
Collecting toml
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting pillow>=6.2.0
Downloading Pillow-9.5.0-cp39-cp39-manylinux_2_28_x86_64.whl (3.4 MB)
ββββββββββββββββββββββββββββββββββββββββ 3.4/3.4 MB 126.5 MB/s eta 0:00:00[2023-05-18 17:33:27.422929]
Collecting blinker>=1.0.0
Downloading blinker-1.6.2-py3-none-any.whl (13 kB)
Collecting aiohttp
Downloading aiohttp-3.8.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.0/1.0 MB 141.3 MB/s eta 0:00:00[2023-05-18 17:33:28.109589]
Collecting tqdm
Downloading tqdm-4.65.0-py3-none-any.whl (77 kB)
βββββββββββββββββββββββββββββββββββββββ 77.1/77.1 KB 174.3 MB/s eta 0:00:00[2023-05-18 17:33:28.226643]
Collecting beautifulsoup4<5.0.0,>=4.9.1
Downloading beautifulsoup4-4.12.2-py3-none-any.whl (142 kB)
βββββββββββββββββββββββββββββββββββββ 143.0/143.0 KB 127.7 MB/s eta 0:00:00[2023-05-18 17:33:28.299626]
Collecting python-decouple<4.0,>=3.6
Downloading python_decouple-3.8-py3-none-any.whl (9.9 kB)
Collecting freetype-py<2.4,>=2.3.0
Downloading freetype_py-2.3.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (978 kB)
βββββββββββββββββββββββββββββββββββββ 978.9/978.9 KB 148.0 MB/s eta 0:00:00[2023-05-18 17:33:28.513468]
Collecting rlPyCairo<1,>=0.2.0
Downloading rlPyCairo-0.2.0-py3-none-any.whl (10 kB)
Collecting jsonschema>=3.0
Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)
βββββββββββββββββββββββββββββββββββββββ 90.4/90.4 KB 209.1 MB/s eta 0:00:00[2023-05-18 17:33:28.681326]
Collecting jinja2
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
βββββββββββββββββββββββββββββββββββββ 133.1/133.1 KB 147.9 MB/s eta 0:00:00[2023-05-18 17:33:28.729489]
Collecting entrypoints
Downloading entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting toolz
Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
βββββββββββββββββββββββββββββββββββββββ 55.8/55.8 KB 155.3 MB/s eta 0:00:00[2023-05-18 17:33:28.838222]
Collecting soupsieve>1.2
Downloading soupsieve-2.4.1-py3-none-any.whl (36 kB)
Collecting gitdb<5,>=4.0.1
Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
βββββββββββββββββββββββββββββββββββββββ 62.7/62.7 KB 197.1 MB/s eta 0:00:00[2023-05-18 17:33:28.967092]
Collecting zipp>=0.5
Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
Collecting tzdata>=2022.1
Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
βββββββββββββββββββββββββββββββββββββ 341.8/341.8 KB 250.6 MB/s eta 0:00:00[2023-05-18 17:33:29.257156]
Collecting pytz>=2020.1
Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)
βββββββββββββββββββββββββββββββββββββ 502.3/502.3 KB 166.4 MB/s eta 0:00:00[2023-05-18 17:33:29.395651]
Collecting six>=1.5
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting idna<4,>=2.5
Downloading idna-3.4-py3-none-any.whl (61 kB)
βββββββββββββββββββββββββββββββββββββββ 61.5/61.5 KB 144.0 MB/s eta 0:00:00[2023-05-18 17:33:29.613348]
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)
βββββββββββββββββββββββββββββββββββββ 199.2/199.2 KB 139.9 MB/s eta 0:00:00[2023-05-18 17:33:29.760440]
Collecting urllib3<3,>=1.21.1
Downloading urllib3-2.0.2-py3-none-any.whl (123 kB)
βββββββββββββββββββββββββββββββββββββ 123.2/123.2 KB 118.0 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2023.5.7-py3-none-any.whl (156 kB)
βββββββββββββββββββββββββββββββββββββ 157.0/157.0 KB 213.0 MB/s eta 0:00:00[2023-05-18 17:33:29.958875]
Collecting markdown-it-py<3.0.0,>=2.2.0
Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
βββββββββββββββββββββββββββββββββββββββ 84.5/84.5 KB 127.7 MB/s eta 0:00:00[2023-05-18 17:33:30.026612]
Collecting pygments<3.0.0,>=2.13.0
Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)
ββββββββββββββββββββββββββββββββββββββββ 1.1/1.1 MB 249.2 MB/s eta 0:00:00[2023-05-18 17:33:30.107650]
Collecting pycairo>=1.20.0
Downloading pycairo-1.23.0.tar.gz (344 kB)
βββββββββββββββββββββββββββββββββββββ 344.6/344.6 KB 236.0 MB/s eta 0:00:00[2023-05-18 17:33:30.161586]
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting decorator>=3.4.0
Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
Collecting attrs>=17.3.0
Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
βββββββββββββββββββββββββββββββββββββββ 61.2/61.2 KB 182.5 MB/s eta 0:00:00[2023-05-18 17:33:38.114859]
Collecting aiosignal>=1.1.2
Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting yarl<2.0,>=1.0
Downloading yarl-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (269 kB)
βββββββββββββββββββββββββββββββββββββ 269.4/269.4 KB 171.7 MB/s eta 0:00:00[2023-05-18 17:33:38.480173]
Collecting multidict<7.0,>=4.5
Downloading multidict-6.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)
βββββββββββββββββββββββββββββββββββββ 114.2/114.2 KB 114.5 MB/s eta 0:00:00[2023-05-18 17:33:38.956915]
Collecting frozenlist>=1.1.1
Downloading frozenlist-1.3.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (158 kB)
βββββββββββββββββββββββββββββββββββββ 158.8/158.8 KB 224.0 MB/s eta 0:00:00[2023-05-18 17:33:39.137548]
Collecting async-timeout<5.0,>=4.0.0a3
Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Downloading pyrsistent-0.19.3-py3-none-any.whl (57 kB)
βββββββββββββββββββββββββββββββββββββββ 57.5/57.5 KB 113.1 MB/s eta 0:00:00[2023-05-18 17:33:39.733072]
Collecting mdurl~=0.1
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Building wheels for collected packages: validators, pycairo
Building wheel for validators (setup.py): started
Building wheel for validators (setup.py): finished with status 'done'
Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19579 sha256=9d83ad7eb60bce9cf179cc46dae2b3a238dba91a84f5970d8c3e0fa832fc2576
Stored in directory: /tmp/pip-ephem-wheel-cache-c6rcmr1v/wheels/2d/f0/a8/1094fca7a7e5d0d12ff56e0c64675d72aa5cc81a5fc200e849
Building wheel for pycairo (pyproject.toml): started
Building wheel for pycairo (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Γ Building wheel for pycairo (pyproject.toml) did not run successfully.
β exit code: 1
β°β> [12 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-39/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-39/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-cpython-39/cairo
running build_ext
'pkg-config' not found.
Command ['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycairo
Successfully built validators
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
WARNING: You are using pip version 22.0.3; however, version 23.1.2 is available.
You should consider upgrading via the '/home/appuser/venv/bin/python -m pip install --upgrade pip' command.
Checking if Streamlit is installed
Try installing pkg-config
.
I tried to install with requeriments.txt and then I saw packages.txt option and also failed. Here is the log from using packages.txt for pkg-config installation:
β¦ ```
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Downloading pyrsistent-0.19.3-py3-none-any.whl (57 kB)
βββββββββββββββββββββββββββββββββββββββ 57.5/57.5 KB 210.9 MB/s eta 0:00:00[2023-05-19 08:08:13.100478]
Collecting mdurl~=0.1
Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Building wheels for collected packages: validators, pycairo
Building wheel for validators (setup.py): started
Building wheel for validators (setup.py): finished with status βdoneβ
Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19579 sha256=513dae37c4df6f898bbebc8b9219f2511108847710b44a989ee6202cb949da03
Stored in directory: /tmp/pip-ephem-wheel-cache-1_cu0es4/wheels/2d/f0/a8/1094fca7a7e5d0d12ff56e0c64675d72aa5cc81a5fc200e849
Building wheel for pycairo (pyproject.toml): started
Building wheel for pycairo (pyproject.toml): finished with status βerrorβ
error: subprocess-exited-with-error
Γ Building wheel for pycairo (pyproject.toml) did not run successfully.
β exit code: 1
β°β> [15 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-39/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-39/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-cpython-39/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycairo
Successfully built validators
Failed to build pycairo
ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
WARNING: You are using pip version 22.0.3; however, version 23.1.2 is available.
You should consider upgrading via the β/home/appuser/venv/bin/python -m pip install --upgrade pipβ command.
Checking if Streamlit is installed
βββββββββββββββββββββββββββββββββββββββββ
No package 'cairo' found
You need to install cairo
too.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.