Questions tagged [python-3.8]
This tag is for issues that are specific to Python 3.8. For general questions use the more generic [python] and [python-3.x] tags.
python-3.8
2,304
questions
0
votes
0
answers
47
views
Why does process.communicate cause my program to be killed?
I'm running some code for a program in python, and when I run c++ I need to handle standard input for my it, such as scanf and cin. I am running the compiled c++ program using subprocess.Popen. I ...
0
votes
0
answers
18
views
Pycharm unable to recognize clr.AddReference()
Issue:
I need to use the AddReference() function from the clr module that is included in the pythonnet library. The clr module is located in a file called clr.pyd
Upon importing the clr module, ...
1
vote
1
answer
175
views
Can't fix "ModuleNotFoundError: No module named 'setuptools.extern.six'"
I've been trying to test out a colony counter code I found on GitHub that could be of use. However, the windows that generates when i run the code aren't the same as the ones that are demonstrated in ...
0
votes
0
answers
12
views
Why does Python time out when importing a file?
I'm attempting to use motor driver software on the Jetson Nano. I have been successful previously with this tutorial, but now when I ssh into the Jetson Nano, navigate to the jetson/jetson directory, ...
0
votes
0
answers
24
views
+50
Unable to install ploty-resampler==0.8.1
I am facing this typical error while installing ploty-resampler==0.8.1 from a downloaded whl file in a server with RHEL 8.9 OS.
I am firing the following command:
pip3 install -v plotly-resampler==0.8....
0
votes
0
answers
26
views
How to Implement POST Method for Unifi Controller API in Grafana Using Infinity Data Source?
Question:
I've successfully implemented the GET method of the Unifi Controller API in Grafana using the Infinity data source. However, I'm facing difficulties with using the POST method.
Here is my ...
1
vote
0
answers
14
views
How to pass attribute from html tag to python action file?
I have created custom connector and call webhook API using jquery to pass that attribute in action file of rasa.
-> Here is my code of index.html
<html>
<body>
<div id="rasa-...
0
votes
0
answers
37
views
Docker Airflow - ModuleNotFoundError: No module named 'playwright'
I have installed Docker and Docker Compose, and I'm setting up Airflow on my VM using Docker. I followed this guide: Running Airflow on Google Compute Engine (GCE) from Scratch.
Everything was ...
0
votes
1
answer
143
views
Unable to install or udpate any libraries ModuleNotFoundError: No module named 'apt_pkg'
I'm using Ubuntu 22.04.4 LTS. When I try to install or update any package getting the below error
$ node --version
Traceback (most recent call last):
File "/usr/lib/command-not-found", ...
0
votes
2
answers
56
views
How to mock psycopg2.connect when used with closing of contextlib module?
I have following class Database with get_data method. It uses 'closing' of 'contextlib' module to close the connection.
class Database:
def __init__(self) -> None:
self.db_details = {&...
0
votes
0
answers
102
views
pip install M2Crypto error: No module named 'swig'
I'm trying to install M2Crypto package but I get this error: ModuleNotFoundError: No module named 'swig'
I don't understand because swig is installed according to the M2Crypto prerequisites https://...
0
votes
0
answers
34
views
facing error: no module pycaret.utils.generic while executing pycaret.classification import *
PyCaret is having lots of issue. python 3.8 support PyCaret versions. I am using PyCaret 2.3.6.
It is compatible with numpy version lesser than 1.20 . I am using PyCaret 2.3.6. and Numpy 1.19.5 in ...
0
votes
0
answers
35
views
Failure from isort because it's been told to skip a file
Running isort as a plug-in under poetry, poe and pytest, a task fails because it detects an in-file command to skip the file, which I would have thought would instruct isort to, you know, skip the ...
0
votes
0
answers
21
views
Whats most pythonic way to create objects for aws s3 lambda
I have this lambda handler
def lambda_handler(event, context):
args = json.loads(event['data'][0]['body'])
batch = args['batch']
execute_ecg_batch(batch)
The execute_ecg_batch batch ...
0
votes
0
answers
31
views
SMTP disconnected Error occured in Django
So i've been working on a repo of a project for some time now in an effort to learn and get familiar with Django. In the project, once a student register's onto the site, it's supposed to send a ...