All Questions
Tagged with python-2.7 python-3.x
9,263 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
1
answer
53
views
Power Automate Desktop - import azure.storage.blob for Python 2.7/3.4
I am trying to perform the import of the azure.storage.blob module into a python script defined within the “Run Python Script” activity of Power Automate Desktop.
# Python 2.7 code
from azure.storage....
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
0
answers
56
views
Runing a script written for python2.7 using subprocess.run in a script written in python3.11
In my company there is a script: install.py that is written in python2.7.
The issue
I'm writing a script to run this script from my own python script which I've written in python3.11.
In the beginning ...
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&...
0
votes
1
answer
34
views
" 'Word2Vec' object has no attribute 'load_parent_word2vec_format' " error
I am trying to run an old code which uses python 2.7, and since it runs on the slow version of Word2Vec I want to update it to Python3 and when I did so I got this error:
'Word2Vec' object has no ...