Questions tagged [python-3.x]
DO NOT USE UNLESS YOUR QUESTION IS FOR PYTHON 3 ONLY. Always use alongside the standard [python] tag.
python-3.x
343,543
questions
-1
votes
0
answers
10
views
KeyError: 'img_prefix' while running mmfewshot
I am using a custom COCO-type dataset. The classes and everything are updated, and in my log file, it can pick up my dataset and divide it according to the N-way K-shot specs I defined. But at the end,...
-1
votes
0
answers
38
views
Why from . import Python [duplicate]
A repository I work with has a structure as follows:
├── myrepo
│ ├── src
│ ├── main.py
│ └── core.py
├── somepkg
│ ├── __init__.py
│ └── other files
In main.py, I see:
from . ...
0
votes
0
answers
16
views
python3 project issue with pipelines
i would like to find some help with my project with a experimented developer in python and this is the detail of the issue.
im programming and modified a application in python3 with gtk3 and ...
-1
votes
0
answers
19
views
Issue of exporting bar charts to excel by openpyxl
After exporting bar charts to excel by openpyxl, there is always an issue as shown when opening the excel files. But after clicking "Yes" to repair, the charts are correct with no issue. ...
0
votes
0
answers
34
views
Issue: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
An issue occurred after installing a package named "camelot-py". When I run a boto3 script there occurred an AttributeError: module 'lib' has no attribute. I have upgraded "pyopenssl&...
1
vote
0
answers
30
views
Python multiprocessing.connection.Connection not behaving according to specifications
According to python specifications, recv() method of python Connection, (returned from multiprocessing.Pipe(), throws an EOFError when pipe is empty and the other end of the pipe is closed. (Here is ...
-1
votes
1
answer
36
views
Why does Sqlalchemy cleanup query results if query is not in constructor? [closed]
I've created a class Result that takes an sqlalchemy statement, stores the statement, executes the statement, and stores the execution results.
If the statement is executed directly in __init__(), the ...
0
votes
1
answer
22
views
Python - Better way to run external methods with similar, but different, names?
Currently in my project, I have some code like this in a method, where param1 and param2 are guaranteed to be the same for every function call:
def run_funct(self):
if self.my_type == "a&...
0
votes
1
answer
37
views
The python requests module , how to check if a page using the 'POST' method or 'GET' method
How to use the Python "requests" module to check if the page is using the "GET" method or the "POST" method.
I expect output to be True or False, or GET or Post.
Expected ...
0
votes
0
answers
28
views
Python (Pebble) - Timeout Functionality. Getting the value passed to the function from the iterable when TimeoutError occurs
I'm attempting to set up a worker timeout in Pebble (which basically works)
from pebble import ProcessPool
from multiprocessing import Process, Pool, cpu_count
import time
def test_fn(...
1
vote
1
answer
61
views
Extract URL from Google News Rss feed
I had a code that was extracting a Google Rss URL, but that is not working. It looks like Google has changed the encoding of the URL.
Example URL:
"https://news.google.com/rss/articles/...
-7
votes
0
answers
33
views
forming a reverse function in python [duplicate]
so I have been trying to find out how can I reverse a given array
input :
y = []
x = [1 , 2, 3, 4, 5, 6 ]
for i in x :
j = x[-1]
j -= x[-1]
y.append(j)
print(y)
output :
\[0, 0, 0, 0, 0,...
0
votes
0
answers
159
views
ModuleNotFoundError: No module named 'paramiko.auth_strategy' while using fab2 python
I'm trying to execute a python task using fab. I've installed fab2 for python3 and trying to use it to run the task in a venv. Unfortunately using fab2 keeps giving me this error:
(venv) My-MacBook-...
0
votes
0
answers
16
views
Administrator functions in aiogram
Greetings, dear ones. First, I will introduce you to the essence of the bot's work.
There is an administrator (one telegram id), and he should receive notifications about ordinary users who write /...
0
votes
0
answers
8
views
How to call Power Point macro function from python without win32com
I'm currently working on a python program (I'm new to python) that modifies a Power Point template that is for official releases. Unfortunately after my program finishes, I need to run the macro.
My ...