Help with Tinfoil's USB transfer

godstriker8 Nov 29, 2018.

  1. godstriker8
    OP

    godstriker8 GBAtemp Regular

    Member
    3
    Feb 8, 2010
    Canada
    When I attempt to use the command line with "usb_install_pc.py FOLDERPATH", I just get the message:


    "Used for the installation of NSPs over USB.

    Usage: usb_install_pc.py <nsp folder>"

    What am I doing wrong?
     
    Last edited by godstriker8, Nov 29, 2018
  2. TamarindoJuice

    TamarindoJuice GBAtemp Regular

    Member
    5
    Jan 30, 2016
    Brazil
    Try this:
    Put a folder called "nsp" on your desktop with the nsp's inside, so open the prompt and type:

    cd desktop
    and so
    usb_install_pc.py nsp

    I do it this way here.

    (Obviously the usb_install_pc.py should be placed at your desktop too)
     
    EmulateLife likes this.
  3. bananapi761

    bananapi761 GBAtemp Fan

    Member
    6
    Jan 8, 2016
    United Kingdom
    Norn Iron
    I had a similar issue, but I fixed it by holding the shift key in the usb installer python script's path and choosing open powershell, then typing the command.
     
  4. orangpelupa

    orangpelupa GBAtemp Regular

    Member
    5
    Aug 7, 2009
    Indonesia
    Have you tried aluminumfoil?
     
  5. yee

    yee DOTA 4EVER

    Member
    4
    Jul 9, 2006
    Canada
    Vancouver
    Don Jon likes this.
  6. godstriker8
    OP

    godstriker8 GBAtemp Regular

    Member
    3
    Feb 8, 2010
    Canada
    I tried that, now I get this error:

    C:\Users\T\Desktop>usb_install_pc.py nsp
    Traceback (most recent call last):
    File "C:\Users\T\Desktop\usb_install_pc.py", line 121, in <module>
    dev = usb.core.find(idVendor=0x057E, idProduct=0x3000)
    File "C:\Users\T\AppData\Local\Programs\Python\Python37\lib\site-packages\
    usb\core.py", line 1263, in find
    raise NoBackendError('No backend available')
    usb.core.NoBackendError: No backend available

    — Posts automatically merged - Please don't double post! —

    Yes, but I tried a couple of versions of tinfoil (including the 10/20 version), but it didn't work for me, because when the PC sends the headers, I just get an empty list of NSPs to install: (https://imgur.com/a/UTcKN6y)
     
    Last edited by godstriker8, Nov 30, 2018
  7. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    I got that backend error on one of my laptops asked on gbatemp never was given a fix. Doesn't happen on a different laptop I have. It's some type of driver issue on your computer.
     
  8. TamarindoJuice

    TamarindoJuice GBAtemp Regular

    Member
    5
    Jan 30, 2016
    Brazil

    Are you using Python 3.7?
    I'm using 3.6.6.
    Do you installed pyusb and libusb modules?
    LibusbK driver too?

    EDIT - I sent you a PM.
     
    Last edited by TamarindoJuice, Nov 30, 2018
  9. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    I use Python 3.7 and it works fine at least on one of my computers. I did the libusb pyusb installs and I get that backend error on one of my computers. I believe it's some type of driver issue that probably very few people on gbatemp know how to resolve.

    OP if you have another computer try it on there.
     
    Last edited Nov 30, 2018
  10. Don Jon

    Don Jon GBAtemp Maniac

    Member
    7
    Nov 20, 2015
    United States
    maybe bad cable?
     
  11. godstriker8
    OP

    godstriker8 GBAtemp Regular

    Member
    3
    Feb 8, 2010
    Canada
    3.7. I'm pretty sure pyusb and lib usb are installed, but just to be sure I tried again:

    C:\Users\T\Desktop>pip3 install pyusb libusb
    Requirement already satisfied: pyusb in c:\users\t\appdata\local\programs\py
    thon\python37\lib\site-packages (1.0.2)
    Requirement already satisfied: libusb in c:\users\t\appdata\local\programs\p
    ython\python37\lib\site-packages (1.0.22b2)
    Requirement already satisfied: setuptools>=39.2.0 in c:\users\t\appdata\loca
    l\programs\python\python37\lib\site-packages (from libusb) (40.6.2)
    Requirement already satisfied: cffi>=1.11.5 in c:\users\t\appdata\local\prog
    rams\python\python37\lib\site-packages (from libusb) (1.11.5)
    Requirement already satisfied: pycparser in c:\users\t\appdata\local\program
    s\python\python37\lib\site-packages (from cffi>=1.11.5->libusb) (2.19)
    You are using pip version 10.0.1, however version 18.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' comm
    and.
     
  12. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    Nothing to do with it again I get the backend error that OP is getting on one of my computers but it works on another computer with the same cable.

    Only thing you can probably try is go into device manager and uninstall all the drivers then reinstall them. Other than that, try another computer.
     
  13. godstriker8
    OP

    godstriker8 GBAtemp Regular

    Member
    3
    Feb 8, 2010
    Canada
    Oh my god... I'm trying on another computer, now I'm getting this error in Powershell when using "python usb_install_pc.py /path/to/NSPs/""

    >>
    File "usb_install_pc.py", line 7
    <!DOCTYPE html>
    ^
    SyntaxError: invalid syntax
    PS D:\Users\T\Downloads\nsp>
     
    Last edited by godstriker8, Nov 30, 2018
  14. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    Just type usb_install_pc.py nsp. None of that path/to stuff and make sure it's all on your desktop.

    This is everything you should be typing verbatim after putting usb_install_pc.py on your desktop and a folder named nsp with the nsps in it.

    cd desktop
    usb_install_pc.py nsp

    that's it.

    I use command prompt. I don't know if that's exactly the same as Powershell or not but just use it.
     
    Last edited Nov 30, 2018
    Don Jon likes this.
  15. godstriker8
    OP

    godstriker8 GBAtemp Regular

    Member
    3
    Feb 8, 2010
    Canada
    I forgot to mention that I also tried it on my desktop with the same error message about syntax
     
  16. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    But did you type usb_install_pc.py nsp (nsp also has to be the name of your folder, you're just giving tinfoil your folder name which contains the nsps)

    Copy what you're entering from command prompt and paste it here.


    I mean, you could change the folder name to folder and then you'd type usb_install_pc.py folder it's just whatever the folder is named. But don't have usb_install_pc.py inside the folder it needs to be outside the folder.

    Also just to make sure did you choose the usb install option in tinfoil before you try it?
     
    Last edited Nov 30, 2018
  17. godstriker8
    OP

    godstriker8 GBAtemp Regular

    Member
    3
    Feb 8, 2010
    Canada
    I'm literally just typing ".\usb_install_pc.py nsp "

    Yeah, my folder is named: nsp, and yeah im in the "USB Install" section of tinfoil.

    After copying the nsp folder to the desktop I now have a different issue. The command window just turns off after entering the command, similar to what happens when you double click on usb_install_pc.py
     
  18. EmulateLife

    EmulateLife GBAtemp Psycho!

    Member
    7
    May 30, 2016
    United States
    "After copying the nsp folder to the desktop" So it wasn't on the desktop? Well that's why it wouldn't work before. I don't know why you're having the issue with it closing. Only thing I can think of try running command prompt as administrator (where it says type here to search type cmd, then right click on it and run as administrator) and retry.

    — Posts automatically merged - Please don't double post! —

    If all else fails there's possibly one other reason why you're having problems, python needs to be in your path. Uninstall python and reinstall it and on the bottom where you're starting to install click on "install python to path" and let it reinstall.
     
    Last edited Nov 30, 2018
  19. cyndor

    cyndor GBAtemp Regular

    Member
    4
    Jul 9, 2018
    United States
    try python usb_install_pc.py nsp

    It wouldn't run for me without specifying python even though I had my environment path set up correctly.
     
  20. mmo

    mmo Newbie

    Newcomer
    3
    Sep 11, 2018
    United States
    try to open your usb_install_pc.py by using textpad or notepad and check the codes, you might download the xml version instead of the plain python script
     
Quick Reply
Draft saved Draft deleted
Loading...