stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.19k stars 792 forks source link

[Bug Report] After v0.27.2 upgrade, stashapi fails #5413

Open David-Maisonave opened 3 hours ago

David-Maisonave commented 3 hours ago

Describe the bug After upgrading Stash to version v0.27.2, all my python plugin's task fail with the following error:

Error   [Plugin / DupFileManager] ModuleNotFoundError: No module named 'stashapi'
Error   [Plugin / DupFileManager]     from stashapi.stashapp import StashInterface

If I run a python script by itself which refers stashapi.stashapp, it works with no errors.

To Reproduce Steps to reproduce the behavior:

  1. Include the following line on the top of any plugin which has a task. from stashapi.stashapp import StashInterface
  2. Run the plugin task.
  3. Review the logs http://localhost:9999/settings?tab=logs

Expected behavior Should not produce error when referring to stashapi. This was working before the upgrade.

Stash Version: (from Settings -> About): v0.27.2 Build hash: 76648fee Build time: 2024-10-15 22:17:23

I've also tried upgrading to the latest stashapp-tools. pip show stashapp-tools Name: stashapp-tools Version: 0.2.55

But got the same results.

Desktop (please complete the following information):

Maista6969 commented 3 hours ago

You have multiple Python installations on your machine and Stash is using the wrong one: you'll need to figure out which is the correct Python and either uninstall the wrong one or set the Python path explicitly in Settings > System > Application paths