Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
traceback
- Page 1
Re: Cannot run exe from asp.net
Programming
Web Development
2 Months Ago
by lennyli
… output the error: C:\Users\maxwi>python client.py
Traceback
(most recent call last): File "C:\Users\maxwi\client…
traceback errors issue?
Programming
Software Development
15 Years Ago
by Simes
… was working before and now I am getting these three
traceback
errors:
Traceback
(most recent call last): File "G:\GuessingGame.py…
Re: traceback errors issue?
Programming
Software Development
15 Years Ago
by Simes
After some more playing around, I resolved that it was the scores.txt file that was causing the
traceback
errors. When it only has the original data, then it works fine, but when saving new scores to it that is when it causes the
traceback
error to happen.
traceback error
Programming
Software Development
12 Years Ago
by LincyDaniel
…have included the entire source. I am getting the
traceback
error. import os import sys import fileinput import …works/home/'+name+'/' os.system(rsync) else: pass **Error:**
Traceback
(most recent call last): ** IDLE Internal Exception: File "…
traceback error?
Programming
Software Development
18 Years Ago
by mruane
i get this error when trying to run my program.
Traceback
(most recent call last): File "C:\Python24\secretgarden.pyw", line 12, in -toplevel- denaystart() File "C:\Python24\secretgarden.pyw", line 7, in denaystart prompt_login() NameError: global name 'prompt_login' is not defined
Re: traceback error?
Programming
Software Development
18 Years Ago
by Zonr_0
A
traceback
error is simply a diagnostitic tool to see where something …
traceback problem
Programming
Software Development
9 Years Ago
by ray.shahil95
…(result) get_class_average(['alice']) ''' In above code it shows following errors:
Traceback
(most recent call last): File "python", line 57…
Traceback TypeError: 'int' object does not support item assignment
Programming
Software Development
7 Years Ago
by Otto_1
… could have multiple entries for the period. tia otto <
Traceback
(most recent call last): File "Forum-Code.py"…
Re: Traceback Issues
Programming
Software Development
15 Years Ago
by TheManual
…=vegaseat;1054379]What does the trace-back look like?[/QUOTE]
Traceback
(most recent call last): File "c43.py", line…
Logging Traceback to file
Programming
Software Development
13 Years Ago
by RMWChaos
… however, despite reading several tutorials and the
traceback
docs from python.org, and creating a …[CODE] # test.py import sys import
traceback
import logging import logging.handlers class AppLogger: &…def handleError (self, record): """
Traceback
emit() """ with open(LOGFILE, …
Re: Logging Traceback to file
Programming
Software Development
13 Years Ago
by RMWChaos
…, that was intentional in order to force a
traceback
. Trying to get that
traceback
to output into the logfile rather than to…
Re: traceback errors issue?
Programming
Software Development
15 Years Ago
by Simes
So how do I revert this code back to having no functions, classes, methods, etc. As I have being told that having the definitions are not allowed, although it only states I cannot define my own functions and should be able to use in-built functions. I originally got 9 out of 10 for it with functions.
Re: traceback errors issue?
Programming
Software Development
15 Years Ago
by TrustyTony
You put function inside method by adding to def line as first parameter self and by calling it with self.func() instead of func(). I do not see in assignment that you must not write functions, they should only be used inside class.
Re: traceback errors issue?
Programming
Software Development
15 Years Ago
by Simes
[QUOTE]You are to plan and code a number guessing game, as described by the information and sample output below. Use what you have learned in class, [B][U]but do not define any of your own functions[/U][/B].[/QUOTE] That is an excerpt from the outline, although I read it as, I can use any in-built functions that are with python by default. So the …
Re: traceback error
Programming
Software Development
12 Years Ago
by snippsat
`name = sys.argv[1]` means that you most give argument from Command-line. `run.py something` if you dont give argument from Commad-line you get `IndexError: list index out of range` Read about `sys.argv` Your code is messy. else: pass else: pass else: pass This is not good at all.
Re: traceback error
Programming
Software Development
11 Years Ago
by james.lu.75491856
You don't need `else:pass`
Re: traceback error?
Programming
Software Development
18 Years Ago
by DarkFlash
Please post the whole script
Re: traceback error?
Programming
Software Development
18 Years Ago
by mruane
okay, i think I figured out <i>where</i> the problem is, but still can't seem to get it right. So I have included the whole source with comments almost everywhere to explain why I did what and what I was thinking. I guess most of the issue lies within denaystart(), but I can't seem to find the bug. I would appreciate any help or advice.…
Re: traceback error?
Programming
Software Development
18 Years Ago
by vegaseat
Define/create all your functions before you call [INLINECODE]denaystart()[/INLINECODE], which starts your program. Functions are called with the parenthesis, even if they are empty. The way you have written your code right now [INLINECODE]denaystart()[/INLINECODE] is called, and therefore [INLINECODE]prompt_login()[/INLINECODE], before […
Re: traceback problem
Programming
Software Development
9 Years Ago
by Gribouillis
hi! `get_class_average()` takes a list of students, not a list of strings. Use get_class_average([alice])
Re: traceback problem
Programming
Software Development
9 Years Ago
by ray.shahil95
still there is one error. "Oops, try again. get_class_average([alice]) returned 85.6875 instead of 91.15 as expected"
Re: traceback problem
Programming
Software Development
9 Years Ago
by Gribouillis
Well, are sure it is `0.1 * homework + 0.3 * quizzes + 0.6 * tests` ?
Re: traceback problem
Programming
Software Development
9 Years Ago
by ray.shahil95
absolutely..
Re: traceback problem
Programming
Software Development
9 Years Ago
by Gribouillis
First a little test: >>> def av(L): ... return float(sum(L))/len(L) ... >>> 0.1 * av([100, 92, 98, 100]) + 0.3 * av([82, 83, 91]) + 0.6 *av([89, 97]) 91.14999999999999 This shows that 91.15 is the correct answer. Now running your code gives 91.15 (replace the last statement with `print(…
Re: traceback problem
Programming
Software Development
9 Years Ago
by ray.shahil95
Ok i got it. Thank you for support.
Re: Traceback TypeError: 'int' object does not support item assignment
Programming
Software Development
7 Years Ago
by ryantroop
tcol1 = 0 tcol1[mm] = col1 + amt You can't set a member of 0 to a value. You are essentially saying 0[mm] = col1 + amt;
Email problem
Programming
Software Development
11 Years Ago
by james.lu.75491856
…My code is here: #!/usr/bin/env python import smtplib,
traceback
from email.mime.multipart import MIMEMultipart from email.mime.text…as_string()) except: print "Unknown Error:" print
traceback
.format_exc()#.lstrip("
Traceback
(most recent call last):\n") #temporarily turn …
Internal pygame error
Programming
Software Development
11 Years Ago
by james.lu.75491856
…] = 0 AttributeError: 'Pea' object has no attribute '_Sprite__g' import pygame,
traceback
width = 480 height = 640 pygame.init() pygame.mixer.init() pygame….damage pygame.display.flip() print"In loop!" except:
traceback
.print_exc() pygame.time.delay(9999)
"unbound method" error
Programming
Software Development
16 Years Ago
by iLikeSunshine
Traceback
(most recent call last): File "...\Hello Python\src\main\…
TypeError: unhashable type: 'list'
Programming
Software Development
12 Years Ago
by james.lu.75491856
Traceback
(most recent call last): File "C:/python files/USACO/…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC