cannot creat pystring with non-byte value

Yujin's Avatar

Yujin

09 Sep, 2021 01:01 PM

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.

  1. Support Staff 1 Posted by john on 09 Sep, 2021 03:18 PM

    john's Avatar

    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

  2. 2 Posted by Yujin on 10 Sep, 2021 01:41 AM

    Yujin's Avatar

    Thank you for the reply.
    I will send you a zipped file.

  3. 3 Posted by 김유진 on 10 Sep, 2021 01:42 AM

    김유진's Avatar

    Thank you for the reply.
    I will send you a compressed file.

    2021년 9월 10일 (금) 오전 12:18, john <[email blocked]>님이 작성:

  4. 4 Posted by 김유진 on 10 Sep, 2021 01:42 AM

    김유진's Avatar

    Thank you for the reply.
    I will send you a compressed file.

    2021년 9월 10일 (금) 오전 12:18, john <[email blocked]>님이 작성:

  5. Support Staff 5 Posted by john on 10 Sep, 2021 04:25 AM

    john's Avatar

    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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • z.png 13.2 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

11 Sep, 2021 03:55 AM
10 Sep, 2021 04:25 AM
09 Sep, 2021 02:25 AM
06 Sep, 2021 07:06 PM
20 Aug, 2021 03:27 PM

 

18 Aug, 2021 11:31 AM
18 Aug, 2021 09:42 AM
30 Jul, 2021 11:35 PM
29 Jul, 2021 10:11 PM
29 Jul, 2021 10:06 PM
25 Jul, 2021 10:21 PM