except OSError, e: · Issue #79 · scottrogowski/code2flow · GitHub
Skip to content

except OSError, e: #79

Open
Open

Description

@zhongyongbin1
  • os: macos
  • python version: 3.9
  • code2flow version: code2flow 2.5.1
  • cmd: code2flow /target_path/start.py
  • the project use python 2.7.3
Code2Flow: Found 1 files from sources argument.
Code2Flow: Implicitly detected language as 'py'.
Code2Flow: Processing 1 source file(s).
Code2Flow:  target_path/start.py
Traceback (most recent call last):
  File "/usr/local/bin/code2flow", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/code2flow/engine.py", line 860, in main
    code2flow(
  File "/usr/local/lib/python3.9/site-packages/code2flow/engine.py", line 734, in code2flow
    file_groups, all_nodes, edges = map_it(sources, language, no_trimming,
  File "/usr/local/lib/python3.9/site-packages/code2flow/engine.py", line 473, in map_it
    raise ex
  File "/usr/local/lib/python3.9/site-packages/code2flow/engine.py", line 468, in map_it
    file_ast_trees.append((source, language.get_tree(source, lang_params)))
  File "/usr/local/lib/python3.9/site-packages/code2flow/python.py", line 162, in get_tree
    return ast.parse(raw)
  File "/usr/local/Cellar/python@3.9/3.9.13/Frameworks/Python.framework/Versions/3.9/lib/python3.9/ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 55
    except OSError, e:
                  ^
SyntaxError: invalid syntax

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions