Git Product home page Git Product logo

Comments (9)

rlaphoenix avatar rlaphoenix commented on June 8, 2024 1

I've managed to recreate the bug by just opening a new Windows Sandbox environment and downloading the portable version. Since @lborruto got it working by installing the dependencies outside the portable/setup version, it's likely that there's some dependency that PyInstaller did not handle. Looking into it now.

from nton.

rlaphoenix avatar rlaphoenix commented on June 8, 2024 1

I've already noticed one possible problem. If you don't have one of the dependencies that are required, i.e. the bundled binaries like hacbrew, or the prod.keys, then it will just print a message and exit. Since the console window is removed on the GUI you never get to see these messages. So that could be one cause.
On my Windows Sandbox where I reproduced the error, simply putting the prod.keys file next to the portable exe, or in the %userprofile%/.switch folder, made the GUI actually open. It's likely this is the case for you guys as well.
However, with @lborruto saying installing via pip fixed it for him, is very strange.

I think you are right, I've added prokeys to C:\Users\<User>\.switch\ AND installed with pip.

Ahh, as in you did both and THEN noticed it started working? If that's the case then the solution has been found, I just need to add a GUI message box when the prod.keys and other dependencies are not found :)

from nton.

rlaphoenix avatar rlaphoenix commented on June 8, 2024 1

Considered fixed as of c7fff1f (v2.0.1)

If it's still happening please make a new issue.

from nton.

rlaphoenix avatar rlaphoenix commented on June 8, 2024

Hi, could you try the Installer version and see if that one will launch? It's not immediately clear why the portable version is failing to launch, nor ways to debug since it's a GUI application.

You could still perhaps try launch the exe from PowerShell or CMD and see if that gives any information. When it works, it should give no response text at all and simply launch.

Another option is to build a custom portable build with the console window kept active to see if any error information gets sent there.

Finally, another possibility is that some permission error somewhere occurred. Could you try running as admin?

from nton.

lborruto avatar lborruto commented on June 8, 2024

Same for me, installer or portable version.

from nton.

rlaphoenix avatar rlaphoenix commented on June 8, 2024

Same for me, installer or portable version.

I can only assume more weirdness with PyInstaller then. Have you tried anything I told the original issue creator?

from nton.

lborruto avatar lborruto commented on June 8, 2024

So after doing $ pip install nton[gui] the installer or portable version works fine!

from nton.

rlaphoenix avatar rlaphoenix commented on June 8, 2024

I've already noticed one possible problem. If you don't have one of the dependencies that are required, i.e. the bundled binaries like hacbrew, or the prod.keys, then it will just print a message and exit. Since the console window is removed on the GUI you never get to see these messages. So that could be one cause.

On my Windows Sandbox where I reproduced the error, simply putting the prod.keys file next to the portable exe, or in the %userprofile%/.switch folder, made the GUI actually open. It's likely this is the case for you guys as well.

However, with @lborruto saying installing via pip fixed it for him, is very strange.

from nton.

lborruto avatar lborruto commented on June 8, 2024

I've already noticed one possible problem. If you don't have one of the dependencies that are required, i.e. the bundled binaries like hacbrew, or the prod.keys, then it will just print a message and exit. Since the console window is removed on the GUI you never get to see these messages. So that could be one cause.

On my Windows Sandbox where I reproduced the error, simply putting the prod.keys file next to the portable exe, or in the %userprofile%/.switch folder, made the GUI actually open. It's likely this is the case for you guys as well.

However, with @lborruto saying installing via pip fixed it for him, is very strange.

I think you are right, I've added prokeys to C:\Users\<User>\.switch\ AND installed with pip.

from nton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.