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

except OSError, e: #79

Open
zhongyongbin1 opened this issue Mar 29, 2023 · 0 comments
Open

except OSError, e: #79

zhongyongbin1 opened this issue Mar 29, 2023 · 0 comments

Comments

@zhongyongbin1
Copy link

zhongyongbin1 commented Mar 29, 2023

  • 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/[email protected]/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
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

1 participant