Issues with Streamlit running locally - deployment

Error on Terminal while running it locally
I am getting this error while running it locally. I have created environment using conda.Python=3.8 and Pycaret =2.3.5
Please help me to resolve it.
I created new enviornment to run it and it still didn't work.

Based on that error message, seems like you don't have pycaret properly installed. Do conda list to see what packages are installed.

Related

DATABRICKS connect 6.4 not able to communicate with server anymore

I am running Pycharm on my MacBook.
Client settings:
Python Interpreter -> Python 3.7 (dtabricks-connect-6.4)
Cluster settings:
Databricks Runtime Version -> 6.4 (includes Apache Spark 2.4.5, Scala 2.11)
It worked well for months but suddenly, without any updates made, I cant run my python script from Pycharm against databricks cluster anymore.
The Error is ...
Caused by: `java.lang.IllegalArgumentException: The cluster is running server version `dbr-6.4` but this client only supports Set(dbr-5.5)....`
I restarted Pycharm, I witched back and for the interpreter, I restarted the cluster and I even restarted my MacBook but it didnt helped. The Error message is simply false, because both, cluster and client are using the SAME version. I can see that when I execute my python script that the cluster is being started but fails at the end.
pyenv activate databricks-connect-6-4
pip freeze
Cython==0.29.21
databricks-connect==6.4.0
numpy==1.19.2
pandas==1.0.1
py4j==0.10.7
pyarrow==0.13.0
pycountry==20.7.3
python-dateutil==2.8.1
pytz==2020.1
six==1.15.0
It looks like that it was caused by some internal changes on the server side, and this prevents databricks-connect from working. You can always disable this check by setting environment variable DEBUG_IGNORE_VERSION_MISMATCH to value 1 (export DEBUG_IGNORE_VERSION_MISMATCH=1 in the console before executing databricks-connect test) - you can also set this environment variable in the PyCharm.
Update: it should be fixed by Databricks Connect 6.4.2 that was just released.
Thanks for raising this. The Databricks-Connect team has acknowledged this issue and we are working on a patch to address this issue. Will keep you posted. In the meantime you can use the DEBUG_IGNORE_VERSION_MISMATCH as Alex pointed out.
Update: A compatible db-connect client has been released to fix this problem: version 6.4.2 (https://pypi.org/project/databricks-connect/6.4.2/, install with: pip install databricks-connect==6.4.2).

Unable to download PostgreSQL - Unknown error while running C:

I'm attempting to install PostgreSQL (10.1) and pgAdmin 4 for an online course I'm taking. Every time I try to run the .exe file for the download I get the following error message:
There has been an error. Unknown error while running C:
\Temp\postgresql_installer_a8b04b6e60\getlocales.exe
I've tried to Run as Admin, I've tried downloaded previous versions of PostgreSQL and nothing seems to work. I've found others who have had the same issue but haven't found a resolution.
Does anyone know how I can install? Thanks.
Before installation, I closed all antivirus and antispy-patch for cryptolocker. Some rules added by protection softwares, blocked install file from running another place and change-read settings. First I installed pgadmin 4 v1.6, then upgrade it to v2.0.
I also using PHPStorm built-in database browser. Faster than pgadmin4.

Postgres/VirtualEnv/Flask

This one may be for the experts!
So here is the problem:
I have a flask app that gets its data from Postgresql and it runs fine in my normal environment. I tried to deploy it locally using virtualenv and after pip installing all the requirements the only one that gave me trouble is psycopg2 which appears to be dependency of Postgresql.
I then used this amazing article to help me install it, by putting export PATH=/Library/PostgreSQL/9.3/bin:$PATH to the .bash_profile file.
But now I get this error:
Library not loaded: libssl.1.0.0.dylib ...Image not found
What is going on?

collectd-how to install write_riemann plugin

I'm new to collectd and Riemann. Im essentially trying to direct collectd logs to a riemann server instance. I understand that I need write_riemann plugin installed. I tried compiling the source files for write_riemann available online, but it includes a file called "riemann.pb-c.h", which is no where to be found. Please help!
Download the binary. After running the build script, while running the configure script include "--enable-write_riemann", this should install it. I had a lot of dependencies missing on CentOS, which threw a lot of errors. Once they were installed, write_riemann plugin was compiled and installed. Another issue you might face while installing the dependency is not able to find the right packages for protobuf-c.I was using yum package installer. Go to sudo vi /etc/yum.repos.d/epel.repo and change enabled from 0 to 1. After this, the protobuf-c processor was recognised while running the configure script. This solved my issue. Hope it does yours too!

Running files-NetworkX is missing

I am working with BooleanNet1.2.7 in Ubuntu and I am trying to run the file "all-initial-states.py", but I am facing problems. I have Python2.7 and I have installed all the other packages needed for such scripts. The problem is that when I run this file it shows an error message " networkx is missing", however I have networkx installed. I don't know how to solve it. Has anyone faced the same problem as me? Thanks!