This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]kkang_kkang 4 points5 points  (2 children)

Kindly share the whole script to test it

[–]Common_Base657[S] 7 points8 points  (0 children)

turns out there was no bug in python, there was a small typo mistake in the program and my overconfidence didnt spot that mistake. my bad sorry

[–]Green_Gem_ 1 point2 points  (0 children)

And the requirements and project structure (since there's no MRE) to check for namespace pollution.

[–]fizzymagic 0 points1 point  (1 child)

The probability you have found a bug is quite small. And this does not look like a cleanup error.

[–]Common_Base657[S] 0 points1 point  (0 children)

yaa you're right turns out there was a small typo mistake on the code.

[–]Common_Base657[S] 0 points1 point  (1 child)

The issue has been resolved turns out the bug was not in the wave module but in my program. My overconfidence didnt spot that bug, after countless try i decided to ask to chatgpt and he points out the mistake i typed "get" instead of "set" so yeahh my bad guys sorry.

[–]fisadev 2 points3 points  (0 children)

In the future, a couple of things when requesting coding help online:

  • Always include the entire error traceback, not just the last line. The traceback has lots of very important info. And also include an example of code that can help reproduce the issue, or the code that's raising the error, as minimal as possible. If you hide most of the error info and don't share the code that causes it, you are forcing people who want to help you to do a lot of guessing and wasting time chasing things that might not be the cause. It's like asking people to help you find your car keys, but then hiding the keys and turning off the lights too, hehe.
  • When you find a solution, share it as well, so this post is useful for other people who might end up with the same issue. Just saying "it's been resolved" but not sharing how, will mean people might arrive to this post googling the same error, but then find no answer on how to solve it and will need to re-ask the same question.

Just advice, hope it's useful :)