Quantcast
Channel: Active questions tagged python - Stack Overflow
Browsing all 13921 articles
Browse latest View live
↧

Check-password insecure issue in ccs-pykerberos library

Is there any workaround for fixing the following issue or any alternative to the kerberos library?The python-kerberos checkPassword() method is badly insecure. It does a kinit (AS-REQ) to ask a KDC for...

View Article


How do I run python files on TI-nspire CX II

idk how to run the files only how to upload themI used n-link to upload the python file onto the calculatori tried opening from the file browser but it says "This document format is not supported....

View Article


The button appears to be overlapped when clicked

here is my python script along with kv file at the endfrom kivymd.app import MDAppfrom kivy.uix.screenmanager import ScreenManager, Screenfrom kivy.lang.builder import Builderclass Homepage(Screen):...

View Article

How to send and receive queries with a custom gql transport

My question is closely related to the following topic. The difference is that I want to send and receive queries instead of subscribing.Basically, I want to send the following:GET /?hash=3510361693...

View Article

Utilizing FedEx Track API to capture Tracking Status results in Status 422 -...

I see there are a few questions/answers on this particular error. However, none are in relationship to the FedEx Track API specifically. I'm attempting to iterate a list of tracking numbers through...

View Article


AWS Lambda subprocess module not found error

Good afternoon,I have been setting up some code for extracting text with fitz library (PyMuPDF).Module has been correctly installed via lambda layer and it is working as expected, but when i try to use...

View Article

Gunicorn with sync workers and async endpoint [duplicate]

When we create a gunicorn using 2 workers and concurrently hit 20 requests then up to certain time requests are executed on different workers but then the requests start executing on the same worker...

View Article

AttributeError: module 'numpy' has no attribute 'long'

I am trying to find 9 raise to power 19 using numpy.I am using numpy 1.24.3This is the code I am trying:import numpy as npnp.long(9**19)This is the error I am getting:AttributeError: module 'numpy' has...

View Article


Is there a way to print out colorized/highlighted text in cmd using python?

I tried to colorized my text in cmd using the code below, but it does not.`def highlight(colour, text): if colour == "black": return "\033[1;40m" + str(text) +"\033[1;m" if colour == "red": return...

View Article


Perform lookup in tensorflow map

I have a TF Dataset with the following schema:tf_features = {'searched_destination_id': tf.io.FixedLenFeature([], tf.int64, default_value=0),'booked_acc_id': tf.io.FixedLenFeature([], dtype=tf.int64,...

View Article

how to check how many times retry function called in python

I'm using a retry decorator to run the test case if failed. So, want to know how many times the retry function called def retry(tries=3, delay=10): def decorator(func): @wraps(func) def...

View Article

pandas: how to read html and casting all fields to string

If I import this HTML filepd_df = pd.read_html('./output.html')pd_df[0]the last field becomes a float, but it's a string (in example from 05269 to 5269.0). I know I can apply pd_df =...

View Article

split dataframe into several tables depending on condition

I am trying to split a huge dataframe into several tables but depending on conditionsimport pandas as...

View Article


Generate permutations in python without recursivity or libraries

I'm trying to do a brute-force-like algorithm for printing all the permutation of an array. There's a function that sorts the array, another function generates the permutations, then the permutation...

View Article

Image may be NSFW.
Clik here to view.

Add the value of value_counts on each point of a scatter plot

I'm looking for adding the value of pollution['Energie'].value_counts() to each corresponding point on a scatterplot, but it doesn't work, can you help me please?the dataset is about pollution emission...

View Article


How to split values in column and make a new dataframe in pandas [duplicate]

I have a pandas dataframe in pythonColA ColBA hg_gh | fg_tr | yu_jhdA hg_dh | fg_fr B hg_th | fg_er | yu_jkdC hg_zh | fg_qrIs there a way to split it and make a new column like belowBasically split all...

View Article

Image may be NSFW.
Clik here to view.

Python:how to convert the bytestring to a numeric value

The byte string I read from the ExtensionObject node on the opcua server side is how do I convert it to a decimal, this is the result of parsing one of the bytestrings according to the struct module in...

View Article


no module named 'dotenv' python 3.8

EDIT: Solved, if anyone comes across this python3.8 -m pip install python-dotenv worked for me. I've tried reinstalling both dotenv and python-dotenv but I'm still getting the same error. I do have the...

View Article

Python tkinter: Class for a scrollable frame, the widget inside the...

I wrote the folliwing class (reading some examples on the web), it works almost perfectly, except for the fact that the widgets placed inside the scrollable Frame (child of Frame) does not expand when...

View Article

ImportError: libGL.so.1: cannot open shared object file: No such file or...

I am trying to run cv2, but when I try to import it, I get the following error:ImportError: libGL.so.1: cannot open shared object file: No such file or directoryThe suggested solution online is...

View Article
Browsing all 13921 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>