Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
174 views

Python 3.12.2, IPython 9.7.0, linux debian. When an error is found in a .py file, the traceback in ipython does not show the right code snippet, making debugging very difficult. This depends on past ...
scrx2's user avatar
  • 2,312
1 vote
3 answers
117 views

I have a decorator in the root of a package that should log out information about unexpected exceptions. from logging import getLogger from os.path import basename from traceback import extract_tb ...
ludovico's user avatar
0 votes
1 answer
86 views

I have a Python file open in Visual Studio Code, and I run the file in the integrated terminal. When it hits a problem in my code (problems? in MY code???!), Python gives me the usual Traceback, ...
Mike Maxwell's user avatar
0 votes
1 answer
97 views

I am getting a traceback most recent call last from a iteraction between dakota and python. I need to give a csv file for python and dakota read, but when i start running it shows the the error ...
Erich Stuhr's user avatar
-1 votes
1 answer
4k views

(trapped) error reading bcrypt version Traceback (most recent call last): File "C:\\Users\\User\\Desktop\\lazare\\api practice\\venv\\Lib\\site-packages\\passlib\\handlers\\bcrypt.py", line ...
Lazare Janiashvili's user avatar
2 votes
1 answer
127 views

I want to print to PyCharm's console clickable links to my project's files with line numbers. Almost the same thing works when exception stack is printed with traceback.format_exc(): import traceback ...
pav's user avatar
  • 139
3 votes
1 answer
568 views

