application crashes when call 'pythoscope python_file.py'

Bug #1199926 reported by Ruslan Khozinov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pythoscope
New
Undecided
Unassigned

Bug Description

INFO: Inspecting module multicastlib.py.
ERROR: Oops, it seems that an internal Pythoscope error occurred. Please file a bug report at https://bugs.launchpad.net/pythoscope

Traceback (most recent call last):
  File "/usr/local/bin/pythoscope", line 9, in <module>
    load_entry_point('pythoscope==0.4.3', 'console_scripts', 'pythoscope')()
  File "/usr/local/lib/python2.7/dist-packages/pythoscope/__init__.py", line 184, in main
    init_project(project_path)
  File "/usr/local/lib/python2.7/dist-packages/pythoscope/__init__.py", line 112, in init_project
    inspect_project_statically(project)
  File "/usr/local/lib/python2.7/dist-packages/pythoscope/inspector/__init__.py", line 55, in inspect_project_statically
    return add_and_update_modules(project) + \
  File "/usr/local/lib/python2.7/dist-packages/pythoscope/inspector/__init__.py", line 37, in add_and_update_modules
    static.inspect_module(project, modpath)
  File "/usr/local/lib/python2.7/dist-packages/pythoscope/inspector/static.py", line 130, in inspect_module
    return inspect_code(project, path, read_file_contents(path))
  File "/usr/local/lib/python2.7/dist-packages/pythoscope/inspector/static.py", line 135, in inspect_code
    tree = parse(code)
  File "/usr/local/lib/python2.7/dist-packages/pythoscope/astbuilder.py", line 82, in parse
    result = drv.parse_string(code, True)
  File "/usr/lib/python2.7/lib2to3/pgen2/driver.py", line 106, in parse_string
    return self.parse_tokens(tokens, debug)
  File "/usr/lib/python2.7/lib2to3/pgen2/driver.py", line 60, in parse_tokens
    prefix += value
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 14: ordinal not in range(128)

Revision history for this message
Michal Kwiatkowski (ruby) wrote :

Thank you for reporting this.

This bug seems related: https://bugs.launchpad.net/pythoscope/+bug/781821

Unfortunately, I don't have time to work on Pythoscope nowadays, so I can't tell when I'll be able to look at this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.