Flask python app crashes on heroku

I tried pushing my code directly to Heroku for hosting but I got so many errors. Now, what I did was host the code on Github, and then link the git repo with Heroku. Now, the Heroku app was...

one hot encoding for frequent values only

I am looking to do one hot encoding to a column, but only for those that are very frequent. All that are below a threshold T will be put in their own category. My strategy was to create a...

I can't install Jupyter and Matplotlib in my anaconda env

I have an environment of Anaconda (apart of root) and I'm trying to install this two libraries with no success. I tried: Install libraries by the environment tools of Anaconda Navigator...

How to run a jupyter notebook using a singularity image?

I have built a singularity image (jupyter.sif) that contains the latest anaconda version and I want to use that to run a jupyter notebook. I would like to run something like this: singularity exec...

Jupyter Notebook - Cannot Connect to Kernel

I've tried installing jupyter notebook using pip3 install jupyter. Every time i launch a new jupyter notebook, the notebook is unable to connect to the kernel. See screenshot below Attaching my...

Cuda Runtime Error cudaErrorNoDevice: no CUDA-capable device is detected

I am using Chainer, Cupy for CUDA 8.0 . I am trying to train machine learning model using python3.5 script, but I got this error: cupy.cuda.runtime.CUDARuntimeError: cudaErrorNoDevice: no...

HDF5 library version error - HDF5 ver 1.10.4

I'm trying to import some packages with spyder (OS x64), Anaconda and pyton 3.x The error is pretty famous in the internet. The solution proposed is to match the version of the library 1.10.5 with...

Why does Heroku has to install so many modules every time?

I am developing an app in Django and I am deploying it on Heroku. Why does, with each push, Heroku has to install all these modules? I know there is a way to prevent it from doing it all the...

Can't launch Jupyter Notebook ModuleNotFoundError: No module named 'resource'

I've been using Jupyter Notebook from the command line for a month now, today I didn't shut the running notebook and put my laptop to sleep for 4 hours. After turning my laptop back on I tried to...

Deploy python app to Heroku "Slug Size too large"

I'm trying to deploy a Streamlit app written in python to Heroku. My whole directory is 4.73 MB, where 4.68 MB is my ML model. My requirements.txt looks like...

Facing issue with installation of witwidget (google what-if too) on Windows in Anaconda

I am facing issue with installation of What-If tool. pip install tensorflow completed successfully. pip install witwidget completed successfully. jupyter nbextension install --py --symlink...

How to connect R conda env to jupyter notebook

I am creating conda environment using following code conda create --prefix r_venv_conda r=3.3 r-essentials r-base --y Then I am activating this env by following conda activate...

module 'tensorflow' has no attribute 'Session' cannot resolve

Please please please help me out here! I cannot resolve it! so... my python version is Python 3.5.6 and Anaconda version is Conda 4.8.3. I am working with Jupyter Notebook. I am working in...

Using xbox controller for Jupyter notebook, keep variables assigned to joystick values in the real time

I am using a Jupyter notebook for my project with a Xbox controller to control a robot in real time. import ipywidgets.widgets as widgets is used it works directly assigning them to sliders or...

Error installing jupyterlab/jupyter notebook on MacOS big sur

I'm trying to install jupyter on my mac, but I'm facing errors while installing. The commands used to install: pip install jupyterlab pip install notebook Both give similar errors. I acknowledge...

PyTorch dll issues for Caffe2

I am using a Windows 10 Machine and after re-installing Anaconda and all of the packages I had previously, including torchvision, torch and necessary dependencies, I am still getting this...

Ipython: Autocompletion crashes session ('sys' is not defined)

When I try to use iPython's auto-completion, the session crashes with the following error: Traceback (most recent call last): File...

jupyter nbconvert --to html_toc not working (convert jupyter notebook with table of content to website format)

What I wanted With the nbextension toc, jupyter notebooks have table of content capabilities which is said to be transferable to html via nbconvert --to html_toc function, or via the dropdown...

Error embedding image in jupyter and exporting it to PDF with nbconvert

I have a Jupyter notebook and I am exporting it with nbconvert to PDF. When I do it, if I incorporate images, it gives me an error. I do it with edit -> insert image, and save the image in the...

Error while Installing Packages from requirements.txt in python 3.9

when i run pip install -r requirements.txt i get ERROR: Could not find a version that satisfies the requirement cffi==1.14.0 (from versions: 0.1, 0.2, 0.2.1, 0.3, 0.4, 0.4.1, 0.4.2, 0.5, 0.6,...

Error importing pyarrow in jupyter notebook after pip installation of pyarrow

I am having an issue importing pyarrow into my jupyter notebook. To give some context, I created a virtual environment named rc_env. I've uninstalled and reinstalled pyarrow quite a few times but...

How to install PyCaret in AWS Glue

How can I properly install PyCaret in AWS Glue? Methods I tried: --additional-python-modules and --python-modules-installer-option Python library path easy_install as described in...

ImportError: Could not find the DLL(s) 'msvcp140.dll or msvcp140_1.dll'. Even when the files are located in the %PATH% directory

I receive the following error when importing tensorflow (base) PS C:\Users\Rostyslav\GIt\GNN-GCP> python run_model.py --train --save Traceback (most recent call last): File "run_model.py", line...

Cannot pip install mediapipe on Macos M1

Hello fellows I'm using mac air with M1 chip My env sets like (CV) san  ~/work/python  conda list # packages in environment at /Users/san/miniforge3/envs/CV: # # Name ...

Tensorflow Object Detection Api M1 Macbook Conflict Error

Machine: MacBook Air M1 2020 OS: macOs BigSur 11.4 Python version of venv: Python 3.8.6 Tensorflow version: ATF Apple Tensorflow 0.1a3 Pip version: 21.2.4 I have installed Tensorflow from...

Package streamlit app and run executable on windows

this is my first question on Stackoverflow. I hope my question is clear, otherwise let me know and don't hesitate to ask me more details. I'm trying to package a streamlit app for a personal...

ipykernel (Jupyter notebook/labs) cannot import name ''filefind" from traitlets.utils

I installed Jupyter notebook and labs on and EC2 instance and for some reason I get the following error: ImportError: cannot import name 'filefind' from 'traitlets.utils'...

Poetry 1.1.11 | Unable to find installation candidates for

I wanted to add a dependency for pathlib package. Specification: Windows 10, Visual Studio Code, Ubuntu Bash. Errors: 401 Client Error (solved), Unable to find installation candidates for all...

Python: matplotlib.pyplot.show() is not showing the plot

import matplotlib.pyplot as plt plt.plot([1,2,3]) plt.show() input("Press enter to continue...") If I run the script above within VS Code, or even within command prompt, the plot canvas only...

Getting DLL error when running tensorflow/keras program on python gpu 3.8

I am trying to run my simple AI program but I keep getting this DLL error: ImportError: Could not find the DLL(s) 'msvcp140_1.dll'. TensorFlow requires that these DLLs be installed in a...