All Questions
Tagged with python python-2.7
62,987 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
1
answer
28
views
How to read metadata information from a file using SMB Protocol?
I need to determine the last modification date of a file obtained via the SMB Protocol. I am using a machine running RHEL 7.5, Python 2.7.5, and SMB Protocol version 1.5.1.
I tried the following, but ...
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 ...
-1
votes
3
answers
72
views
can't install pillow neither packtools in Python 2.7.17
I mark articles for SciELO and I need to use Python 2.7.X to work with it, but when i try to install pillow, packtools and lxml the cmd points to "Could not find a version that satisfies 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
54
views
Can you make a class variable that calls an instance of the class?
I am working with a class which does some math and stores the result, and then a line that sets a "noresult" to that class but initiated with zeroes, like so (I'm leaving out the math, this ...
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
1
answer
170
views
cqlsh returns "ModuleNotFoundError: No module named 'six.moves'"
I have already installed "six" 1.7.2 in python 2.7.18 with pip, but i receive an error message anyway.
seva@seva-HLYL-WXX9:~$ python --version
Python 2.7.18
seva@seva-HLYL-WXX9:~$ pip ...
0
votes
1
answer
56
views
Python - Django - Encoding UTF-8
I have a problem with text encoding.
The context: I'm working on a django 1.11, python 3.6 app (it started in python 2.7 and django < 1.11 and was upgraded later).
I have to use an API that doesn't ...
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, ...
-1
votes
1
answer
72
views
Why would a simple input statement cause a runtime error? (Work@tech IDE) NZEC error
Since replit has started charging for collaborative IDE's i've been trying to explore good alternatives.
I am experiencing NZEC error when trying to run a simple program such as:
answer = ""
...
1
vote
0
answers
47
views
ImportError when unpickling an object in Python 2.7
I have a pickled object of MyCustomClass. It is pickled using Python 2.7.8 builtin pickle module:
# mymodule.py
import pickle
class MyCustomClass:
def __init__(self):
attr1 = None
def ...
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 ...
0
votes
0
answers
78
views
Is there a way to capture Event from focused Text widget before it gets to widget
QUESTION:
Is there a better way to do this? Can I hijack the Event before it reaches the focused Text widget? Or is emulating the behavior I want the best I can do?
PROBLEM:
Using Python 2.7 Tkinter....
1
vote
0
answers
75
views
opcua python2.7 -- Writing to OPC UA server using .set_values(nodes, values)
I'd like to write multiple nodes to the OPC UA server. Therefore I use the .set_values() method of the opcua lib. I've to use the opcua lib in cause of python version 2.7.
Using the .set_values() ...