The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 3From the old forum

cannot creat pystring with non-byte value

5 replies Last reply

  1. Hi, I'm a student learning nodebox in class.
    While following this tutorial
    a messege poped out and none of my node worked.

    "Cannot create PyString with non-byte balue"

    I attached my screenshot below.
    Is there any way I can solve this?

    I'm using Windows and reinstalling didn't change anything.

    Copy link
  2. Hi Yujin,

    Odd. The exact same thing happened to another student a few years ago. He reinstalled and that solved the problem. I guess you weren't so lucky,

    Could you please reply to this thread and attach a zipped archive containing your ndbx file? If I can recreate this issue maybe we can get to the bottom of it.

    John

    Copy link
  3. Yujin,

    Thank you for sending the file. It runs fine on my Mac. I looked inside it and can't see anything wrong.

    I also did some more research on the Nodebox forum and found a few other similar reports over the years. This problem only occurs on Windows systems, and seems to happen to people who may have unicode characters in the user directory of their file path (Russian, Chinese, Portuguese, etc.). Yet other Windows users, even with unicode characters in their names, are able to run the exact same file with no issues.

    So it seems like there is some subtle bug in the Windows version of NodeBox interacting with something unusual in your particular file system.

    Looking out on the web I found other references to this error. Apparently it relates to a known issue in Jython (the Java-based version of Python used by NodeBox) involving unicode characters, often Chinese characters. But there seems to be no easy fixes.

    If you have access to some other machine, you could try repeating your tutorial on that machine and see if you have better luck. In one similar case Frederik suggested moving Nodebox up to the C: level to eliminate unicode file path issues, but that didn't work for one user. You could also try installing a previous version of NodeBox (again a long shot).

    This is frustrating. I'm sorry you are having this issue. I wish there was more I could do.

    John

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply