October 22, 2024
Chicago 12, Melborne City, USA
python

Subprocess throwing error to run a command

I am tring to write a test case where i download a file(PCAP) file, then i save it with name test1.pcap then i want it to be validated via tshark cli tool, "tshark -r {} -Y http".format(filename) `` its says ``` OSError(2, 'No such file or directory') however the file exists when i check it

Read More
python

Create an AI learning assistant to help students with dyslexia to improve their learning ability

The AI assistant should use machine learning to create analogies to assist students with dyslexia understand educational matters using fields of their best interests. It should have a great UI that is appealing to the student. Before providing answers the AI should prompt the user the fields that they understand in order to make analogies

Read More
python

Link defect to a test execution via API in Python

I was trying to create a Python script which can update test execution status and link defect in Zephyr. However, the script can change the test execution status but cannot link defect. This is my code snippet. def read_and_update_from_excel(file_path): user_input = pd.read_excel(file_path, sheet_name="Sheet1") lookup = pd.read_excel(file_path, sheet_name="Lookup Value") # Create a mapping of status text

Read More
python

ROS2 launch error when installing my package

I tested both foxy and humble on Ubuntu 20.04, 22.04 and got the same error. When I build my package and type the source command, source /home/ws/ros2_ws/install/setup.bash, I get the following error. ERROR $> ros2 launch Failed to load entry point 'launch': No module named 'launch.launch_description_sources' Traceback (most recent call last): File "/opt/ros/foxy/bin/ros2", line 11,

Read More
python

cv2 pytesseract python image to text/digits

I am trying to make computer vision with game cards to "extract" information from it. I did a simple python script and the text was extracted quite efficiently with pytesseract however a few information does not come especially "health point" of the card. For instance that image : https://biggerhat.net/storage/cards/combos/9e4bacf8692cb.jpg I am supposed to extract 12

Read More
python

Is there any way to write a screensaver for macOS (.saver file) using Python Pygame?

I want to be able to write a cross-platform screensaver that works on both Windows and macOS using the Pygame 2D graphics library in Python. On Windows, this is super easy – you just write your program with three possible command line arguments: /p for preview mode, /c for the configuration dialog mode, and /s

Read More
python

NBA_API: Is there a way to store player gamelogs in relation to the starting lineup?

I’ve tried compiling all players’ gamelogs from a certain team lets say the Celtics from the last 2 seasons into a dataframe. Then making a subset of this dataframe which returns the players’ gamelogs when a specified starting lineup played. I’ve played around with a few different approaches and still not working. I was wondering

Read More
python

I don't know what the problem is please help me

Note: I’m new to python I was trying to build a ping pong game and I wrote that code to create the screen and 2 rackets but when I run the code, it opens a window with just one racket(racket2) and types error please help methis is the code this is the error msg You

Read More
python

How can I restore multiple .bak files using databricks?

I’m trying to restore multiple .bak files however using the RESTORE command but does not recognize the usage of URL option the error states ProgrammingError: ('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]'URL' is not a recognized RESTORE option. (155) (SQLExecDirectW)") is there a way I can recover multiple .bak files or a work

Read More
python

How can I read or save the images list from the clipboard by typing ctrl+C in website?(python)

Sending request is also banned by website,so I change a way to spider the images in the website. I use ctrl+c to copy the content and then I can use ctrl+v to the office word software,the images is filled in it,it work!I think it also can be read or saved by python. I have tried

Read More