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

Some more error after stoped processing an resuming i got this error cannot access local variable 'preprocessed_sentences' where it is not associated with a value #10

Open
yodatak opened this issue Apr 25, 2024 · 1 comment

Comments

@yodatak
Copy link

yodatak commented Apr 25, 2024

Your app is realy awsome ( result is realy great we should make it simple to use and with all the api server but annother story)

2024-04-25 02:21:04,244 - DEBUG - http://localhost:8020 "GET /docs HTTP/1.1" 200 939
Exception in thread Thread-5 (start_optimisation):
Traceback (most recent call last):
File "/usr/lib64/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/var/home/yodatak/Projets/public/Pandrator/pandrator.py", line 1959, in start_optimisation
for sentence_dict in preprocessed_sentences:
^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'preprocessed_sentences' where it is not associated with a value
2024-04-25 02:21:09,848 - DEBUG - Starting new HTTP connection (1): localhost:8020
2024-04-25 02:21:09,849 - DEBUG - http://localhost:8020 "GET /docs HTTP/1.1" 200 939
Exception in thread Thread-6 (start_optimisation):
Traceback (most recent call last):
File "/usr/lib64/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "/var/home/yodatak/Projets/public/Pandrator/pandrator.py", line 1959, in start_optimisation
for sentence_dict in preprocessed_sentences:
^^^^^^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'preprocessed_sentences' where it is not associated with a value

@lukaszliniewicz
Copy link
Owner

Sorry to hear there is another issue. What file type did you use? I couldn't replicate this:

Code_xs4uo4tFS2.mp4

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