October 21, 2024
Chicago 12, Melborne City, USA
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
python

DBSCAN clustering geolocations beyond the epsilon value

I am trying to analyse some job latitude and longitude data. The nature of the jobs means they tend to happen at similar (although not identical) latitude/longitude locations In order to reduce the amount of data points to display and analyse I want to cluster the jobs in similar geographical region together. To do this

Read More
python

Python UltrasSonic Sensor

AJ-SR04M How’s it going. I’m going to try and limit this for simplicity. I am a student studying EE. I have an UltraSonic Sensor connected using USB Serial Port CH340. I have tried to look for a python script that could give the distance but it seems it’s not possible. Any help or guidance is

Read More