luigi icon indicating copy to clipboard operation
luigi copied to clipboard

AttributeError: 'LocalTarget' object has no attribute 'is_tmp'

Open joseph-luketelo opened this issue 4 years ago • 2 comments

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

joseph-luketelo avatar Nov 27 '20 12:11 joseph-luketelo

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.

stale[bot] avatar Jan 09 '22 01:01 stale[bot]

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()

giusidp avatar Nov 06 '23 09:11 giusidp