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

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

Open
joseph-luketelo opened this issue Nov 27, 2020 · 2 comments
Open

Comments

@joseph-luketelo
Copy link

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

@stale
Copy link

stale bot commented Jan 9, 2022

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 stale bot added the wontfix label Jan 9, 2022
@giusidp
Copy link

giusidp commented Nov 6, 2023

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

@stale stale bot removed the wontfix label Nov 6, 2023
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

2 participants