cannot creat pystring with non-byte value
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.
- z.png 13.2 KB
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
Support Staff 1 Posted by john on 09 Sep, 2021 03:18 PM
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 Posted by Yujin on 10 Sep, 2021 01:41 AM
Thank you for the reply.
I will send you a zipped file.
3 Posted by 김유진 on 10 Sep, 2021 01:42 AM
Thank you for the reply.
I will send you a compressed file.
2021년 9월 10일 (금) 오전 12:18, john <[email blocked]>님이 작성:
4 Posted by 김유진 on 10 Sep, 2021 01:42 AM
Thank you for the reply.
I will send you a compressed file.
2021년 9월 10일 (금) 오전 12:18, john <[email blocked]>님이 작성:
Support Staff 5 Posted by john on 10 Sep, 2021 04:25 AM
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