Homebrew [Custom-Splash-Script-for-ReiNX] - Problem for macOS

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
Can you kindly to help me out ? The Windows version is so easy to use but I want to learn how to use it on macOS. Following your instruction you mentioned doesn't worked. CustomSplash folder is in the Finder..

I do this by drag and drop CustomSplash folder along with splash1.png: myname-MBP:~ myname$ CD

and I got this: myname-MBP:CustomSplash myname$

Now.. I have this: myname-MBP:CustomSplash myname$ python3 ReiNX_splash.py splash1.png

and press return and I got this:

/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'ReiNX_splash.py': [Errno 2] No such file or directory

THEN

If I do my way.. I got this:

I use terminal and type cd and drag and drop CustomSplash folder from
Finder like this:

cd /Users/myname/Downloads/CustomSplash python3 ReiNX_splash.py splash1.png

myname-MacBook-Pro:CustomSplash myname$

Nothing

And check CustomSplash folder.. nothing. Yes, splash1.png is in
CustomSplash folder at Finder as well.

Nothing. I don't understand.
 
Last edited by spotanjo3,

Sciguy429

Member
Newcomer
Joined
Dec 3, 2018
Messages
18
Trophies
0
Age
22
XP
221
Country
United States
I'm not entirely sure what you were trying to do there, that's not how terminals work. You don't drag and drop, you need to tell it where the file is.

Code:
python3 splash.py your.png

That should be the command format you follow, make sure your picture is in the same folder as the python script and change the names accordingly (if you press tab the console will try and autocompleate for you).
 

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
Hello. As I said CustomSplay folder is in Finder and splash.bin are in the same folder.

I did that too.. I got an error:

/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'splash.py': [Errno 2] No such file or directory

in CustomSplash folder.. There is no splash.py at all. Only CustomSplash.pyw
 

Sciguy429

Member
Newcomer
Joined
Dec 3, 2018
Messages
18
Trophies
0
Age
22
XP
221
Country
United States
Hello. As I said CustomSplay folder is in Finder and splash.bin are in the same folder.

I did that too.. I got an error:

/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'splash.py': [Errno 2] No such file or directory

in CustomSplash folder.. There is no splash.py at all. Only CustomSplash.pyw


That error means that python can't find the script file. Are you sure your typing the exact name? Its not gonna be script.py that was just a guess you will have to look for there names using finder.

Also make sure you are in the right directory. the console executes commands from the current working directory witch by default is your home folder. Going from the info you have in your post you should be able to just execute these two commands and be done with it.
Code:
cd ~/Downloads/CustomSplash/

python3 ./ReiNX_splash.py ./splash1.png

Quick bit of unix info:
  • The ~ means your home folder (IE /home/sciguy429/)
  • The ./ denotes that the file is in the current directory
 
Last edited by Sciguy429,

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
That error means that python can't find the script file. Are you sure your typing the exact name? Its not gonna be script.py that was just a guess you will have to look for there names using finder.

Also make sure you are in the right directory. the console executes commands from the current working directory witch by default is your home folder. Going from the info you have in your post you should be able to just execute these two commands and be done with it.
Code:
cd ~/Downloads/CustomSplash/

python3 ./ReiNX_splash.py ./splash1.png

Quick bit of unix info:
  • The ~ means your home folder (IE /home/sciguy429/)
  • The ./ denotes that the file is in the current directory

Thanks for helping me out. I do this:

username-MBP:~ username$ cd ~/Downloads/CustomSplash/

username-MBP:CustomSplash username$ python3 ./ReiNX_splash.py ./splash1.png

/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file './ReiNX_splash.py': [Errno 2] No such file or directory

username-MBP:CustomSplash username$

See? Something to do with ReiNX_splash.py -- No such file or directory
 

Sciguy429

Member
Newcomer
Joined
Dec 3, 2018
Messages
18
Trophies
0
Age
22
XP
221
Country
United States
Thanks for helping me out. I do this:

