Bronya-Rand / DDLC-ModMaker

Project Modflake. A Ren'Py Specific Tool for building DDLC Mods.
https://ghost.schneedc.com/doki-doki-mod-maker/
Other
15 stars 3 forks source link

[OSX 10.14.6] Is a directory: u'/path/to/ddlc-mac/DDLC.app' #10

Closed cutie-lyta closed 3 years ago

cutie-lyta commented 3 years ago

When I'm creating a mod with DDMM version 1.2.6, with MPT, but I don't think it's relevent here, after naming the mod, I have this traceback, I tried 3 times and it happened everytime :

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "launcher/game/new_project.rpy", line 266, in script
    python:
  File "launcher/game/new_project.rpy", line 321, in <module>
    ddlc_copy()
  File "launcher/game/new_project.rpy", line 75, in ddlc_copy
    path = open(persistent.zip_directory + "/ddlc-mac/DDLC.app", 'rb')
IOError: [Errno 21] Is a directory: u'/Users/muzi/Downloads/ddlc-mac/DDLC.app'

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

Full traceback:
  File "launcher/game/new_project.rpy", line 266, in script
    python:
  File "/Users/muzi/Downloads/DDMMaker7.4-1.2.6-sdk/renpy/ast.py", line 922, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "/Users/muzi/Downloads/DDMMaker7.4-1.2.6-sdk/renpy/python.py", line 2218, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "launcher/game/new_project.rpy", line 321, in <module>
    ddlc_copy()
  File "launcher/game/new_project.rpy", line 75, in ddlc_copy
    path = open(persistent.zip_directory + "/ddlc-mac/DDLC.app", 'rb')
  File "/Users/muzi/Downloads/DDMMaker7.4-1.2.6-sdk/renpy/compat/__init__.py", line 94, in compat_open
    return python_open(*args, **kwargs)
IOError: [Errno 21] Is a directory: u'/Users/muzi/Downloads/ddlc-mac/DDLC.app'

Darwin-18.7.0-x86_64-i386-64bit
Ren'Py 7.4.4.1439
Doki Doki Mod Maker 1.2.6
Sun Apr  4 20:22:39 2021
Bronya-Rand commented 3 years ago

I see. Looks like Python on MacOS is still reading .app as a folder. Strange. I always thought .app in Mac are applications but Windows/Linux reads them as folders. Might just need a code change but you should be fine using a downgrade ATM till I get my Linux machine up

Bronya-Rand commented 3 years ago

Updated code temporarily to avid the issue on Mac. You may re-download 1.2.6 here and it should be working.