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

Questions tagged [python]

Python is a dynamically typed, multi-purpose programming language. It is designed to be quick to learn, understand, and use, and enforces a clean and uniform syntax. Note that Python 2 reached end-of-life on January 1st, 2020. For version-specific Python questions, add the version tag (e.g. [python-3.x] or [python-3.9]). When using a Python variant (e.g. Jython, PyPy) or library (e.g. Pandas, NumPy), please include it in the tags.

python
1 vote
1 answer
84 views
+500

How to use standard tools to package and install a zipped python package of pyc files and a .pth file

I have a Python package which I have zipped using zipfile.PyZipFile, so I now have a .zip containing only .pyc files and sub-packages for a particular version of Python. I can manually place it into ...
Open AI - Opting Out's user avatar
1 vote
0 answers
94 views
+200

Catch-up time-lapse buffering and lag issues while working with FFpyplayer frames and QPixmap with a UDP stream in MPEG-TS format

I am trying to build from the code found in this post for my use case. However, I'm having trouble with python FFpyPlayer; with traditional ffplay, I don't have these kinds of issues. When running my ...
kyrlon's user avatar
  • 1,146
1 vote
0 answers
76 views
+50

How to immediately cancel an Asyncio Task that uses the Ollama Python library to generate an answer?

I'm using Ollama to generate answers from large language models (LLMs) with the Ollama Python API. I want to cancel the response generation by clicking the stop button. The problem is that the task ...
noocoder777's user avatar
0 votes
0 answers
44 views
+50

How to use HuggingFace's run_translation.py script to train a translation from scratch?

I tried various HuggingFace scripts to build language models, such as run_mlm.py (link), run_clm.py (link) and run_translation.py (link). For the former 2 scripts, it can train a language model from ...
Raptor's user avatar
  • 53.6k
0 votes
1 answer
121 views
+50

Module import error for PYTHON_PYLINT when using super-linter/[email protected]

I've been working on getting super-linter within a GitHub Action to accept my recent Python project import for a while now without success. I am using py3langid to detect English language in a pretty ...
PumpkinBreath's user avatar
0 votes
0 answers
59 views
+200

How to read / restore a checkpointed Dataframe - across batches

I need to "checkpoint" certain information during my batch processing with pyspark that are needed in the next batches. For this use case, DataFrame.checkpoint seems to fit. While I found ...
dermoritz's user avatar
  • 12.7k
1 vote
1 answer
114 views
+50

nlst times out while connecting FTPS server with Python

I can login to with Total Commander to server: ftps://publishedprices.co.il username: "XXXX" password empty And with lftp -u XXXX: publishedprices.co.il But when I tried to login and get ...
python3.789's user avatar
0 votes
1 answer
26 views
+50

Sentry Logging python integration - which handler?

So if there are 2 handlers to a logger say ch = logging.StreamHandler(sys.stdout) ch.setLevel(logging.DEBUG) ch.setFormatter(logging.Formatter('%(message)s')) # Logs are ...
Ram's user avatar
  • 339