You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
I am trying to get the code to work for a college project, using the edited repository from muHashh in Issue #6 and I got up to the Processing Kepler Data stage. There, I have an error: NameError: name 'FLAGS' is not defined when running bazel-bin\astronet\data\generate_input_records --input_tce_csv_file="astronet\dr24_tce.csv" --kepler_data_dir="astronet\kepler" --output_dir="astronet\tfrecord" --num_worker_processes=5 from an Anaconda Powershell Prompt in a virtual python environment. Here is the rest of the error:
multiprocessing.pool.RemoteTraceback:
Traceback (most recent call last):
File "C:\Users\d3mon\anaconda3\envs\TF\lib\multiprocessing\pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "\\?\C:\Users\d3mon\AppData\Local\Temp\Bazel.runfiles_4af3ibsw\runfiles\__main__\astronet\data\generate_input_records.py", line 164, in _process_file_shard
example = _process_tce(tce)
File "\\?\C:\Users\d3mon\AppData\Local\Temp\Bazel.runfiles_4af3ibsw\runfiles\__main__\astronet\data\generate_input_records.py", line 143, in _process_tce
FLAGS.kepler_data_dir)
NameError: name 'FLAGS' is not defined
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "\\?\C:\Users\d3mon\AppData\Local\Temp\Bazel.runfiles_4af3ibsw\runfiles\__main__\astronet\data\generate_input_records.py", line 256, in <module>
tf.app.run(main=main, argv=[sys.argv[0]] + unparsed)
File "C:\Users\d3mon\anaconda3\envs\TF\lib\site-packages\tensorflow_core\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
File "C:\Users\d3mon\anaconda3\envs\TF\lib\site-packages\absl\app.py", line 303, in run
_run_main(main, args)
File "C:\Users\d3mon\anaconda3\envs\TF\lib\site-packages\absl\app.py", line 251, in _run_main
sys.exit(main(argv))
File "\\?\C:\Users\d3mon\AppData\Local\Temp\Bazel.runfiles_4af3ibsw\runfiles\__main__\astronet\data\generate_input_records.py", line 248, in main
async_result.get()
File "C:\Users\d3mon\anaconda3\envs\TF\lib\multiprocessing\pool.py", line 657, in get
raise self._value
NameError: name 'FLAGS' is not defined
I also recieve warnings such as:
W0427 17:26:35.319283 22452 module_wrapper.py:139] From \\?\C:\Users\d3mon\AppData\Local\Temp\Bazel.runfiles_4af3ibsw\runfiles\__main__\astronet\data\generate_input_records.py:187: The name tf.logging.info is deprecated. Please use tf.compat.v1.logging.info instead.
and
2021-04-27 17:26:35.935000: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_100.dll'; dlerror: cudart64_100.dll not found
2021-04-27 17:26:35.935153: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
But I do not think these have an impact on the NameError. I very inexperienced with most of the libraries used here, but I don't see FLAGS defined anywhere in the generate_input_records.py file before line 143.
I am using versions:
as well as default versions when calling pip 21.0.1 for other packages. I have attached the compressed python file. Please let me know if there is any other information I can provide. generate_input_records.zip
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to get the code to work for a college project, using the edited repository from muHashh in Issue #6 and I got up to the Processing Kepler Data stage. There, I have an error:
NameError: name 'FLAGS' is not defined
when runningbazel-bin\astronet\data\generate_input_records --input_tce_csv_file="astronet\dr24_tce.csv" --kepler_data_dir="astronet\kepler" --output_dir="astronet\tfrecord" --num_worker_processes=5
from an Anaconda Powershell Prompt in a virtual python environment. Here is the rest of the error:I also recieve warnings such as:
and
But I do not think these have an impact on the NameError. I very inexperienced with most of the libraries used here, but I don't see FLAGS defined anywhere in the generate_input_records.py file before line 143.
I am using versions:
as well as default versions when calling pip 21.0.1 for other packages. I have attached the compressed python file. Please let me know if there is any other information I can provide.
generate_input_records.zip
The text was updated successfully, but these errors were encountered: