Code Monkey home page Code Monkey logo

Comments (9)

KennedyRichard avatar KennedyRichard commented on August 20, 2024

Please, go to the location where nodezator is installed and inside the "nodezator" folder there should be a "logs" folder with the logs from your session.

from nodezator.

KennedyRichard avatar KennedyRichard commented on August 20, 2024

Please, also try, to update your installation using pip install --upgrade nodezator (in my machine it only works when called 02 times), or download from github again, if you didn't install). Then, try the same steps you made again. This time a dialog should appear instead of the app crashing.

If you locate the logs upload them here so I can take a look, please.

from nodezator.

WillAdams avatar WillAdams commented on August 20, 2024

Updating to 1.0.5 allows selecting a filepath on Windows. Thanks!

from nodezator.

KennedyRichard avatar KennedyRichard commented on August 20, 2024

Oh, really? That's great news! May I close this issue then?

from nodezator.

WillAdams avatar WillAdams commented on August 20, 2024

Actually, I'm getting an error:

image

which then says:

image

So I guess I need a UTF8 text file --- perhaps that requirement should be made a part of the node?

from nodezator.

KennedyRichard avatar KennedyRichard commented on August 20, 2024

I believe I get the problem now. The node is fine, it even has a field where you can specify the encoding. The problem is that the widget has to load the file in order to show you a preview and it does so using a 'utf-8' encoding. To solve this I guess I'll have to either analyse the file and then choose the appropriate encoding used to load it for the preview or just keep using the utf-8 encoding by use a more lenient loading method that ignore unicode errors (the pathlib.Path.read_text() method has a parameter to allow this if I'm not mistaken).

I'll look into this right away and upload a new patch.

from nodezator.

KennedyRichard avatar KennedyRichard commented on August 20, 2024

Ok, please, try updating your Nodezator version to 1.0.6 now, and repeat the steps that led to your original problem. See if no errors are raised anymore.

Also, if the text is previewed in the widget, click the preview and see if the file is displayed in the text viewer inside the app, some characters should probably not render well, but apart from that it should be fine.

from nodezator.

WillAdams avatar WillAdams commented on August 20, 2024

That worked!

I'd suggest making the encoding entry a pop-up, and having the program determine the valid options and only afford them.

from nodezator.

KennedyRichard avatar KennedyRichard commented on August 20, 2024

Yes, setting the errors parameter to ignore encoding errors was just a stopgap measure to prevent the app to crash on the users and allow them to keep working. I'll think of a better solution. and put this problem in my to-do list.

Since I believe the problem (crashing) was solved, if you don't mind I'll be closing this issue.

from nodezator.

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.