Hacking Question Install games via usb tinfoil is giving me troubles

spelda

Active Member
OP
Newcomer
Joined
Feb 10, 2019
Messages
44
Trophies
0
Age
31
XP
464
Country
Singapore
I'm using a macbook and when I run this command in the terminal I get an error.

python3 usb_install_pc.py <Users/Link/Desktop/Switch>

The error is as follows:

-bash: syntax error near unexpected token `newline'

I'm trying to install backups but apparently I'm doing something wrong. I followed this guide:

macOS Instructions:

1. Install Homebrew
2. Install Python 3
sudo mkdir /usr/local/Frameworks
sudo chown $(whoami) /usr/local/Frameworks
brew install python
3. Install PyUSB
pip3 install pyusb
4. Install libusb
brew install libusb
5. Plug in your Switch and go to Tinfoil > Title Management > USB Install NSP
6. Run this script
python3 usb_install_pc.py <path/to/nsp_folder>


Thanks a bunch for anyone who can help me out!
 

spelda

Active Member
OP
Newcomer
Joined
Feb 10, 2019
Messages
44
Trophies
0
Age
31
XP
464
Country
Singapore
I let the script run through the python launcher and got this error:

:~ Link$ cd '/Users/Link/Desktop/' && '/usr/bin/pythonw' '/Users/Link/Desktop/usb_install_pc.py' && echo Exit status: $? && exit 1

File "/Users/Link/Desktop/usb_install_pc.py", line 78

print('Magic: {}'.format(magic), flush=True)

^

SyntaxError: invalid syntax



Sorry if these are all trivial matters but I can't code and am a little confused..
 

spelda

Active Member
OP
Newcomer
Joined
Feb 10, 2019
Messages
44
Trophies
0
Age
31
XP
464
Country
Singapore
I figured it out with the help of a friend who is more knowledgeable than me.

As you can see in my first post I wrote "python3 usb_install_pc.py <Users/Link/Desktop/Switch>" in the terminal but the correct line is "python3 usb_install_pc.py /Users/Link/Desktop/Switch"

So much headache because I'm a dumbass haha
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    SylverReZ @ SylverReZ: So true