341,166 questions
3
votes
0
answers
46
views
Teams OAuthPrompt Inconsistent Behavior – Sometimes Works Without Magic Code, Sometimes Returns CancelledByUser and Requires Manual Code
I am facing inconsistent behavior with OAuth login in my Microsoft Teams bot (Python, OAuthPrompt).
Working Case
User clicks Sign In.
User enters email and password.
Login completes successfully.
...
0
votes
0
answers
16
views
Difference in Measuring Latency of (torch.)Multiprocessing.Queue
I'm writing a program that requires transferring GPU tensors across processes in a pipeline manner.
I knew that using torch.Multiprocessing would automatically get the CudaIpcMemHandle for me and send ...
Advice
2
votes
3
replies
105
views
I am learning the Python programming language
I am a complete beginner in programming and need advice on where to start learning the Python programming language.
1. Where to find information
2. What to pay attention to
Starting from scratch so ...
0
votes
1
answer
59
views
CompositeVideoClip Error - Python 3.14 - moviepy 2.2.1
I am trying to run a simple moviepy (version 2.2.1) example where I'm cutting a video into clips to edit the clips individually, but running into issues by simply cutting into clips and rejoining them:...
0
votes
0
answers
31
views
Member permissions must be used when using member as author - LinkedIn API
I'm trying to get the posts in from my personal LinkedIn account and I generated a token using linkedin developer token tools after I created an app. the app has Community Management API product ...
Best practices
0
votes
0
replies
34
views
APScheduler job still executes after pause_job() and creates duplicate resume jobs
I am using APScheduler (BackgroundScheduler) to run a job every 10 seconds.
Additionally, I pause the job every 2 minutes and resume it after some time.
However, I am facing two issues:
1. Job ...
-2
votes
0
answers
84
views
Python uses pyxtxt.xtxt (filename) with special characters from the Brazilian Portuguese language (ç, á, é, à, í)
I need to use pyxtxt.xtxt (filename) to read the contents of some files, and everything works fine when the filename doesn't contain special characters from the Brazilian Portuguese language (ç, á, é, ...
0
votes
0
answers
61
views
Why does self.close() sometimes skip closeEvent event handler in PyQt6?
this is a fairly involved question that i've been struggling with for too long, so posting here.
The background
I am part of a team developing a multi-window application using PyQt6. There is one ...
0
votes
3
answers
151
views
Strange Pylance error on simple Appium-Python-Client setup
I have a basic project with python 3.13.2 and Appium-Python-Client 5.2.6
python analysis typeCheckingMode is set to standard in vscode config
I created a single file with this code :
from appium ...
0
votes
0
answers
25
views
Python virtualenv with sync
I use python with virtual environments on manjaro linux.
I install the package python-virtualenvwrapper, then I added
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/...
Advice
2
votes
3
replies
67
views
Why can't I use Iterable as a type for overloading a singledispatchmethod?
Why can't I use the typing.Iterable class to overload a singledispatch method? It works for other generi classes such as numbers.Number.
For instance the following minimal code will raise a TypeError ...
1
vote
0
answers
35
views
BeautifulSoup reorders HTML tag attributes alphabetically - how to preserve original order? [duplicate]
When I read an HTML file with BeautifulSoup and save it, the attributes inside tags get reordered alphabetically. For example:
<!-- Original -->
<meta http-equiv=Content-Type content="...
Tooling
1
vote
2
replies
76
views
Segmentation of Connected Component Based on Known Primitive Template
(This is my first time posting, so feedback is welcome!)
I am working on a depth-based Vision system where I need to detect packages of a single type in such a way that I retreive:
Their center in ...
Advice
0
votes
0
replies
17
views
Using Chromedriver bin vs Chromedriver.exe
I have always used chromedriver.exe in my python/selenium web scrapers.
s = Service('C:/Users/Michael/source/repos/chromedriver.exe')
driver = webdriver.Chrome(service=s)
now I'm wanting to get a ...
Advice
1
vote
2
replies
63
views
What does it mean that Pytorch's torch.mul is "unbound"?
Running help(torch.Tensor.mul) gives:
Help on method_descriptor:
mul(...) unbound torch._C.TensorBase method
mul(value) -> Tensor
See :func:`torch.mul`.
What does unbound mean in this ...