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,215
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
23
XP
231
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,215
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
23
XP
231
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,215
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
23
XP
231
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,215
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
23
XP
231
Country
United States

spotanjo3

Well-Known Member
OP
Member
Joined
Nov 6, 2002
Messages
11,145
Trophies
3
XP
6,215
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,215
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,215
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
  • Psionic Roshambo @ Psionic Roshambo:
    He found out how much the ambulance ride was going to cost lol
    +2
  • K3Nv2 @ K3Nv2:
    @BigOnYa, so one the salesman told him would get him bitches
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    In my experience women like a big shift stick with lots of power.
  • Psionic Roshambo @ Psionic Roshambo:
    Something that really burns rubbers
  • BigOnYa @ BigOnYa:
    Only thing a nice car will get you is a gold digger. What happened to falling in love, no matter if I'm on a bus, or driving a nice car. No offense tho, I do like nice cars.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Nothing like tearing ass up on a back road
  • Psionic Roshambo @ Psionic Roshambo:
    BigOnYa I think narcissism has all but killed love
    +2
  • SylverReZ @ SylverReZ:
    @Psionic Roshambo, I think I can agree on that.
    +1
  • K3Nv2 @ K3Nv2:
    People tend to think look at everything I have gains attention but ends up making them look worse for what it is
    +1
  • BigOnYa @ BigOnYa:
    It would be funny to pick up a girl in a real expensive car, then next date show up in a piece o shit car just to see her reaction. If she was real, it wouldn't matter.
  • Psionic Roshambo @ Psionic Roshambo:
    Everyone is disposable and replaceable, lies and deception are the coin of the realm. I have never felt so alone and so at odds with the world.
  • K3Nv2 @ K3Nv2:
    I don't think we should see others as disposable just if they can show any glimps of care about humanity should be forgiven
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, she would leave you inmediately
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    For a time I considered creating a new big bang. Wipe the slate clean and start from scratch....
  • K3Nv2 @ K3Nv2:
    Your closest friend probably talks negative about you the most
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I know I talk shit about that Ken guy constantly lol
    +1
  • K3Nv2 @ K3Nv2:
    Yeah I just had to consile it's a age thing and I can get erect
    +1
  • BigOnYa @ BigOnYa:
    Right.. Take a number
  • SylverReZ @ SylverReZ:
    @BigOnYa, Binkinator is still around you guys. I just saw him in one of the Discord servers that I'm in.
  • K3Nv2 @ K3Nv2:
    People get more mad when they learn you aren't as dimwitted as they think
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, that guy who was dissappeared?
  • Psionic Roshambo @ Psionic Roshambo:
    My favorite thing about that Ken, if they talk bad about others to you. They doing it to you too.
  • Psionic Roshambo @ Psionic Roshambo:
    Always remember that
    Psionic Roshambo @ Psionic Roshambo: Always remember that