username-MBP:~ username$ cd ~/Downloads/CustomSplash/

username-MBP:CustomSplash username$ python3 ./ReiNX_splash.py ./splash1.png

/Library/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python: can't open file './ReiNX_splash.py': [Errno 2] No such file or directory

username-MBP:CustomSplash username$

See? Something to do with ReiNX_splash.py -- No such file or directory

Like i said before that means python cant find the script file, are you sure that's the correct name? Open up finder and check, if its different replace the name in the command, leaving the ./ before it
 

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
Well there's your problem, That tool is for windows only! Do you have a windows pc? Because if so you can grab the .exe from the github releases and it has a full GUI and everything.

The developer at GitHub said it can be done on macOS but he don't know how to use it.

Yes, I have a PC but I want to learn how to use it on macOS.
 

Sciguy429

Member
Newcomer
Joined
Dec 3, 2018
Messages
18
Trophies
0
Age
22
XP
221
Country
United States

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States

nando

Well-Known Member
Member
Joined
Jan 1, 2008
Messages
2,263
Trophies
0
Website
Visit site
XP
1,023
Country
United States
i read your thread and just tried it and it worked. i did it by drag and dropping because screw typing in directories and file names.

downloaded py script.
installed python3 via brew
installed Pillow
then i typed "python3" dragged the script into the terminal window, then i dragged a png file. the script ran and made a "splash.bin" in my home directory
 
Last edited by nando,

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
i read your thread and just tried it and it worked. i did it by drag and dropping because screw typing in directories and file names.

downloaded py script.
installed python3 via brew
installed Pillow
then i typed "python3" dragged the script into the terminal window, then i dragged a png file. the script ran and made a "splash.bin" in my home directory

I have those and I got this:

usernames-MBP:~ username$ python3 /Users/username/Downloads/CustomSplash/CustomSplash.pyw /Users/username/Downloads/CustomSplash/splash1.png

Traceback (most recent call last):

File "/Users/username/Downloads/CustomSplash/CustomSplash.pyw", line 3, in <module>

import winsound

ModuleNotFoundError: No module named 'winsound'

username-MBP:~ username$
 

nando

Well-Known Member
Member
Joined
Jan 1, 2008
Messages
2,263
Trophies
0
Website
Visit site
XP
1,023
Country
United States
Thats what I downloaded from GitHub version. :/

i understand now.

i'm just running the "ReiNX_splash.py" script not the gui.
there is no winsound module for mac. you can comment it out in the script, but then the next issue you will run into is the directories. you need to change them to mac directories with the forward slash "/"
 

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,211
Country
United States
i understand now.

i'm just running the "ReiNX_splash.py" script not the gui.
there is no winsound module for mac. you can comment it out in the script, but then the next issue you will run into is the directories. you need to change them to mac directories with the forward slash "/"

How ? I want to learn how.. Teach me, please ?
 

nando

Well-Known Member
Member
Joined
Jan 1, 2008
Messages
2,263
Trophies
0
Website
Visit site
XP
1,023
Country
United States
How ? I want to learn how.. Teach me, please ?

just tried it and it works

open "CustomSplash.pyw" in a text editor of your choice

comment out or delete the line that reads "import winsound" (you can comment out by adding "#" in front of it)

do the same for line 47 "winsound.PlaySound('resources/dl.wav', winsound.SND_ASYNC)"

find all Image.open() instances and change the back slashes to single forward slashes. for example on line 68

"load = Image.open(os.getcwd() + '\\resources\\done.png')" change it to
"load = Image.open(os.getcwd() + '/resources/done.png')"

"os.getcwd()" is the current folder. if you don't set the script folder as current, this will throw an error

so now in terminal set the script folder as current with "cd " + folder directory

then run the script

"python3 CustomSplash.pyw"

(no quotation marks ofcourse)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: @OctoAori20, Thank you. Hope you're in good spirits today like I am. :)