question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Runtime error (IronPython)

See original GitHub issue

I get the following runtime error with the demo code provided in the readme:

Runtime error (MissingMemberException): 'NoneType' object has no attribute 'get'
Traceback:
  line 72, in decorate, "pysnooper.py"
  line 59, in get_source_from_frame, "pysnooper\tracer.py"
  line 209, in trace, "pysnooper\tracer.py"
  line 2, in number_to_bits, "<decorator-gen-10>"
  line 20, in script

(line 20 calls the “number_to_bits” function)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
cool-RRcommented, Apr 29, 2019

@runxel could you fetch the path that includes the illegal path? Like put a print statement just before the line that fails?

On Sun, Apr 28, 2019, 23:29 Lucas Becker notifications@github.com wrote:

True, I will just clone it 😃

Thank you very much already for looking into this crude edge cases!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cool-RR/PySnooper/issues/75#issuecomment-487412833, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAN3SU5RR3CKVYEYGL5COTPSYCL5ANCNFSM4HI66E5Q .

0reactions
cool-RRcommented, Apr 30, 2019

Awesome, this was a fun bug 😃

There should also be an open bug on IronPython for raising ValueError, but I’m gonna let the universe handle that one 😄

On Tue, Apr 30, 2019 at 8:36 PM Lucas Becker notifications@github.com wrote:

Closed #75 https://github.com/cool-RR/PySnooper/issues/75.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/cool-RR/PySnooper/issues/75#event-2310211218, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAN3SUZJKVS7YNLSW4JUF3PTB7TLANCNFSM4HI66E5Q .

Read more comments on GitHub >

github_iconTop Results From Across the Web

8. Errors and Exceptions — IronPython 2.7.2b1 documentation
Errors detected during execution are called exceptions and are not unconditionally fatal: ... Handling run-time error: integer division or modulo by zero ......
Read more >
IronPython.Runtime.Exceptions.ImportException - No module ...
Evidently, from my searches, "not expecting type '<type 'bytes'>'" is a result of an incompatibility with the requests module and IronPython.
Read more >
Cannot resolve error "IronPython.Runtime.Exceptions ...
Hello Community, i am trying to create a script to load data from excel into spotfire. MY server currently does not have any...
Read more >
IronPython.Runtime.Exceptions.ImportExceptions: No module ...
NET which sends to call the Software - Autodesk Revit, it happens that when it is starting it sends me the Error 'IronPython.Runtime....
Read more >
IronPython.Runtime.Exceptions.ImportException: No module ...
Trying to import the os.path Python module in Spotfire fails with the error -IronPython.Runtime.Exceptions.ImportException: No module named ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found