You are not logged in.

#1 2024-04-28 12:09:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Any python jocks suggest why this runs forever now?

I would like to update texturecache.py to work with python3.12.  I do not have python experience, but I can paste into chatgpt and made these modifications to fix tons of warnings but in doing so broke one of the other functions in the script, the "P" function.

Can someone suggest why running the script with this function now seems to run forever?

./texturecache P     
Pruning cached images from texture cache...                      

114515|e/e82a9fe7.jpg|0360|0480|0003|2024-02-06 00:07:03|                   |https://i.ytimg.com/vi/TVSXHMX9MlI/hqdefault.jpg
129281|3/3b1db6b7.jpg|0404|0720|0001|2024-04-27 22:18:26|                   |https://i.ytimg.com/vi/TVrkyRcrxhc/hq720.jpg?sqp=-oaymwEXCNAFEJQDSFryq4qpAwkIARUAAIhCGAE=&rs=AOn4CLAO_IW2AlkZtnwRUNHkhntXHLSSmg
...

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2024-04-28 13:41:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Any python jocks suggest why this runs forever now?

I've rewritten this post a dozen times trying to get it in an acceptable form - and I'm struggling.

Suffice it to say I do not believe you have started this thread well.  You are asking us to identify how chatGPT fucked up.  But that's missing the point: you made tons of changes that you apparently do not understand just because they were recommended by a moronic and error prone bot ... it's not the bot that fucked up.  And you haven't shared anything in your post about any testing or even basic diagnostics you've none.  The bare minimum of which would be to highlight what portion of the code is running at the time: don't make us scan through nearly 9000 lines of code to figure out what you probably already know.

Show that you've made some effort first if you want others to help.  And dumping garbage into a garbage-in-garbage-out chat system is not a form of effort.  Dumping garbage on these forums and expecting us to sort it out for you also isn't.  ChatGPT may not care how you form your question (it will crap out a response regardless), but we do.

Last edited by Trilby (2024-04-28 13:42:23)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2024-04-28 14:29:50

seth
Member
Registered: 2012-09-03
Posts: 58,698

Re: Any python jocks suggest why this runs forever now?

https://github.com/MilhouseVH/texturecache.py/issues/75
https://stackoverflow.com/questions/505 … stead-of-d

Searching your patch for "prune" and looking at https://github.com/graysky2/texturecach … e94825L359 SchrottGaPuTt has just changed the actual behavior a bit, re.sub invocation is gone.
It might have done that elsewhere…

Offline

Board footer

Powered by FluxBB