docs
stringclasses 4
values | category
stringlengths 3
31
| thread
stringlengths 7
255
| href
stringlengths 42
278
| question
stringlengths 0
30.3k
| context
stringlengths 0
24.9k
| marked
int64 0
1
|
---|---|---|---|---|---|---|
streamlit | Streamlit Cloud | Deploying a H2o model | https://discuss.streamlit.io/t/deploying-a-h2o-model/21188 | I tried deploying a machine learning model that I built using h2o. However, java needs to be installed for the model to work on your cloud. Is there any workaround on this? It gave me this error
h2o.exceptions.H2OStartupError: Cannot find Java.
Can anyone guide me on how to solve this issue? Thank you | Hi @Chuka_Obi, welcome to the Streamlit community!
This post highlights how to install java on Streamlit cloud:
How to install Java 8 via packages.txt? Streamlit Cloud
Hi! Adding default-jre to packages.txt works for me perfectly.
Best,
Randy | 0 |
streamlit | Streamlit Cloud | Have to re-deploy my app often | https://discuss.streamlit.io/t/have-to-re-deploy-my-app-often/21077 | Hello Streamlit Community,
I have built a lipidomics app using streamlit and deployed it on streamlit shares. However, sometimes the app does not load. I receive the following error message:
Screen Shot 2022-01-17 at 11.01.04 AM1278×570 19.9 KB
Then, I am forced to re-deploy the app. Is there a way to avoid this situation?
Thank you for being awesome!
Hamed | Hi @haabdii, welcome back!
If your app is frequently over resources, then you’ll see this message. One quick fix is to upgrade to newer versions of Streamlit (> 1.1) and see if this fixes it, as we’ve made a lot of memory improvements recently.
If that doesn’t fix it, then post your repo here and maybe something else obvious will stand out.
Best,
Randy | 0 |
streamlit | Streamlit Cloud | How to deploy an app when my files are very large | https://discuss.streamlit.io/t/how-to-deploy-an-app-when-my-files-are-very-large/21109 | Hi,
I created an app that I would like to deploy. But my code use several csv files that are larger than 1GB.
How could I deal with this problem ?
Many thanks for the help,
Maxime | Hi @Maxime_tut -
Streamlit Cloud supports Git LFS, which is our usual recommendation to users:
docs.streamlit.io
Troubleshooting - Streamlit Docs 1
Git Large File Storage
Git Large File Storage
Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.
Alternatively, you could first try to compress the CSV files and see if that helps.
Best,
Randy | 0 |
streamlit | Streamlit Cloud | App going to sleep | https://discuss.streamlit.io/t/app-going-to-sleep/21113 | I got an email my app is about to go to sleep… and that it’d take a minute or two to wake after sleep.
What does a viewer see if they come to a sleeping app?
If they see a spinner with no explanation, that’s not great.
If they see a nice note about it being warmed up, I’ll feel fine about it. | Hi @Dan_Becker -
The app will show the user a button so they can awaken the app:
docs.streamlit.io
Manage your app - Streamlit Docs 3
Best,
Randy | 1 |
streamlit | Streamlit Cloud | Error while running the application on streamlit_sharing | https://discuss.streamlit.io/t/error-while-running-the-application-on-streamlit-sharing/15225 | I have created a streamlit app that is able to detect the emotions from live video then when shared on cloud platforms receiving some errors and today when I deployed it on streamlit sharing I got the below error. If anyone has some solution to it please let me know. Thanks to you. Source code at Repo 4
[client] Connecting...
2021-07-21 14:22:12.043 Track audio received
2021-07-21 14:22:12.043 Track video received
2021-07-21 14:22:12.043 Add a input video track <aiortc.rtcrtpreceiver.RemoteStreamTrack object at 0x7fbd4f9ebe50> to output track with video_transformer <class 'streamlit_webrtc.transform.AsyncVideoTransformTrack'>
2021-07-21 14:22:12.044 Add the video track with transfomer to <aiortc.rtcpeerconnection.RTCPeerConnection object at 0x7fbd4fa66a30>
2021-07-21 14:22:12.082 Connection(0) Check CandidatePair(('10.12.107.163', 56240) -> ('192.168.68.108', 51094)) State.FROZEN -> State.WAITING
2021-07-21 14:22:12.082 ICE connection state is checking
2021-07-21 14:22:12.082 Connection(0) Check CandidatePair(('10.12.107.163', 56240) -> ('192.168.68.108', 51094)) State.WAITING -> State.IN_PROGRESS
2021-07-21 14:23:15.827 Connection(0) Check CandidatePair(('10.12.107.163', 56240) -> ('192.168.68.108', 51094)) State.IN_PROGRESS -> State.FAILED
2021-07-21 14:23:15.827 Connection(0) ICE failed
2021-07-21 14:23:15.849 ICE connection state is failed
2021-07-21 14:23:15.850 ICE connection state is closed
@whitphx | I am also facing the same issue… If you have resolved it…
Can you please tell me how did you resolve the issue.
Thanks in advance | 0 |
streamlit | Streamlit Cloud | Unable to connect to Streamlit server | https://discuss.streamlit.io/t/unable-to-connect-to-streamlit-server/20959 | My app (https://share.streamlit.io/alalalalaki/econ-paper-search/main/Code/app.py 1) used to work well but now suddenly does not connect to Streamlit server. It says “Failed to process a Websocket message (RangeError: index out of range: 54 + 10 > 54)”.
Update: I reboot the app and it now works again. But I am afraid that this problem will occur again after a while. Can anyone give some response on this?
Also I find a correlated problem is that each time when there is some problem about the app and then fixed, the user would need to clean their cookie to make the app work again. Is there any way to circumvent this?
Update2: This happens again after I update the app. | @Alalalalaki Your streamlit app loaded for me. I didn’t test out the widgets though. Try clearing your cash and reloading your browser and/or restarting your computer. | 0 |
streamlit | Streamlit Cloud | Interactive plots with altair | https://discuss.streamlit.io/t/interactive-plots-with-altair/20812 | Hello,
I am trying to plot a combination of scatter plot and time series, where each time series curve belongs to its corresponding point in the scatter plot. I want to have an interactive plot and I use altair for that purpose. I use exactly the same code that is shared in altair (here: Selection Detail Example — Altair 4.2.0 documentation 3) to create such interactive plot. When I run this code on my local computer, everything works very well. However, when I deploy the code and show it in share.streamlit.io 1, the time series are not synched with the scatterplot anymore. In fact, when all the points are selected, the time series is shown well for all points. However, as soon as I choose one specific point in the scatterplot, the time series disappear totally.
This problem is shown in the attached figures. I appreciate any hints/ comments about this problem.
image865×430 85.1 KB
image851×420 21.8 KB | Hi @mhajizadeh, welcome to the Streamlit community!!
When I run this code on my local computer, everything works very well.
What version of Streamlit are you using? I tried all versions from 0.85.0, 0.86.0, …, to 1.3.1 and wasn’t able to reproduce the behavior where it “works well”. Clicking on any point in the scatterplot, locally and on Streamlit Cloud, causes the time series to disappear.
Strange that the following example works as expected, but not the one you linked: Interactive Scatter Plot and Linked Layered Histogram — Altair 4.2.0 documentation 3
Best,
Snehan | 0 |
streamlit | Streamlit Cloud | ModuleNotFoundError: No module named ‘streamlit.report_thread’ | https://discuss.streamlit.io/t/modulenotfounderror-no-module-named-streamlit-report-thread/20983 | I’m trying to deploy an object detection web app on streamlit cloud but it’s throwing me this error
File “/home/appuser/venv/lib/python3.7/site-packages/streamlit_webrtc/session_info.py”, line 1, in
import streamlit.report_thread as ReportThread
the app runs fine on my local setup
here is the github repo of the project
GitHub
GitHub - adityachache/final-year-project 3
Contribute to adityachache/final-year-project development by creating an account on GitHub.
here is the piece of code from the file which i think throws the error
import pandas as pd
import PIL.Image as Image
import tensorflow as tf
import tensorflow_hub as hub
import cv2
import urllib
import asyncio
import logging
import queue
import threading
import urllib.request
from pathlib import Path
from typing import List, NamedTuple
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal # type: ignore
import av
import matplotlib.pyplot as plt
import numpy as np
import pydub
import streamlit as st
from aiortc.contrib.media import MediaPlayer
from streamlit_webrtc import (
AudioProcessorBase,
RTCConfiguration,
VideoProcessorBase,
WebRtcMode,
webrtc_streamer,
) | Hello @Aditya_Chache, welcome to the community!
We’ve seen the issue appear this morning with the new 1.4.0 release, for now if you are in a hurry you can downgrade back to streamlit==1.3.1.
Do you use any old Session State code or external Streamlit package aside from streamlit-webrtc ? That will help the team diagnose the problem.
PS: wait, I think, @whitphx are you calling streamlit.report_thread in streamlit-webrtc ? I submitted an issue ModuleNotFoundError: No module named 'streamlit.report_thread' on Streamlit 1.4.0 · Issue #598 · whitphx/streamlit-webrtc · GitHub 28
Have a nice day,
Fanilo | 1 |
streamlit | Streamlit Cloud | “RuntimeError: Ninja is required to load C++ extension” BUT Ninja is successfully installed! | https://discuss.streamlit.io/t/runtimeerror-ninja-is-required-to-load-c-extension-but-ninja-is-successfully-installed/20975 | As the title suggest, I get this error when the Streamlit app calls a function which uses a library dependent on PyTorch. However, everything works smoothly locally, and I successfully installed all the dependency on he cloud through a conda environment .yml file, included Ninja (see the following pictures).
The repository I’m trying to deploy can be found here: https://github.com/voidpunk/Trial-AId 1 | Just solved! LOL
SOLUTION:
I just added a packages.txt file with the following dependencies:
ninja-build
build-essential | 1 |
streamlit | Streamlit Cloud | Installer returned a non-zero exit code | https://discuss.streamlit.io/t/installer-returned-a-non-zero-exit-code/15637 | Hi! I’m having trouble debugging this error and installing my packages using my yml file. Note that I have a dlib dependency so I’m currently using the conda installation method.
Screen Shot 2021-08-01 at 5.23.54 PM1912×420 94.2 KB
My github repo 1 | wesleykwong:
ng this error and insta
Hi @wesleykwong welcome to Streamlit!
I had a similar problem with conda. Have a look at this thread Managing your Streamlit dependencies using conda 22
Give it a try with pipenv / pip. | 0 |
streamlit | Streamlit Cloud | Issue with dependencies for poetry lock file and streamlit cloud | https://discuss.streamlit.io/t/issue-with-dependencies-for-poetry-lock-file-and-streamlit-cloud/20936 | I’m having issues deploying my app to streamlit cloud
below I the issue in the logs
The current project's Python requirement (3.7.12) is not compatible with some of the required packages Python requirement:
- numpy requires Python >=3.8, so it will not be satisfied for Python 3.7.12
Because no versions of pandas match >=1.3.3,<1.3.5 || >1.3.5,<2.0.0
and pandas (1.3.5) depends on numpy (>=1.17.3), pandas (>=1.3.3,<2.0.0) requires numpy (>=1.17.3).
Because numpy (1.22.0) requires Python >=3.8
and no versions of numpy match >=1.17.3,<1.22.0 || >1.22.0, numpy is forbidden.
Thus, pandas is forbidden.
So, because yt-comments depends on pandas (^1.3.3), version solving failed.
at ~/.poetry/lib/poetry/puzzle/solver.py:241 in _solve
237│ packages = result.packages
238│ except OverrideNeeded as e:
239│ return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
240│ except SolveFailure as e:
→ 241│ raise SolverProblemError(e)
242│
243│ results = dict(
244│ depth_first_search(
245│ PackageNode(self._package, packages), aggregate_package_nodes
• Check your dependencies Python requirement: The Python requirement can be specified via the `python` or `markers` properties
For numpy, a possible solution would be to set the `python` property to "<empty>"
https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
https://python-poetry.org/docs/dependency-specification/#using-environment-markers
I’ve been trying to solve this for the past hour so any help is greatly appreciated.
Here is the link to my github repo GitHub - benthecoder/yt-comments-mongodb-search | If your packages really require Python 3.8, you can set the package version through the deployment menu:
docs.streamlit.io
Deploy an app - Streamlit Docs 3
Best,
Randy | 1 |
streamlit | Streamlit Cloud | Is it possible to create a button to reset/relaod the whole dashboard | https://discuss.streamlit.io/t/is-it-possible-to-create-a-button-to-reset-relaod-the-whole-dashboard/6615 | i want to create a button to reset the whole dashboard or reload the page. | Hey @spctr01,
Welcome to the Streamlit community!
I think you could do this by using session state, check out an instance of using session state here! 250
You also might be able to use an alternative as posted on the community here! 97
Happy Streamlit-ing!
Marisa | 0 |
streamlit | Streamlit Cloud | Server error [A10]: Unable to create app | https://discuss.streamlit.io/t/server-error-a10-unable-to-create-app/9308 | I am using streamlit sharing. I can not create a new app. The error message is “Server error [A10]: Unable to create app”.
The Github repo is in the link GitHub - Danielmoraisg/internship_study: streamlit app to help study for pharmacy internship 12
Does anyone know how to solve this problem? | We were able to root cause and resolve this issue on our end. Could you please try again? Please let us know if it still does not work for you.
Thanks,
Amey | 1 |
streamlit | Streamlit Cloud | Issue with web scraping deployment | https://discuss.streamlit.io/t/issue-with-web-scraping-deployment/20843 | Hey! This code runs locally, however, when deployed, it is continuously showing “Running Status” with no output generated.
url = "https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY"
headers = {"accept-encoding": "gzip, deflate, br",
"accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
"referer": "https://www.nseindia.com/get-quotes/derivatives?symbol=NIFTY",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36}"
}
response = requests.get(url, headers = headers).text
st.write(response)
Do I need to make any changes to this? This tries to scrap a website and stores the response as text and tries to print it.
It works perfectly locally, but shows a connecting status in log and is continuously running when deployed on streamlit cloud.
Regards,
Pitanjal | Hi @pitanjal -
We see these every once and a while…it could be the case that the API you are trying to access blocks the Google Cloud IP range (which is where Streamlit Cloud is running), and as such, the URL never returns an answer.
Unfortunately, there’s nothing we can suggest at the moment to get around this.
Best,
Randy | 0 |
streamlit | Streamlit Cloud | Query parameters don’t work in streamlit cloud | https://discuss.streamlit.io/t/query-parameters-dont-work-in-streamlit-cloud/20782 | Hi guys,
I am using query parameters to store and share application state.
When developing locally everything seems to work but once deployed to streamlit cloud st.experimental_get_query_params() returns an empty object.
The URL looks like this
Locally:
http://localhost:8501/?a=1&b=2
Streamlit cloud:
https://share.streamlit.io/<username>/<project_name>/?a=1&b=2
There is another forum post 1 about this issue but the explained solution did not work for me and also sounds a bit strange.
Best regards,
Nico | Hi @nflaig, and welcome to the Streamlit community!
Would it be possible for you to share the code to try on our end?
Many thanks,
Charly | 0 |
streamlit | Streamlit Cloud | Showing PDF file on StreamlitSharing that’s in github directory | https://discuss.streamlit.io/t/showing-pdf-file-on-streamlitsharing-thats-in-github-directory/11955 | Hi, i am building an app that does timeseries forecasting and would like to show a pdf instruction file on my about section. The problem is, it isnt showing in streamlit sharing but it is showing when i run it in browser locally. Here is examples and the code i used.
Locally:
image1107×677 83.8 KB
Sharing:
image1395×443 24.4 KB
Code:
if st.checkbox("Show Instructions"):
def show_pdf(file_path):
with open(file_path,"rb") as f:
base64_pdf = base64.b64encode(f.read()).decode('utf-8')
pdf_display = f'<embed src="data:application/pdf;base64,{base64_pdf}" width="700" height="1000" type="application/pdf">'
st.markdown(pdf_display, unsafe_allow_html=True)
st.write(show_pdf("DFCU_Instructions_on_GUI.pdf"))
Possible anyone can tell me why it is showing None? and How i can fix this or have any other method to showcase an instruction pdf file in streamlit sharing, or maybe a download link where they can download the file that is on my public github? | My guess would be that Streamlit starts in a different directory on sharing than you are locally. Meaning, you relative file reference in show_pdf doesn’t exist, so Python shows None
Perhaps you could try using pathlib 11 to programmatically determine where you file actually is?
Best,
Randy | 0 |
streamlit | Streamlit Cloud | Install a package from git that requires a compiler | https://discuss.streamlit.io/t/install-a-package-from-git-that-requires-a-compiler/20511 | Dear all,
Running my app on Streamlit Cloud I want to use a package from git (GitHub - QuantumPhotonicsLab/readPTU: A Python library to read PTU files from PicoQuant 3) that requires a compiler ( ‘gcc’ on Linux, ‘clang’ on macOS or ‘vc’ on Windows).
To install the package readPTU I added a line git+URL in requirments.txt. However when trying to import the package I get the import error :
File “/home/appuser/venv/lib/python3.7/site-packages/readPTU/readPTU.py”, line 33, in from ._readTTTRRecords_HHT2_HH2 import ffi, lib
This file should have been created when running the setup.py of ReadPTU if the right compiler was present.
I’m not sure what to add to packages.txt so that the installation of the package runs fine on the cloud. I tried adding “clang”, “gcc” or “cmakes” but none of those worked. Can you help me figure it out?
Thanks for your help! | I actually found the solution. The issue is that GitHub - QuantumPhotonicsLab/readPTU: A Python library to read PTU files from PicoQuant can’t work when installed through pip install . because the compiled files are writtent in the readPTU folder after the package has been installed in your Python site-packages folder.
I opened a PR 1 to do the compile in a build step prior to the installation of the package, so that the compiled files are included in the final Python package installed on your system. | 1 |
streamlit | Streamlit Cloud | Error during deploying app | https://discuss.streamlit.io/t/error-during-deploying-app/20683 | Why I am getting this error, not sure…
Can anyone help me to understand this? would be a great help… It is working completely fine locally using streamlit.
Thanks you!
error running app1911×903 106 KB | Hi @samachakole
Problem
The error is triggered due to lines 48-50, where you use cv2.imshow() to display images.
Description
OpenCV tries to:
Find an attached display on the “headless” server (Streamlit Cloud)
Open a window on the display to show the image
It fails because the container the app is deployed to is a “headless” server – meaning there’s no video card, no “display” attached. In contrast, the app worked fine locally because you have an attached monitor.
Solution
The solution is to instead use st.image() to display images. Here are the steps to get it working:
Delete your app on Streamlit Cloud
Replace lines 48-50 of drawing_diff_rev1.py with the following:st.image(img1, caption="Actual1")
st.image(img2, caption="Actual2")
Re-deploy your app
Once you follow the above steps, your app should not throw the error when you hit the Get Comparison button.
image1297×1314 165 KB
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | No module named ‘sklearn’ | https://discuss.streamlit.io/t/no-module-named-sklearn/9218 | ModuleNotFoundError: No module named ‘sklearn’
Traceback:
File "/usr/local/lib/python3.7/site-packages/streamlit/script_runner.py", line 332, in _run_script
exec(code, module.__dict__)
File “/app/ml_deploy_using_streamlit/app.py”, line 7, in
classifier = pickle.load(pickle_in) | Hi @ASR373, welcome to the Streamlit community!
To fix the error, include scikit-learn in your requirements.txt 70
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | ModuleNotFoundError and the requeriments are complete | https://discuss.streamlit.io/t/modulenotfounderror-and-the-requeriments-are-complete/20085 | hello I’m making a site that I need to connect to the database but when I upload using git this error appears
imagem_2021-12-15_134307775×330 7.88 KB
I already switched from pyodbc to mysql connector but it still gives the same error on import
both are in my requirements file.
on my localhost it works normally, only when I upload to the cloud does this error occur | this are my imports
image479×706 13.3 KB
and requirements | 0 |
streamlit | Streamlit Cloud | ModuleNotFoundError: psycopg2, the data connection works on local drive, but not on Streamlit Cloud | https://discuss.streamlit.io/t/modulenotfounderror-psycopg2-the-data-connection-works-on-local-drive-but-not-on-streamlit-cloud/20646 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Issue with downloading Text Blob corpora while deploying | https://discuss.streamlit.io/t/issue-with-downloading-text-blob-corpora-while-deploying/20332 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Get user IP address, save in session state | https://discuss.streamlit.io/t/get-user-ip-address-save-in-session-state/20329 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | How to install Java 8 via packages.txt? | https://discuss.streamlit.io/t/how-to-install-java-8-via-packages-txt/18325 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | App is Disconnecting with error | https://discuss.streamlit.io/t/app-is-disconnecting-with-error/20644 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | My component frame v1 not displaying when i deploy my app | https://discuss.streamlit.io/t/my-component-frame-v1-not-displaying-when-i-deploy-my-app/20312 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Blank screen on IOS Devices (streamlit cloud) | https://discuss.streamlit.io/t/blank-screen-on-ios-devices-streamlit-cloud/20575 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Selenium web scraper - ModuleNotFoundError | https://discuss.streamlit.io/t/selenium-web-scraper-modulenotfounderror/20301 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Failing to activate an app using face_recognition | https://discuss.streamlit.io/t/failing-to-activate-an-app-using-face-recognition/20283 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Unable to deploy with tensorflow | https://discuss.streamlit.io/t/unable-to-deploy-with-tensorflow/20393 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Change the url from streamlit | https://discuss.streamlit.io/t/change-the-url-from-streamlit/20397 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Sharing Streamlit App | https://discuss.streamlit.io/t/sharing-streamlit-app/20462 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Issues deploying on streamlit sharing due to wrong python version | https://discuss.streamlit.io/t/issues-deploying-on-streamlit-sharing-due-to-wrong-python-version/20452 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit doesnt connect to mysql | https://discuss.streamlit.io/t/streamlit-doesnt-connect-to-mysql/20372 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Connection time out Error | https://discuss.streamlit.io/t/connection-time-out-error/20199 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Custom domain for Streamlit Sharing | https://discuss.streamlit.io/t/custom-domain-for-streamlit-sharing/8751 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Blank screen on ios devices | https://discuss.streamlit.io/t/blank-screen-on-ios-devices/14360 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Issue with columns when deployed | https://discuss.streamlit.io/t/issue-with-columns-when-deployed/20238 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Expected str, bytes or os.PathLike object, not UploadedFile | https://discuss.streamlit.io/t/expected-str-bytes-or-os-pathlike-object-not-uploadedfile/9032 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Problem with the “random” library? | https://discuss.streamlit.io/t/problem-with-the-random-library/20325 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | OSError: sndfile library not found | https://discuss.streamlit.io/t/oserror-sndfile-library-not-found/12473 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Error deploying app - “Error checking Streamlit healthz” connection refused | https://discuss.streamlit.io/t/error-deploying-app-error-checking-streamlit-healthz-connection-refused/9063 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Over capacity | https://discuss.streamlit.io/t/over-capacity/20103 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Unable to deploy | https://discuss.streamlit.io/t/unable-to-deploy/20241 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | FileNotFoundError pickle file | https://discuss.streamlit.io/t/filenotfounderror-pickle-file/18191 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Inputting secrets in a form in a deployed app | https://discuss.streamlit.io/t/inputting-secrets-in-a-form-in-a-deployed-app/20180 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Deploy in Streamlit cloud with GDAL | https://discuss.streamlit.io/t/deploy-in-streamlit-cloud-with-gdal/20183 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | No module named ‘ta’ | https://discuss.streamlit.io/t/no-module-named-ta/8343 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | FileNotFoundError: [Errno 2] No such file or directory: ‘clean_data\\ener_conso_full.csv’ | https://discuss.streamlit.io/t/filenotfounderror-errno-2-no-such-file-or-directory-clean-data-ener-conso-full-csv/19938 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Connect to MSSQL database | https://discuss.streamlit.io/t/connect-to-mssql-database/20089 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Statsmodel dependency issue | https://discuss.streamlit.io/t/statsmodel-dependency-issue/20042 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Opening an image in Streamlit cloud from Github | https://discuss.streamlit.io/t/opening-an-image-in-streamlit-cloud-from-github/20036 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | “Error: User blocked; Code: 403” page shows up when I try to sign in with GitHub | https://discuss.streamlit.io/t/error-user-blocked-code-403-page-shows-up-when-i-try-to-sign-in-with-github/20066 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Issues deploying streamlit app! | https://discuss.streamlit.io/t/issues-deploying-streamlit-app/19973 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | How can I fix an error installing requirements? | https://discuss.streamlit.io/t/how-can-i-fix-an-error-installing-requirements/19883 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | How to pull and deploy github LFS files? | https://discuss.streamlit.io/t/how-to-pull-and-deploy-github-lfs-files/14149 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Binary file issue | https://discuss.streamlit.io/t/binary-file-issue/20000 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | streamlit.errors.StreamlitAPIException on displaying transposed dataframe | https://discuss.streamlit.io/t/streamlit-errors-streamlitapiexception-on-displaying-transposed-dataframe/19924 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Error in installing requirement (AttributeError: module ‘google.protobuf.descriptor’ has no attribute ‘_internal_create_key’) | https://discuss.streamlit.io/t/error-in-installing-requirement-attributeerror-module-google-protobuf-descriptor-has-no-attribute-internal-create-key/19946 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | It work properly on local server but during deployment it through following error | https://discuss.streamlit.io/t/it-work-properly-on-local-server-but-during-deployment-it-through-following-error/19968 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit cloud IP error | https://discuss.streamlit.io/t/streamlit-cloud-ip-error/18038 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit drag and drop capping at 200MB, need workaround | https://discuss.streamlit.io/t/streamlit-drag-and-drop-capping-at-200mb-need-workaround/19803 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Server error [A10]: Unable to create app Issue | https://discuss.streamlit.io/t/server-error-a10-unable-to-create-app-issue/19881 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Deploying large sized app stuck in the oven | https://discuss.streamlit.io/t/deploying-large-sized-app-stuck-in-the-oven/19891 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | LUX widgets in StreamLit Cloud | https://discuss.streamlit.io/t/lux-widgets-in-streamlit-cloud/19858 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Deployment Error with Streamlit Sharing (fatal: Could not reset index file to revision ‘origin/main’.) | https://discuss.streamlit.io/t/deployment-error-with-streamlit-sharing-fatal-could-not-reset-index-file-to-revision-origin-main/18887 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Unable to deploy app due to matplotlib not | https://discuss.streamlit.io/t/unable-to-deploy-app-due-to-matplotlib-not/19824 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Tried `opencv-python-headless` instead of `opencv-python`: Getting tensorflow error: | https://discuss.streamlit.io/t/tried-opencv-python-headless-instead-of-opencv-python-getting-tensorflow-error/19773 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | How to get each url on different pages in deploying? | https://discuss.streamlit.io/t/how-to-get-each-url-on-different-pages-in-deploying/19638 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Where to place Mapbox token? | https://discuss.streamlit.io/t/where-to-place-mapbox-token/19746 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit server crashes with pandas profiling component | https://discuss.streamlit.io/t/streamlit-server-crashes-with-pandas-profiling-component/19775 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit Cloud Open Ports | https://discuss.streamlit.io/t/streamlit-cloud-open-ports/19745 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Run streamlit app using weigths which is in lfs format in github | https://discuss.streamlit.io/t/run-streamlit-app-using-weigths-which-is-in-lfs-format-in-github/19312 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | No module named ‘en_core_web_sm’ | https://discuss.streamlit.io/t/no-module-named-en-core-web-sm/7003 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Failed to create github deploy key | https://discuss.streamlit.io/t/failed-to-create-github-deploy-key/19686 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Not able deploy my app | https://discuss.streamlit.io/t/not-able-deploy-my-app/19618 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit Cloud : Deployed App crashes without any error after 30-20 minutes | https://discuss.streamlit.io/t/streamlit-cloud-deployed-app-crashes-without-any-error-after-30-20-minutes/19552 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Deploy app stuck issue - keep cloning my repository | https://discuss.streamlit.io/t/deploy-app-stuck-issue-keep-cloning-my-repository/19603 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit App stuck in Oven | https://discuss.streamlit.io/t/streamlit-app-stuck-in-oven/19549 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Deploying App | https://discuss.streamlit.io/t/deploying-app/19574 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit Cloud: app stuck on “Please wait…” | https://discuss.streamlit.io/t/streamlit-cloud-app-stuck-on-please-wait/19536 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Deployment stuck after Initializing Java applet | https://discuss.streamlit.io/t/deployment-stuck-after-initializing-java-applet/19553 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Stuck in deploying my app | https://discuss.streamlit.io/t/stuck-in-deploying-my-app/19542 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Secret environment variable not passed through to app | https://discuss.streamlit.io/t/secret-environment-variable-not-passed-through-to-app/19471 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit Cloud pricing discussion | https://discuss.streamlit.io/t/streamlit-cloud-pricing-discussion/19240 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | ModuleNotFoundError: No module named ‘plotly’ | https://discuss.streamlit.io/t/modulenotfounderror-no-module-named-plotly/9460 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | App crashing even before using it (resources limit) | https://discuss.streamlit.io/t/app-crashing-even-before-using-it-resources-limit/19239 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Downloading a binary file | https://discuss.streamlit.io/t/downloading-a-binary-file/19335 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | …[manager] Streamlit server consistently failed status checks | https://discuss.streamlit.io/t/manager-streamlit-server-consistently-failed-status-checks/11737 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | No matching distribution found for ast | https://discuss.streamlit.io/t/no-matching-distribution-found-for-ast/19296 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Error installing requirements with no explanation | https://discuss.streamlit.io/t/error-installing-requirements-with-no-explanation/19184 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit Cloud | https://discuss.streamlit.io/t/streamlit-cloud/19018 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Error when deploying app on streamlit | https://discuss.streamlit.io/t/error-when-deploying-app-on-streamlit/19177 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Unable to deploy Orange ML model on Streamlit cloud | https://discuss.streamlit.io/t/unable-to-deploy-orange-ml-model-on-streamlit-cloud/18981 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Error while running the app ” [manager] Streamlit server consistently failed status checks [manager] Please fix the errors, push an update to the git repo, or reboot the app.” | https://discuss.streamlit.io/t/error-while-running-the-app-manager-streamlit-server-consistently-failed-status-checks-manager-please-fix-the-errors-push-an-update-to-the-git-repo-or-reboot-the-app/19020 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Module Import Error with Google Cloud Secrets Manager | https://discuss.streamlit.io/t/module-import-error-with-google-cloud-secrets-manager/19070 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Streamlit Cloud uses streamlit old version | https://discuss.streamlit.io/t/streamlit-cloud-uses-streamlit-old-version/19123 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Using fastText with Streamlit Cloud | https://discuss.streamlit.io/t/using-fasttext-with-streamlit-cloud/19097 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Error when deploying public repos stored under Organization | https://discuss.streamlit.io/t/error-when-deploying-public-repos-stored-under-organization/19067 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
streamlit | Streamlit Cloud | Altair charts crash app in new version of streamlit share | https://discuss.streamlit.io/t/altair-charts-crash-app-in-new-version-of-streamlit-share/19094 | Hello
I am trying to connect PostgreSQL on Heroku server using psycopg2, it worked locally on my pc, but after pushed to Streamlit Cloud, it shows ModuleNotFoundError after rebooting. Here is the Traceback
Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/data_test/src/example.py", line 4, in <module>
import psycopg2
ModuleNotFoundError: No module named 'psycopg2'
I have the following two packages in requirements.txt at the top level repo
psycopg2==2.9.3
psycopg2-binary==2.9.3
Wonder if any dependencies are missing? There are a couple of prerequisites in using psycopg2, will this be the cause?
https://www.psycopg.org/docs/install.html#prerequisites 1
Many thanks! | Hi @frances
Streamlit looks at your requirements file’s filename to determine which Python dependency manager to use in the order below. Streamlit will stop and install the first requirements file found.
Filename
Dependency Manager
Documentation
Pipfile
pipenv
docs
environment.yml
conda
docs 1
requirements.txt
pip
docs
pyproject.toml
poetry
docs
What’s happening is that Streamlit parses your Pipfile containing no packages, and exits the installation process – entirely skipping your requirements.txt.
Once you delete the Pipfile from your repo, Streamlit will install the Python dependencies specified in requirements.txt, including the psycog2-binary package.
Source: App dependencies - Streamlit Docs
Happy Streamlit-ing!
Snehan | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.