Skip to main content
The 2024 Developer Survey results are live! See the results

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
-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,...
user181925's user avatar
-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 . ...
Ben K's user avatar
  • 7
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 ...
cch's user avatar
  • 1
-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. ...
Fox_field's user avatar
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&...
Ajay dev's user avatar
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 ...
milaniez's user avatar
  • 1,101
-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 ...
UndoingTech's user avatar
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&...
ty9000's user avatar
  • 3
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 ...
malik alfutaisy's user avatar
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(...
Will Brandow's user avatar
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/...
ALTAF HUSSAIN's user avatar
-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,...
mehak's user avatar
  • 1
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-...
scottstots's user avatar
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 /...
TAPAC's user avatar
  • 1
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 ...
DesertBroncoFan's user avatar

15 30 50 per page
1
3 4
5
6 7
22903