All Questions
8,060 questions
-2
votes
0
answers
53
views
.py to .app in mac error: [Errno 17] File exists: [closed]
I am using a Mac and I want to create a .app application for file extraction using Python.
error: [Errno 17] File exists: '/Users/faresmohamedmomen/build/bdist.macosx-10.13-universal2/python3.13-...
0
votes
0
answers
24
views
Complex DataBinding accepts as a data source either an IList or an IListSource. (Parameter 'value')
I'm a hobbyist developer writing Python code scripts inside CAD software (to help design and build RC model aircraft).
I recently upgraded the CAD software I use and in doing so, it upgraded the ...
0
votes
0
answers
13
views
How can we make an element tappable when Appium detects it and reports a successful click, but the action is not reflected in the app?
This issue is observed only on iOS 18 versions:
I'm trying to tap on an element ,which is a Cancel button, but the action is not reflected in the app. Upon checking the logs, I found that Appium ...
0
votes
1
answer
83
views
Xarray.open_dateset uses more than double the size of the file itself
All,
I am opening NetCDF files from Copernicus data center using xarray version 2024-11-0, using open_dataset function as the following:
import xarray as xr
file1=xr.open_dataset("2021-04.nc"...
0
votes
0
answers
24
views
Error in Python 2 script eunning under Python 3 [duplicate]
First of all, let me say this is not my script. I need to install an older .deb package. It evidently uses Python 2, but that is deprecated on the system. I have fixed a number of obvious issues, ...
0
votes
0
answers
98
views
Unable to locate #audio-source element in captcha solver using DrissionPage
I'm working on automating the solving of a reCAPTCHA using Python, pydub, and DrissionPage. I've managed to reach the point where the audio challenge is presented. However, I'm having trouble locating ...
-2
votes
1
answer
51
views
Transpose of a matrix_comp
given a matrix of 3*2 A= [[10,20],[74,25],[340,20]] to get output = [[10,30,-10,20],[74,99,49,25],[340,360,320,20]] where the 1st and 2nd col values will be the 1st and 4th col values and 2nd, 3rd col ...
0
votes
0
answers
96
views
How to make my Telegram bot stop working at 16:15 and not work on Fridays?
I have a Telegram bot written in Python using the Telethon library. The bot is supposed to function from 10:00 to 16:15 from Saturday to Thursday, and it should be completely inactive on Fridays. ...
0
votes
0
answers
73
views
Could not find py4J jar at
I am trying to run my PMML pre-trained model in Python 3.9, but no matter what I do I have this error Could Not find py4j jar at.
None of the solutions provided on the blogs are working. And, even if ...
0
votes
1
answer
79
views
how to conver new key into old in python3 ndb
Here my code
new_key= ndb.Key(urlsafe = request.user_key)
this is written in python3 ndb
this will return us key and we change in urlsafe
key = new_key.urlsafe()
key.decode(encoding="utf-8&...
1
vote
2
answers
59
views
Python Pandas data frame column split based on previous unique columns combination [duplicate]
I have a data frame like below:
TAG TAG_NAME METRIC METRIC_NAME CAPTURE_DATE MB
DB PRO SPACE A 2024-03-01 3
DB PRO SPACE B 2024-03-01 4
DB ...
1
vote
0
answers
42
views
simple python lambda sorting gives different results on different devices
this is my python code for apache hive udf:
#!/usr/bin/python
import sys
counter=0
delay={"carrier":0, "nas":0,"weather":0, "security":0, "late_aircraft&...
1
vote
2
answers
98
views
Large number in python gives infinity
I dealing with data with very large numbers this error appears
for example if I am trying to calculate for example:
import random
import numpy as np
import cmath
import math
import mpmath
from scipy....
1
vote
1
answer
57
views
How do I port python2 code using RSA.importKey().decrypt() to python3?
We have a legacy python2 application that uses an RSA private key to decrypt a base64-encoded file. How do we port this to python3?
Python2.7 code, this does work:
def _unlock_keys(self, ...
-1
votes
1
answer
59
views
python multiple input multiple output
I wrote a program that gets 4 input in a line from user and it's in a loop. My problem is that if in different iterations the user want to give less than 4 input the program accept them and save them ...