Category "python"

ModuleNotFoundError: No module named 'hcaptcha'

I am trying to execute a code of mine, but i keep getting the following error: ModuleNotFoundError: No module named 'hcaptcha' When I try installing 'hcaptcha

unable to run pydoc from the command line - "command not found: pydoc"

I'm reading the "Learn Python the Hard Way" and the now the author is saying to run, in the terminal, pydoc input. I do this and get the response:miguel@MBP-de-

Remove all bytes after null byte (\x00) [duplicate]

I have a python client that receives a string from a C server. I always receive a 6 byte string, in C everything after the '\0' byte is junk,

how do I send a file via bluetooth with python?

I am need some help with the development of a script that sends a txt file to the device that is connected to my pc (Bluetooth) I am using linux in this case an

displaying data of table from database using python

I am newbie to python ,trying with simple programs given below is a program which i tried to get the data from table and displaying it. Installed Python3.4 and

I'm getting the right answer but for some reason its outputting my user inputs as well I'm confused as to why

The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (source): Calories = (

Python Pandas. How to extract single column from downloaded yahoo_fin option chain data?

What is the proper way to extract a single column from downloaded option_chain from yahoo_fin? My code for EXXON MOBILE option chains: from yahoo_fin import opt

Location of Spyder window layout file

I installed spyder via sudo pip3 install spyder on both Ubuntu and Arch, since the pacakage-managed version was not as recent as I'd like. The only issue I've n

Apache beam FixedWindow doesn't do anything after GroupByKey transform

I built a pipeline which reads from confluent kafka it processes the records and then use side outputs to split them into rejected and approved pcollections, th

passing function variables to another file python

I need to pass data_connection into my main.py engine because that variable is where the data from mysql string is being stored. In main.py it says parameter da

Scraping the rating of some reviews as pictures

I am trying to scrape the rating of some movie reviews but the rating is not a number, but it is one of 10 different images that range from showing empty stars

Django - Form not saving when submitted

Good afternoon all, One of my form does not seem to save when submitted. I cannot see why, in particular as I have a similar form working just fine using the sa

Сommand tox -r doesn't deploy venv python in project

I have some project, that on my local pc by windows correct work. When I copy this project through gitlab on server, I don't see some folders. So, tox -r comman

pycord says "TypeError: object TextChannel can't be used in 'await' expression"

I use Pycord, and when I use channel = bot.get_channel(975050208264200242) with await channel.send(embed = embed2) to send message it says me TypeError: object

How does a fernet key work and how to store it safely (Python)?

I am experimenting with Fernet from Cryptography module in Python and encountered certain heavy terms I was not able to understand, despite clear and good docum

how to swicth to a metamask pop up in chrome with a python selenium script

i am on rarible.com minting a nft with metamask i go threw the hole process then in the chrome browser a metamask pop up appears to click confirm the transactio

Check all members custom status instead of just my custom status

How could I change this command to check the custom status of all the members in the server instead of just checking the custom status of the person that wrote

Python-pptx, find special text and replace with image

I'm trying to replace text in PowerPoint slides with an image. For example, if I find <graph1> I would like to replace that text with the picture "picture

(Python) Fill the column by webscraping the data on the website. Getting an error: UnicodeError: label empty or too long

I have a dataset that looks like this: ID Link 1 'https://wwwexamplecom/hello/details-5565558html' 2 'https://wwwexamplecom/hello/details-5489292html' 3 'https

Change object data type to float data type

I read the .cvs file, which dataframe is named "df". But because I want to focus in one row I renamed my dataframe to "br". My problem is that I'm trying to con