Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
826 views

I want to upload an .docx document using FastAPI's method (https://fastapi.tiangolo.com/tutorial/request-forms-and-files/), and then pass that file (using bytes) into python-docx's Document. I've ...
Wojciech Ziarnik's user avatar
-2 votes
2 answers
5k views

Can you please assist me adding the python pyodbc layer for 3.11 python runtime version? Earlier, i had the pyodbc layer for 3.7 which i exported from https://github.com/kuharan/Lambda-Layers?source=...
Deepak Bhardwaj's user avatar
1 vote
2 answers
1k views

So I have some code that I was able to execute in Anaconda (for testing) and now I am trying to implement at work where we use VS Code. The script runs almost entirely with the exception of the last ...
Antonio's user avatar
  • 69
2 votes
0 answers
2k views

I have used docker to create a zip package for psycopg2. Below are the commands, pip3 install psycopg2 -t layer/python/lib/python3.11/site-packages/ cd layer zip -r layerpsycopg2.zip * Have uploaded ...
Prash's user avatar
  • 79
0 votes
1 answer
276 views

I'm using Python 3.11 with mypy as my type checker. Here's an example of what I'm trying to do. from dataclasses import dataclass from abc import ABC, abstractmethod from typing import Any, TypeVar, ...
Mobious's user avatar
  • 120
0 votes
2 answers
3k views

iam trying to install pip install Package but my pc is not working anyone can resolve my issue and it showing ######"C:\Users\91703>pip install virtualenv Fatal error in launcher: Unable to ...
Rakesh Samala's user avatar
2 votes
0 answers
301 views

I'm encountering an issue when trying to enable jupyter_nbextensions_configurator on my Jupyter setup. I get the following error message: jupyter_nbextensions_configurator | error adding extension (...
vbfh's user avatar
  • 135
0 votes
0 answers
58 views

I am trying to encode a text using by using indices stored as a list and refer that indices as a value of another list. There is a code: #The part of a code that creates indices for input text ...
Proeliorr's user avatar
0 votes
1 answer
82 views

I'm facing an issue with rendering a Unicode blank symbol in my Django project after upgrading to Python 3.11 and Django 4.1.7. Previously, I was using the following code snippet in my MyForm class: ...
tux007's user avatar
  • 322
-1 votes
1 answer
63 views

Here is the code with the background in the main code. I cannot figure out what is wrong. import pygame import random pygame.init() width, height = 800, 400 win = pygame.display....
Sven's user avatar
  • 9
1 vote
1 answer
96 views

I want to use PEP 634 – Structural Pattern Matching to match an HtmlElement that has a particular attribute. The attributes are accessible through an .attrib attribute that returns an instance of the ...
qyryq's user avatar
  • 390
0 votes
3 answers
1k views

I'm trying for some time to solve this issue and it will be nice if anyone had some similar case.I'm building some program on aws lambda and need to use scikit-learn package. The issue is that this ...
Y.D's user avatar
  • 135
-1 votes
2 answers
97 views

This is what ChatGPT replied after i asked if my code was correct, but this the result I'm getting in Jupyter notebooks Can someone explain what what am I doing wrong and how to correct it?
Sourya Majumder's user avatar
5 votes
1 answer
3k views

I'm facing an issue with my AWS Lambda Layer Stack using AWS SAM (Serverless Application Model). I am encountering a Runtime.ImportModuleError with the following error message: Runtime....
mubtasimfuad's user avatar
-1 votes
1 answer
45 views

This is the current HTML part that I need to get something from. <table class="table table-hover sortable-theme-minimal table-heatmap" data-sortable=""> <thead> <...
Isaac Ormand's user avatar
2 votes
1 answer
3k views

When I try to 'import requests' in my views.py, why is Visual Code Studio throwing this error: import "requests" could not be resolved from source Pylance A screenshot of the configuration ...
user1938887's user avatar
0 votes
1 answer
1k views

I am trying to automate the installation of PaddleOCR using GitHub Actions for my project. The process works smoothly on other Python versions and operating systems. However, I am encountering an ...
Eftal Gezer's user avatar
1 vote
0 answers
107 views

I have my python 3.11 project here: E:/DEV/CUSTOMER/MYPROJECT I have created virtualenv inside my project with PIPENV_VENV_IN_PROJECT so my virtual env is in E:/DEV/CUSTOMER/MYPROJECT/.venv I have ...
jeyzorus's user avatar
  • 125
0 votes
1 answer
509 views

I am facing below error while installing python-snappy on ubuntu. I am using python-snappy==0.6.1 version. This package worked with python3.8 however I am seeing issue with python3.11 version. Running ...
Priya Rani's user avatar
  • 1,203
2 votes
0 answers
261 views

The documentation for typing.Any says Changed in version 3.11: Any can now be used as a base class. This can be useful for avoiding type checker errors with classes that can duck type anywhere or are ...
Daniel Walker's user avatar
5 votes
1 answer
795 views

Upgraded python (using pyenv) to 3.11.4 Upgraded pipenv to 2023.7.23 version. pipenv lock works successfully. However, pipenv install or pipenv sync -d throws errors. File "/Users/kkannar/.pyenv/...
KannarKK's user avatar
  • 1,633
0 votes
1 answer
3k views

in my local test the code is perfectly worked but when i build the docker, after run a docker image, "selenium.common.exceptions.WebDriverException: Message: Service /root/.wdm/drivers/...
HanHyeonBIn's user avatar
0 votes
1 answer
444 views

I have a sample dataset looking like this: "id": 1, "name": "meow", "address": "123 meowmeow St, city, state 12345", "...
LUCY LE's user avatar
0 votes
1 answer
189 views

I am currently working on a Python package. The package can be imported or it can also run from command line with -m switch. Inside the package I am building a dependency injection container using - ...
arpymastro's user avatar
1 vote
1 answer
848 views

I have been trying many solutions: but I cannot import PyPDF2 yet. I got the following error. I have already check if the version is right and it says it is already satisfied. I changed the computer ...
Thet's user avatar
  • 21

1 2 3
4
5
8