-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hey!
I've taken an interest in this tool because I think it could be useful for quickly and efficiently deploying cloud functions in a python mono-repo. I encountered the following uncaught exception when attempting to extract a simple
Traceback (most recent call last):
File "venv/bin/python-object-extractor", line 8, in <module>
sys.exit(main())
File "[...]/venv/lib/python3.8/site-packages/python_object_extractor/main.py", line 115, in main
output(
File "[...]/venv/lib/python3.8/site-packages/python_object_extractor/output.py", line 32, in output
output_requirements(sys.stdout, imports)
File "[...]/venv/lib/python3.8/site-packages/python_object_extractor/output.py", line 89, in output_requirements
requirements = {
TypeError: 'NoneType' object is not iterableSteps to reproduce
-
Setup:
OS: arch linux
Python version: 3.8 (venv)
Object extractor version: 1.0.0 -
use the CLI to use the object extractor on a module with a single function and no import statements.
-
Output: The contents of the file written to
STDOUT, followed by the exception above.
Expected output
A proper error message indicating what the issue is and optionally how to resolve it, if this is correct behaviour.
Expected cause
I looked into the output.py file briefly, and it appears that the .third_party attribute is None. I did not find the origins of this attribute and what the contents are supposed to represent, but I assume that in my case, an empty list or similar is expected (as I have no imports, third party or otherwise).
Let me know if I can be of any help solving this, I'm willing to contribute to the repo if necessary.