I obfuscated my Python script using PyArmor and then compiled it into a binary executable using Nuitka. However, when I try to run the .exe file, I receive the following error: Traceback (most recent ...
Jean Jay's user avatar
0 votes
0 answers
52 views

I am writing an R package, and when I run R CMD check, I get an error with an unhelpful incomplete traceback like: Error in .foreachGlobals$info(.foreachGlobals$data, "workers") : ...
Ryan C. Thompson's user avatar
1 vote
1 answer
136 views

I am working on providing an environment for running users' untrusted python code. I use the python bindings of libseccomp library to avoid triggering unsafe system calls, and the service is running ...
Chengyuan Zhang's user avatar
0 votes
1 answer
178 views

I'm working on a Python application where I need to gracefully handle exceptions and log useful information for debugging purposes. Specifically, I want to catch exceptions that occur during runtime, ...
AkshatTm's user avatar
2 votes
4 answers
304 views

I have a script for doing test readouts that worked fine with Python 3.9 but now we upgraded to Python 3.12 we have those carets that break the script. So the easiest way would be disabling it. Is ...
claudius's user avatar
  • 1,015
4 votes
1 answer
229 views

It used to be possible to get an informative traceback when rendering R Markdown non-interactively, where the traceback would only show function calls for code within the R Markdown notebook, as long ...
Kelly Sovacool's user avatar
0 votes
1 answer
676 views

I'm trying to run tests in python files that have been built on the back of the Cairo programming language. But, when I run python3 -m pytest /test_name.py I get the following traceback error. It ...
R2D2's user avatar
  • 71
1 vote
1 answer
82 views

I'm trying to make a library for python and I want to add custom exceptions, but every time I raise an exception, the exception shows my raise as the problem. For example: Traceback (most recent call ...
user avatar
0 votes
1 answer
128 views

I had launched my programm, but it gave me a traceback that says: "line 9: is not terminated with newline". I don't see a mistake. Can someone explain it to me? init: #Название мода ...
MrNeon777's user avatar
2 votes
1 answer
195 views

When I run a recursive function and it exceeds the recursion depth limit, the below error is displayed: Python 3.12.4+ (heads/3.12:99bc8589f0, Jul 27 2024, 11:20:07) [GCC 12.2.0] on linux Type "...
Amir reza Riahi's user avatar
0 votes
2 answers
68 views

I can't write a loop in selenium python, I'm trying to make a bot that it'll write a descripton of products. The loop was worked successfully for the first product but when comes second product it ...
Deniz Yalmanbaş's user avatar
1 vote
1 answer
60 views

I support Django 4.0 project and notice that even though DEBUG=False, all errors return with tracebacks. I've commented all extras in settings.py, but still receive the traceback. All variebles are ...
Natalia Kirillova's user avatar
3 votes
1 answer
73 views

I am debugging some complicated legacy Python3 code and find myself needing to know, at a particular point in the executing code, all the try blocks that are active in the call stack. Is there a way ...
IronPillow2's user avatar
1 vote
4 answers
2k views

The problem can be summarised in this example: import asyncio import traceback async def func_c(): print("func c") traceback.print_stack() async def func_b(): print("func ...
James Partington's user avatar
0 votes
1 answer
52 views

I'm working on a Python program where I need to log all exceptions (with custom logger on clickhouse), including their context, to aid in debugging. Instead of simply logging the final function that ...
Miky Mike's user avatar
2 votes
0 answers
27 views

When I have an error in a Python script, the traceback output references a number of "core" python files. Example: Traceback (most recent call last): File ~\App\Anaconda3\Lib\site-packages\...
jshibby's user avatar
  • 97
0 votes
0 answers
24 views

import yadisk import os from datetime import datetime y = yadisk.YaDisk(token="TOKEN") def run(path): date = datetime.strftime(datetime.now(), "%d.%m.%Y-%H.%M.%S") y....
Amir Samatov's user avatar
1 vote
1 answer
668 views

A bit confused by whether this is a standard attribute. The doc string says it does exist. In [1]: import sys In [2]: sys.last_traceback ---------------------------------------------------------------...
episodeyang's user avatar
-1 votes
1 answer
4k views

I am making a voice assistant in Python. I just create its first function but I am having same traceback error again and again. can anyone tell me what mistake I am making here? this is what i created ...
muteeb's user avatar
  • 1
0 votes
0 answers
60 views

When a method makes a call to several callees within itself, is there a way to use the inspect module to get or log the immediate callees of the called method? I tried using inspect.getouterframes() ...
John Doe's user avatar
0 votes
1 answer
45 views

when my process double free, I get some print, I wonder those info print by who ? if I donot need it, can I close the print? // g++ hel.cpp #include <iostream> int main() { int *p = new int;...
ryryss's user avatar
  • 1
0 votes
1 answer
65 views

I am writing an automatic program which I wish to run through errors and gather information. With my current setup I get the following example logging for one loop instance: 2024-03-21 10:14:44,843 - ...
Niandra Lades's user avatar
0 votes
2 answers
768 views

When launching neural network training, I get this error: NotImplementedError Traceback (most recent call last) Cell In[1], line 5 1 from ultralytics import YOLO 3 ...
beccapana's user avatar
0 votes
0 answers
27 views

having a bit of trouble with some code here and I'm not sure what I'm doing wrong. I created my first plot using a dataframe and wrote the code like this (it accurately produced the plot I needed): ...
Jakob's user avatar
  • 1
2 votes
1 answer
158 views

Former title: "TypeError: PageObject.extract_text() got an unexpected keyword argument 'visitor_text'" Trying to follow PyPDF Documentation's example here on using a visitor to extract text. ...
Michael Bujard's user avatar
1 vote
1 answer
114 views

The code in question: print('s') y=1/0 In which I understand the error perfectly (it's just division by zero), causes, when ran (while on PyCharm, by pressing shift+f10, the normal way) either the ...
Santropedro's user avatar
2 votes
0 answers
89 views

#include <cstdio> #include <execinfo.h> #include <csignal> #include <cstdlib> #include <unistd.h> #include "stacktrace.h" //// TRACEBACK TEST void ...
obayhan's user avatar
  • 1,752
0 votes
1 answer
37 views

I don't know anything about JSON files and I'm trying to use a loop with an if structure in python to modify some values ​​in it. I thought it would be an easy task but as I don't know anything about ...
Gabriel Miguel's user avatar
0 votes
1 answer
65 views

enter image description here File "/usr/local/lib/python3.9/dist-packages/torch/optim/optimizer.py", line 23, in from typing_extensions import ParamSpec, Self, TypeAlias ImportError: cannot ...
Raul Tabirara's user avatar
1 vote
1 answer
225 views

I have nested python exceptions. I wan't to extract all of them into a list from a traceback while discarding everything else, i.e. files, code lines, etc. The code below extracts everything from a ...
Superbman's user avatar
  • 861
0 votes
0 answers
122 views

I'm a French beginner developer. Recently I've been thinking about making a Discord Bot in Python. So I watched a few videos but no matter how much I copied what they were doing, I kept getting errors ...
Yasuo ousaY's user avatar
1 vote
1 answer
658 views

I am new in programming thing, I just start it yesterday maybe its very basic I want to import coolProp to input Cp and Cv value, but when i type: import CoolProp.CoolProp as CP it shows following ...
Swang Syur Zi's user avatar
0 votes
0 answers
36 views

Traceback (most recent call last): File "C:\\Users\\49152\\PycharmProjects\\pythonProject\\main.py", line 4, in \<module\> import panda as pd File "C:\\Users\\49152\\...
Oskar Scholz's user avatar
1 vote
1 answer
180 views

I am writing Python code that takes in a .csv file and uses the data in it to create graphs. I am using numpy.loadtxt to accomplish this. The beginning of my code is as follows: import numpy infile = ...
ksquirrel's user avatar
0 votes
0 answers
69 views

I have a small class in geometry.py: class Pyramid(): def __init__(self, sign, name): if len(sign.split(".")) != 2: raise ValueError("pyramid must have 1 apex ...
JACOBnotpro's user avatar
0 votes
1 answer
383 views

Whenever I get an error in my Tkinter application, I would like to get a full stack trace of where the error occurred, through all of the functions the program is currently in. Before my root window ...
mwolfe 11's user avatar
  • 181
2 votes
0 answers
116 views

Here is an example: def f(x): if x == 0: raise ValueError("Input is zero") return print(f(0)) which results in Traceback (most recent call last): File "..\file.py&...
Raymond's user avatar
  • 183
2 votes
1 answer
706 views

I have a ubuntu server and am trying to run a website using python w/ flask Running Python 3.11.4 I run the command: python app.py Expected behavior: It should execute the without error. I get the ...
Pyro's user avatar
  • 29
0 votes
0 answers
31 views

from deepface import DeepFace # Provide the correct path to your image file img_path = "happy_face_woman.png" # Analyze the face in the image face_analysis = DeepFace.analyze(img_path=...
Nick White's user avatar
0 votes
0 answers
24 views

run a demo code to test the python & flask, the code show as below:enter image description here the error message is : enter image description here check the pycharm si 2022.2.3; python is 3.10 ...
孙鹏辉's user avatar
0 votes
1 answer
371 views

When I run a vscode notebook cell or a python file with these contents: def foo(): return 4/0 # This will cause a division by zero exception foo() I get the following error traceback which is ...
canonball's user avatar
  • 515
1 vote
0 answers
119 views

I'm attempting to debug a bug I reported on snakemake. The exception being raised is a WorkflowError. It would really be helpful if I could see a full traceback for the exception, but the error ...
hepcat72's user avatar
  • 1,225
0 votes
0 answers
36 views

My code is this: import pandas as pd import datetime from ics import Calendar, Event for i in range(1, 365+1): c = Calendar() e = Event() e.name = i startdate = pd.Timestamp("08/...
Bengt's user avatar
  • 1
2 votes
0 answers
58 views

I'm currently writing decorators to cache results on disk. I would like that f(x) gives the same result whether f(x) has already been stored or not, even when f(x) raises an exception. i.e loading the ...
Serker's user avatar
  • 41

1
2 3 4 5
16