I wish to install some python2.7 packages (such as pip, opencv and matplotlib) on Debian 10 without internet connection. I tried by downloading .tar.gz files of the same package I want to install from another PC, but I can’t install them on Debian. With the standard command sudo apt-get install python-opencv it tries to go ..
I am creating a Fast API app with endpoints that typically call other external APIs. Some of these APIs will use OAuth2, so rather than get the access token for every external API request, I intend to get the access token on startup and use it for all requests. In the below simplified example, calling ..
In need to install heatmap with pip install heatmap on command line and I am getting this error: Does anyone has the same issue?? WARNING: Discarding https://files.pythonhosted.org/packages/3f/9c/61ca0669c834a9a5a45375449fed0c719943beaf0d41bd2132d14cc0a285/heatmap-2.2.tar.gz#sha256=914d281f2c3456defebc835d061f2cd23b55038c19cad27823d43a59cabee118 (from https://pypi.org/simple/heatmap/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the ..
Is there an in built functionality in the python logging module that transforms its output text? im currently logging data that can contain hexadecimal or non ascii characters that are not properly displayed when i log the output to a file. my current solution so to transform the text before i put it into the ..
I want to convert a string to a list. fName = input("Enter your First Name: n") lName = input("Enter your Last Name: n") location = input("Enter your Location: n") string = fName + " " + lName + " " + location print(string) print("String coverted to list :",string.split()) # Output : String coverted to list ..
Have a issue in reading CSV file. I am a new-bee, so an updated code with explanation/ guidance will be nice. Thanks in advance! When I try to read from the CSV file, it cannot read. Please HELP! Attention required at —->>>>>>>. def reading_in #Frontend ## Code block to import information import sys import backend ..
I need guidance on what to do from here. I have a csv file of only one column but with 39 rows. I’ll like to loop through every row, and use the value of each row(text) in a loop for an api response. lastly i’ll write the responses to a csv file. I have written ..
I’m finding the number of permutations of the lexicographically smallest string. For example, bbaa now the lexicographically smallest string is aabb So, the permutations are, (1,2,3,4), (2,1,3,4), (1,2,4,3), (2,1,4,3) which is 4. My idea for it (in python) was to find the smallest string (basically sort it into a string) and then, creating a counter ..
I have a dataframe with two columns set up as follows: index X Y 1 Part A Part B 2 Part A Part C 3 Part B Part E 4 Part C Part F What I have is a string/list/dataframe (can make it whatever I want) variable ‘target’ containing ‘Part B’ and ‘Part C’. I ..
I wrote a statusbar for Sway WM (https://swaywm.org), basically print every second some information (loadavg, cpu usage, memory usage, time, …). The project (https://gitlab.com/Yellowhat/statusbar) is purely to learn about CI/CD and how to measure performance (if possible in a noisy environment). Initially the project was all written in python but some time ago I decided ..