nineteendo / pyvz2

PyVZ2 is a command line utility to modify PvZ2
GNU General Public License v3.0
44 stars 6 forks source link

ModuleNotFoundError: No module named 'libraries' #59

Closed KildButCooler closed 7 months ago

KildButCooler commented 1 year ago

nineteendo commented 1 year ago

Yeah, that has to do with storage access framework I would need to check if there's a work-around. But currently I don't have time.

EngjellBajrami commented 7 months ago

Im having this exact issue, any fixes yet?

nineteendo commented 7 months ago

Sadly not, you'll have to be patient since I'm kind of busy.

EngjellBajrami commented 7 months ago

Thats alright, im not goona force you to fix it, sometimes fixing it can surface a lot more bugs anyway, i found that you can use qpython and not pydroid to unpack the files and it works until the template part but then it cant unpack the files to the obb- folder so its definitely a SAF issue.

nineteendo commented 7 months ago
EngjellBajrami commented 7 months ago
  • Have you tried open internal storage with the latest version of Pydroid 3? That seems to work on Android 14.
  • You can also try moving the tool to /storage/emulated/0/ru.iiec.pydroid3/files and running it with "app storage, removed on uninstall".

Thanks for being so helpful both to me and the original poster, personally I adressed the issue by modding the game on my pc where I can run the app with admin rights. Although the second step where you move the files to the local pydroid folder does seem to work on android 11.

nineteendo commented 7 months ago

Hmm, the first step works on Android 14. Did you update Pydroid 3?

EngjellBajrami commented 7 months ago

Hmm, the first step works on Android 14. Did you update Pydroid 3?

I am on android 11, app is updated and it did work, If you give the app full permissions over your files and you put the game files in a folder where the pydroid app can read/write/modify them, It will surely work.

nineteendo commented 7 months ago

Yes, but did it work by opening the file using the "Internal Storage" option and selecting it from /storage/emulated/0/Download?

EngjellBajrami commented 7 months ago

Yes, it doesnt show the error mentioned in the post. I moved the pyvz2 tools in the storage/emulated/0/Android/data/ru.iiec.pydroid3 folder and ran the unpack.py file with app storage, removed on uninstall and it had no errors, i also did the internal storage method (if youre using internal storage just leave the pyvz2 tools in the downloads folder) and it worked both times, although for some reason it doesnt really unpack the files it just runs the script and thats it? Screenshot_20240201-012637_Pydroid 3 Im probably doing something wrong but i followed the youtube tutorial step by step and when it "unpacks" the output directory has the original obb file and no unpacked folder.

EngjellBajrami commented 7 months ago

Just tried unpacking again but this time with QPython because i dont know, i thought different apps might fix the issue but nope, same thing. Screenshot_20240201-015838_QPython Since im on android 11 i think this is an issue with my android version not giving apps full permission to read write or edit even when I checked the full permission to true in settings, it probably still doesnt let the app unpack files to the storage/emulated/0/Android/obb- folder, although changing the unpack.py input and output folder to something like storage/emulated/0/Downloads would probably work (because most apps have permission to the Downloads folder) but I dont know how to do that.

nineteendo commented 7 months ago

That means that the tool can't find the obb. I have to admit it doesn't make it obvious. Make sure that the obb is in /storage/emulated/0/Android/obb-/com.ea.game.pvz2_row (1). Also verify that the extension of the obb is still ".obb". Continue discussion in #66 if you're still having issues.