zayamatias / retroscraper-remote

0 stars 0 forks source link

cannot access local variable 'gamename' #1

Open FollyMaddy opened 2 months ago

FollyMaddy commented 2 months ago

Hi there,

It has been a while since I used your remote script. I am experiencing an issue when I scrape a folder with many arcade games. Overall working seems to be good when using folders with a few games. However with the folder with many files I get this error once in a while an it will freeze :

System: arcade | Game : Sprint 8
Exception in thread Thread-3917 (getFileInfo):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "<string>", line 504, in getFileInfo
  File "<string>", line 112, in getInfoFromAPI
  File "<string>", line 83, in getArcadeName
UnboundLocalError: cannot access local variable 'gamename' where it is not associated with a value

It's not game specific, other times the games were different. I also a used a wired connection to rule out bad wifi connection.

I am using these module version now : wheel==0.44.0 setuptools==75.1.0 googletrans==4.0.0rc1 Pillow==10.4.0 requests==2.32.3 httpimport==1.3.1

I updated most recently to try and fix the problem. I don't think the issue is due to the module versions as with some older modules I had the issue.

Another thing that could be interesting for you. I tried the latest httpimport==1.4.0 but that version doesn't work with your script.

Any idea what's wrong ?

I appreciate you help.

FollyMaddy commented 2 months ago

Recent large scrapes seem to work OK again. It might have been a bad connection on the internet elsewhere. I will post if the error returns again.