luigi
luigi copied to clipboard
AttributeError: 'LocalTarget' object has no attribute 'is_tmp'
I am using LocalTarget
as my FINALTARGET_BACKEND_CLASS
in .env file.
But when I run my model(s) I get the above-mentioned attribute error.
When I use s3 as my FINALTARGET_BACKEND_CLASS
all works fine.
File "/opt/conda/lib/python3.7/site-packages/luigi/local_target.py", line 189, in __del__
if self.is_tmp and self.exists():
Above is the line of code that throws this error.
Regards
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions.
I have a similar error, but in my case it's: AttributeError: 'LocalTarget' object has no attribute 'touch'
This is the rest of the error description:
File "C:\Users\20225500\AppData\Local\Programs\Python\Python311\Lib\site-packages\luigi\worker.py", line 203, in run
new_deps = self._run_get_new_deps()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\myname\AppData\Local\Programs\Python\Python311\Lib\site-packages\luigi\worker.py", line 138, in _run_get_new_deps
task_gen = self.task.run()
^^^^^^^^^^^^^^^
File "C:\Users\myname\mypath\myscript.py", line 23, in run
self.output().touch()