Matplotlib building on docker

I have an application in Python that I want to create a docker image for. The application works fine on my PC but when I create a docker image I get this warning: UserWarning: Matplotlib is...

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...

Editing floating textbox using python-docx or editing document.xml?

I'm editing a docx template that contains a bunch of floating images and textboxes. I'm trying to edit these text boxes through python-docx or directly editing the document.xml. However, it seems...

ERROR: You must give at least one requirement to install -- when running: pip install --upgrade --no-binary hdbscan

I am trying to install hdbscan in my PC which runs Windows 10 and has installed Python 3.6. My first attempt failed: (base) C:\WINDOWS\system32>pip install hdbscan --user Collecting hdbscan ...

No module named 'matplotlib.artist'

I faced with this error No module named 'matplotlib.artist' here is the complete error: --------------------------------------------------------------------------- ModuleNotFoundError ...

"'For' is a reserved keyword." error in robot framework (RIDE tool)

Im unable to run the FOR keyword in robot framework, as im getting an error "'For' is a reserved keyword" My script is as below: *** Test Cases *** forloop method 1 FOR ${i} IN RANGE ...

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...

Python-telegram-bot issue

I have deployed a telegram bot (with Django) on Heroku with python version 3.6.9 It worked well without any issues. After months I did some changes and while trying to deploy it again I get...

error H13 on heroku on an dash application

import requests from bs4 import BeautifulSoup import pandas as pd import dash import dash_core_components as dcc import dash_html_components as html import...

Python app built by PyInstaller crashes when exit button is clicked

I'm using the codes below in a run.py file from PySimpleGUI cookbook for the GUI of my Python app. The GUI works normally when I started the run.py file from PyCharms. However, when I build this...

Why was camelot not found even if camelot is already on my computer?

Here is the code where I am trying to import camelot: import camelot as cl Here is the response: ModuleNotFoundError Traceback (most recent call...

AttributeError: module 'django.db.models' has no attribute 'JSONField'

Following Django 3.1 guidelines for JSONField for all supported database...

How to activate virtual envirooment for existing django project using pipenv in python 3.8

I developed a Django webapp project using Django 2.2.1 in python 3.7.2 in a pipenv version 2018.11.26 virtual environment in MacBook Air. After an unintentional update to python 3.8 using brew...

ModuleNotFoundError: No module named 'openpyxl'

I am trying to download openpyxl 2.6.2 specifically because that's the version that this book uses for its Excel automation examples. My current python version in Ubuntu is 3.8.5, though I have...

Django error 'URLs with hostname components are not permitted'

I have deployed a django application which invokes a python file to send captured data on django form to a third party independent server. The problem is that when the python file is invoked from...

Unmarshaling XML in go with xsdgen

I am trying to parse an xml file with golang. I've used xsdgen to generate the struct part I cannot parse the file with xml.Unmarshal(byteValue, &data) I expected the program to print :...

Trouble installing turbodbc

I am attempting to install turbodbc on my Ubuntu 20.10 machine. My specs are as follows: pip 20.2.4, Python 3.8.5 , gcc (Ubuntu 10.2.0-13ubuntu1) 10.2.0 I have attempted the solutions provided in...

Boto3 in Lambda function - RequestsDependencyWarning

I'm trying to upload a file to s3 from lambda function. from openpyxl import load_workbook from openpyxl.styles import PatternFill, Color import requests from io import BytesIO import os import...

Invalid requirement

I converted the requirements of my project into a txt file with the method below. pip freeze > requirements.txt And I tried to load the generated txt file with the code below to test it, but I...

fail install pandas in python in docker

I've been trying to get a docker file running for three days now, but keep failing to install pandas. Here you can see my Dockerfile: # pull official base image FROM python:3.6.5-alpine # set...

Error when running executable generated by pyinstaller [pyvisa-py]

I'm trying to build an executable from a simple python script using pyvisa-py but I'm running into error after I run the executable generated by pyinstaller. Here what my small python code looks...

This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93

ChromeDriver is giving an error about its version being too low: This version of ChromeDriver only supports Chrome version 87 Current browser version is 90.0.4430.93. I've updated pip's packages...

ImportError: Missing optional dependency 'openpyxl' still doesn't work after instllation

ubuntu 18.04, python3.8 and using pycharm. Interpreter path in pychamr is correctly set. while trying to read specific sheet in excel, using openpyxl it keeps on giving me...

How to correctly install PyICU on Heroku?

I am trying to deploy my Python app on Heroku, but have been unsuccessful. It seems that a problem is occurring with the PyICU package, which I'm unsure how to correct. I've confirmed that this is...

Sudden Tensorflow / Keras Google Colab dependency problems `AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute '__internal__'`

I have running a machine learning model (Matterport's Mask R-CNN) in google colab for a couple of weeks. All of a sudden today I am unable to run any of my notebooks due to I think some kind of...

django admin site nav sidebar messed up

I recently added a package to my project and did a pip freeze > requirements.txt afterwards. I then did pip install -r requirements.txt to my local and it added a sidebar. I did a pip install -r...

Building wheel for cffi (setup.py) ... error while installing the packages from requirements.txt in django

I am trying to install a new Django project from git, I created a new virtual envt using python3(version: 3.8.5). When I try to install the required libraries in the requirements.txt, I get the...

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...

Docker Image > 1GB in size from python:3.8.3-alpine

I'm pretty new to docker and, although I've read lots of articles, tutorials and watched YouTube videos, I'm still finding that my image size is in excess of 1 GB when the alpine image for Python...

pathlib: cannot import name 'Sequence' from 'collections'

It has been a few days since I rebuilt my project but when I was testing some things this morning I wanted to update my Werkzeug package due to an issue I was having with its Multidict class, I...