multimokia / MAS-Submods

Multi's MAS Submods
9 stars 8 forks source link

RE: AWC/AST #10

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hey there, thank you in advance for your assistance and for making these submods!

I am running MAS version 0.10.7 (current) and have been unable to get AWC/AST working on Ubuntu 18.04.4. I also have a Win7 and a Win8.1 installation, both of which are able to run AWC/AST without any trouble.

Here is a copy of the traceback log:

I'm sorry, but an uncaught exception occurred.

While running game code: File "game/Submods/Auto Weather Change/Utilities/awc_utils.rpy", line 97, in from pyowm import OWM ImportError: No module named pyowm

-- Full Traceback ------------------------------------------------------------

Full traceback: File "/home/d3adpan/MAS/renpy/bootstrap.py", line 295, in bootstrap renpy.main.main() File "/home/d3adpan/MAS/renpy/main.py", line 419, in main game.context().run(node) File "/home/d3adpan/Submods/Auto Weather Change/Utilities/awc_utils.rpyc", line 90, in script File "/home/d3adpan/MAS/renpy/ast.py", line 814, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "/home/d3adpan/MAS/renpy/python.py", line 1719, in py_exec_bytecode exec bytecode in globals, locals File "game/Submods/Auto Weather Change/Utilities/awc_utils.rpy", line 97, in from pyowm import OWM ImportError: No module named pyowm

Linux-5.3.0-28-generic-x86_64-with-debian-buster-sid Ren'Py 6.99.12.4.2187

I double-checked the contents of the game folder and I can see the added files under the python-packages folder, including the pyowm-2.8.0-py2.7.egg file. I created a login at open weather maps and got the api key, and placed it into a text file labelled apikey.txt in the main folder. I also installed pyowm directly onto my system using 'pip install pyowm' but I get the same traceback error.

Any suggestions would be greatly appreciated, thank you for your time!

multimokia commented 4 years ago

With the recent discovery and fix in #9, I'll check to see if those changes also fix this issue.

multimokia commented 4 years ago

Not quite, but turns out it was a relatively simple fix via unix filestructs. Pushing a commit and a release to address this.

multimokia commented 4 years ago

Closing this as complete in latest AAC release

ghost commented 4 years ago

Thank you so much for tackling the linux issue! Unfortunately though, I am still getting an error. I am not sure why as the file awc_citylookup.txt file is present in the Utilities folder.

Here is a copy of the traceback log:

I'm sorry, but an uncaught exception occurred.

While running game code: File "game/Submods/Auto Weather Change/Utilities/awc_utils.rpy", line 65, in awc_buildCityLookupDict() File "game/Submods/Auto Weather Change/Utilities/awc_utils.rpy", line 531, in awc_buildCityLookupDict with renpy.file(lookup_file) as loc_dat: IOError: Couldn't find file 'home/d3adpan/MAS/game/Submods/Auto Weather Change/Utilities/awc_citylookup.txt'.

-- Full Traceback ------------------------------------------------------------

Full traceback: File "/home/d3adpan/MAS/renpy/bootstrap.py", line 295, in bootstrap renpy.main.main() File "/home/d3adpan/MAS/renpy/main.py", line 419, in main game.context().run(node) File "/home/d3adpan/Submods/Auto Weather Change/Utilities/awc_utils.rpyc", line 63, in script File "/home/d3adpan/MAS/renpy/ast.py", line 814, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "/home/d3adpan/MAS/renpy/python.py", line 1719, in py_exec_bytecode exec bytecode in globals, locals File "game/Submods/Auto Weather Change/Utilities/awc_utils.rpy", line 65, in awc_buildCityLookupDict() File "game/Submods/Auto Weather Change/Utilities/awc_utils.rpy", line 531, in awc_buildCityLookupDict with renpy.file(lookup_file) as loc_dat: File "/home/d3adpan/MAS/renpy/exports.py", line 1980, in file return renpy.loader.load(fn) File "/home/d3adpan/MAS/renpy/loader.py", line 543, in load raise IOError("Couldn't find file '%s'." % name) IOError: Couldn't find file 'home/d3adpan/MAS/game/Submods/Auto Weather Change/Utilities/awc_citylookup.txt'.

Linux-5.4.0-31-generic-x86_64-with-debian-bullseye-sid Ren'Py 6.99.12.4.2187

multimokia commented 4 years ago

Ah, okay so it is the same issue. Notice the home/ instead of /home/. It's definitely the same issue in #9. I'll push fixes to that which should also allow this to work

multimokia commented 4 years ago

Try using the latest release of NightMusic. It includes the overrides to the renpy loader which should fix this up for you

ghost commented 4 years ago

Good catch! Everything is working as expected with the latest NightMusic installed. Thank you so much!

multimokia commented 4 years ago

Awesome! Glad to hear it. apologies for the long delay haha

ghost commented 4 years ago

No worries! I'm grateful that you tackled it and were able to solve the issues. I love the additional functionality that your submods add, and being able to enjoy them on my main box is pretty freaking sweet :D