CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

[TPDBMarkers] AttributeError: 'StashInterface' object has no attribute 'find_groups'

Open SpLLash4K opened this issue 9 months ago • 6 comments

Seems like there is an issue with TPDB Markers plugin:

[Plugin / The Porn DB Markers]   File "/root/.stash/plugins/community/TPDBMarkers/tpdbMarkers.py", line 176, in <module>
[Plugin / The Porn DB Markers] Traceback (most recent call last):
[Plugin / The Porn DB Markers]     processScene(scene)
[Plugin / The Porn DB Markers]   File "/root/.stash/plugins/community/TPDBMarkers/tpdbMarkers.py", line 44, in processScene
[Plugin / The Porn DB Markers]     movie=processMovie(m)
[Plugin / The Porn DB Markers]   File "/root/.stash/plugins/community/TPDBMarkers/tpdbMarkers.py", line 109, in processMovie
[Plugin / The Porn DB Markers]           ^^^^^^^^^^^^^^^
[Plugin / The Porn DB Markers]     sm = stash.find_groups(
[Plugin / The Porn DB Markers]          ^^^^^^^^^^^^^^^^^
[Plugin / The Porn DB Markers] AttributeError: 'StashInterface' object has no attribute 'find_groups'

SpLLash4K avatar Mar 14 '25 02:03 SpLLash4K

possibly duplicate of https://github.com/stashapp/CommunityScripts/issues/510 ? both share a codebase

feederbox826 avatar Mar 16 '25 08:03 feederbox826

yeah the groups update was alongside the change to callGQL both are supported in the latest version of tools but certain things expect the dev branch so may also error out like the marker module which is now looking for end_seconds

stg-annon avatar Mar 16 '25 17:03 stg-annon

I tried the suggested pip install --force-reinstall stashapp-tools==0.2.55 from the other issue but I'm still getting the same errors. Looks like I already had verson 0.2.55 installed as well

SpLLash4K avatar Mar 16 '25 22:03 SpLLash4K

0.2.55 is a fix for the callGQL issue but will cause this issue as find_groups was implemented in 0.2.56

stg-annon avatar Mar 17 '25 01:03 stg-annon

Tried updating stashtools to 0.2.56 and now this is the error I'm seeing:

time="2025-03-17 18:59:07" level=warning msg="[Plugin / The Porn DB Markers] create_movie() is depracated use create_group()"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers] GRAPHQL_VALIDATION_FAILED:['variable', 'input', 'url'] unknown field"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers] 422 Unprocessable Entity GQL data response is null"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers] 422 Unprocessable Entity query failed. v0.27.2-76648"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers] \x01d\x02"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers] Traceback (most recent call last):"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/root/.stash/plugins/community/TPDBMarkers/tpdbMarkers.py\", line 176, in <module>"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     processScene(scene)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/root/.stash/plugins/community/TPDBMarkers/tpdbMarkers.py\", line 44, in processScene"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     movie=processMovie(m)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]           ^^^^^^^^^^^^^^^"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/root/.stash/plugins/community/TPDBMarkers/tpdbMarkers.py\", line 141, in processMovie"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     mov=stash.create_movie(new_movie)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/usr/lib/python3.12/site-packages/stashapi/stashapp.py\", line 1245, in create_movie"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     return self.create_group(*args, **kwargs)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/usr/lib/python3.12/site-packages/stashapi/stashapp.py\", line 1157, in create_group"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     result = self.call_GQL(query, variables)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/usr/lib/python3.12/site-packages/stashapi/stashapp.py\", line 226, in call_GQL"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     return self._GQL(query, variables)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/usr/lib/python3.12/site-packages/stashapi/classes.py\", line 228, in _GQL"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     return self._handle_GQL_response(response)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]   File \"/usr/lib/python3.12/site-packages/stashapi/classes.py\", line 271, in _handle_GQL_response"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers]     raise Exception(error_msg)"
time="2025-03-17 18:59:07" level=error msg="[Plugin / The Porn DB Markers] Exception: 422 Unprocessable Entity query failed. v0.27.2-76648"
time="2025-03-17 18:59:07" level=error msg="Plugin returned error: exit status 1"

SpLLash4K avatar Mar 17 '25 23:03 SpLLash4K

v0.27.2-76648

groups are on v28, you'll have to manually downgrade to https://github.com/stashapp/CommunityScripts/commit/1104140f4a8d7cfddf7af561998ba7a36aa841f9 to continue using v0.27

feederbox826 avatar Mar 17 '25 23:03 feederbox826

v0.27.2-76648

groups are on v28, you'll have to manually downgrade to 1104140 to continue using v0.27

this happens when the stashapi "*_group" shim is used. this pr would allow both to work https://github.com/stashapp/CommunityScripts/pull/561

NotMyMainUser avatar May 25 '25 13:05 NotMyMainUser

Closing as wontfix becuase of outdated version and shim now present

feederbox826 avatar May 25 '25 19:05 feederbox826