Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError module.endswith #1

Closed
MarcRoigCampos opened this issue Oct 14, 2020 · 2 comments
Closed

AssertionError module.endswith #1

MarcRoigCampos opened this issue Oct 14, 2020 · 2 comments

Comments

@MarcRoigCampos
Copy link

MarcRoigCampos commented Oct 14, 2020

Executing python file as python script.py works fine. But if I try to do python ./script.py it gives the following error

Error in sys.excepthook:
Traceback (most recent call last):
  File "C:\Users\M1\anaconda3\envs\myenv\lib\site-packages\pretty_traceback\hook.py", line 23, in excepthook
    tb_str = formatting.exc_to_traceback_str(exc_value, traceback, color)
  File "C:\Users\M1\anaconda3\envs\myenv\lib\site-packages\pretty_traceback\formatting.py", line 281, in exc_to_traceback_str
    return format_tracebacks(tracebacks, color)
  File "C:\Users\M1\anaconda3\envs\myenv\lib\site-packages\pretty_traceback\formatting.py", line 255, in format_tracebacks
    traceback_str = format_traceback(tb_tup, color)
  File "C:\Users\M1\anaconda3\envs\myenv\lib\site-packages\pretty_traceback\formatting.py", line 244, in format_traceback
    ctx = _init_entries_context(traceback.entries)
  File "C:\Users\M1\anaconda3\envs\myenv\lib\site-packages\pretty_traceback\formatting.py", line 156, in _init_entries_context
    rows = list(_iter_entry_rows(aliases, entry_paths, entries))
  File "C:\Users\M1\anaconda3\envs\myenv\lib\site-packages\pretty_traceback\formatting.py", line 135, in _iter_entry_rows
    assert module.endswith(_module)
AssertionError
@mbarkhau
Copy link
Owner

Will check, thanks for the report.

mbarkhau added a commit that referenced this issue Oct 14, 2020
@mbarkhau
Copy link
Owner

mbarkhau commented Oct 14, 2020

Fixed with 2020.1011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants