Adding streamlit to anaconda leads to Segmentation Fault:11 - python

I'd like to run streamlit locally. I have anaconda on my MacOS (runnning el capitan) and I attempted to add streamlit by following the instructions found here:
https://docs.streamlit.io/en/stable/troubleshooting/clean-install.html#install-streamlit-on-macos-linux
I get no errors on the install. When I run
streamlit hello
I get a segmentation fault (Segmentation fault: 11). I cant't attach the full error output as it goes over the 30K character limit.
P.S: Thank you for your advice. This is the first of what I hope are many posts contributing to the community. I've been a lurker for a while and benefited from the previous answers posted here. I've asked around for help with this issue and it might be something new. In any case I appreciate your aid on solving this problem, as streamlit does in fact seem pretty lit (I'm a begginer and it is a great starting point).

Related

Python uninstaller doesn't actually delete anything

I'm new to stack overflow and I just started learning programming (python).
There has been a problem for the past few months that stops me from uninstalling version 3.10.7 of python.
Basically when going to the .exe python setup program (python-3.10.7-amd64) and clicking uninstall it says that the process is done without actually doing anything and without the uninstall bar filling.
I tried various things I found on the internet or in some forums but I couldn't solve the problem and the python.org support wasn't much help either.
Feel free to ask for more details in case you need it.

Error while running exe after generating via autopytoexe

I got error of "config.py is missing " when I run the exe which was generated with the help of auto-py-to-exe package. Please help me in this regard. Actually I am working on face swapping project by using opencv and python. I am new developer and I am also new to stack overflow. Your help will be valuable for me. I spent weeks to solve this problem. If you need any type of clarification I will provide about the project.

Corrupt JPEG data: 20 extraneous bytes before marker 0xdb OpenCV with macOS Mojave

I am developing a simple app in python 3.7, using face_recognition. Unfortunately a new error started popping up:
"Corrupt JPEG data: 20 extraneous bytes before marker 0xdb"
The full example which I followed in my code is available here
I did research, including:
this,
this,
this, and many others. Restarting the system did nothing, nor did reinstallation of open-cv, and installation of opencv-contrib-python.
As far as I know it's connected to my computer architecture (this seems to only pop up on 64-bit machines), but no one covered that issue for macOS Mojave, and solutions covered in links I attached above don't work for me.
I narrowed it down to the following line, which throws the error. It used to work well, now something changed. No changes were made in code, though. It just started acting out:
facial_recognition(face_recognition.load_image_file('img.jpeg'))
Any ideas?
EDIT: I solved it. It was actually a completely different problem. When you're using pyCharm please remember to close all tabs that are currently running this code in your console. This occurs when you're trying to access the same image file, and modify it at the same time.

python flask in VS Code dont stop at breakpoint

i walk through this tutorial:
https://code.visualstudio.com/docs/python/tutorial-flask
I use windows 10 and a python 3.7.64bit in virtualenv for training.
Problem: The breakpoint remains ignored...
I already changed the the json settings like mentioned in the tutorial. Also i tried some different solutions i've found, like:
https://stackoverflow.com/a/42911885/10514935
May somebody have the same issue and found a working solution?
Regards

Can't publish using Visual studio 2017 (community version)

I have a small project with python finished and ready to publish (transforming everything into one executable); but, when I disposed to do so, I realized that the "publish" button was disabled. I tried looking explanations in the internet, but didn't get anything. Then, I searched for a publish alternative, but the ones I found seemed to be overcomplicated and untrusty.
Because of that, now I come here to ask for your knowledge/help on this matter that troubles me.
I stay tuned to your answers and wish you a great day :)
Update: tried with PyInstaller and cx_freeze. PyInstaller gives me the:
RecursionError: maximum recursion depth exceeded
And cx_freeze creates everything, but, when I run the executable, it closes inmediatly (and yes, I tried adding an input("promt...") at the end, without success).
By chance, you will not know how to solve any of these problems? :/
I finally solved it. I used pyintaller (cx_freeze didn't work), but in the .spec added this at the start:
import sys
sys.setrecursionlimit(5000)
And in the Analysis added:
hiddenimports=['sklearn.neighbors',
'sklearn.neighbors.typedefs',
'sklearn.neighbors.quad_tree',
'sklearn.utils.sparsetools._graph_validation',
'sklearn.utils.sparsetools._graph_tools',
'sklearn.utils.lgamma',
'sklearn.utils.weight_vector',
'sklearn.utils.fixes',
'sklearn.tree._utils',
'sklearn.utils.extmath',
'sklearn.metrics.ranking']
Hope it helps someone so they don't lose all day searching for the solution like I did :P

Categories