Can't use polygon node without get an error

Guilherme Vieira's Avatar

Guilherme Vieira

14 Nov, 2020 12:01 AM

Hi everyone,

I was giving a workshop and one of my students are getting a very strange error when he trying to use the polygon node.

He commented that every time he tries to use the polygon node he receives an error. Sometimes the error occurs when making a connection and sometimes the error happens just by placing the polygon node and rendering it.

He shared with me a screenshot of the network of nodes he set up and the error.

I asked him to try a new installation of NodeBox, but nothing changed about the error.

Thanks

  1. Support Staff 1 Posted by john on 14 Nov, 2020 01:24 AM

    john's Avatar

    Guilherme,

    I see nothing that should trigger such an error. If you could attach the actual network I could see if it misfires for me.

    Also: what system? What version of Java?

    Frederik, any ideas?

    John

  2. Support Staff 2 Posted by john on 14 Nov, 2020 01:31 AM

    john's Avatar

    I've never encountered this problem, but someone did encounter a very similar issue back in 2015:

    http://support.nodebox.net/discussions/nodebox-2-3/5426-nodebox-imp...

    I assume your student is using the latest version of NodeBox (3.0.51), yes?

    John

  3. Support Staff 3 Posted by john on 14 Nov, 2020 01:42 AM

    john's Avatar

    Another past reference to a similar error:

    http://support.nodebox.net/discussions/nodebox-2-3/5708-nodebox-3-u...

    In this case, the user had NodeBox installed in a directory (the desktop) which included an accented character. That turned out not to be the issue, but I wonder if something like this could be a factor, given the unicode character referenced in the error message.

    I am out of my depth. Referring to Frederik.

    John

  4. 4 Posted by Luã on 14 Nov, 2020 04:37 PM

    Luã's Avatar

    John, the issue is actually happening with me. I couldn't install the latest version of Nodebox, so I had to install v. 3.0.50 and to update Java to v. 8 update 271. I'm running it on a Windows 10, which is already up to date.

    Now that you speak of the accented character issue, the error string says "'ascii' codec can't encode character u'\xe3' in position 54: ordinal not in range(128)", and the character in question being the last one in my name (possibly it is related to the folder address in my user).

    I tried moving the Nodebox installation directory outside my user directory, but now I get this error when I try to use the polygon node.
    Traceback (most recent call last):
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 585, in <module>
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 567, in main
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 300, in addusersitepackages
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 289, in getusersitepackages
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 416, in get_path
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 407, in get_paths
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 180, in _expand_vars
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 154, in _subst_vars
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 154, in _subst_vars
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 11: ordinal not in range(128)

    at org.python.core.codecs.strict_errors(codecs.java:208)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.python.core.JavaFunc.__call__(Py.java:2426)
    at org.python.core.PyObject.__call__(PyObject.java:431)
    at org.python.core.codecs.encoding_error(codecs.java:1538)
    at org.python.core.codecs.PyUnicode_EncodeIntLimited(codecs.java:1211)
    at org.python.core.codecs.PyUnicode_EncodeASCII(codecs.java:1170)
    at org.python.core.codecs.encode(codecs.java:165)
    at org.python.core.PyString.encode(PyString.java:3896)
    at org.python.core.PyString.encode(PyString.java:3888)
    at org.python.core.PyUnicode.unicode___str__(PyUnicode.java:667)
    at org.python.core.PyUnicode.__str__(PyUnicode.java:662)
    at org.python.core.PyString.buildFormattedString(PyString.java:4006)
    at org.python.core.PyString.str_format(PyString.java:3941)
    at org.python.core.PyString$str_format_exposer.__call__(Unknown Source)
    at org.python.core.PyObject._callextra(PyObject.java:601)
    at sysconfig$py._subst_vars$3(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:159)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
    at org.python.core.PyFunction.__call__(PyFunction.java:423)
    at sysconfig$py._expand_vars$5(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:181)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
    at org.python.core.PyFunction.__call__(PyFunction.java:423)
    at sysconfig$py.get_paths$17(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:409)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:170)
    at org.python.core.PyFunction.__call__(PyFunction.java:434)
    at sysconfig$py.get_path$18(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:416)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:145)
    at org.python.core.PyFunction.__call__(PyFunction.java:423)
    at site$py.getusersitepackages$10(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:290)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
    at org.python.core.PyFunction.__call__(PyFunction.java:403)
    at site$py.addusersitepackages$11(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:304)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:138)
    at org.python.core.PyFunction.__call__(PyFunction.java:413)
    at site$py.main$34(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:583)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
    at org.python.core.PyFunction.__call__(PyFunction.java:403)
    at site$py.f$0(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:637)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.imp.createFromCode(imp.java:436)
    at org.python.core.util.importer.importer_load_module(importer.java:109)
    at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:163)
    at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)
    at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46)
    at org.python.core.imp.loadFromLoader(imp.java:587)
    at org.python.core.imp.find_module(imp.java:537)
    at org.python.core.imp.import_next(imp.java:840)
    at org.python.core.imp.import_first(imp.java:861)
    at org.python.core.imp.load(imp.java:716)
    at org.python.core.Py.importSiteIfSelected(Py.java:1558)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:71)
    at nodebox.function.PythonLibrary$1.call(PythonLibrary.java:96)
    at nodebox.function.PythonLibrary$1.call(PythonLibrary.java:90)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:748)

  5. Support Staff 5 Posted by john on 14 Nov, 2020 11:07 PM

    john's Avatar

    Lua,

    I don't have access to a Windows machine, so it is hard for me to speculate on what might be going on with your system.

    You said you were unable to install 3.0.51. That might be part of your problem. Other Windows 10 users had a similar issue and found a solution in this thread:

    http://support.nodebox.net/discussions/nodebox-2-3/6116-windows-10-...

    Maybe you could try that. Clean everything out. Reinstall 3.0.50. Then Install 3.0.51 and see if that works. If it does, see if that resolves your polygon problem.

    I'm sorry you are having this problem. If I can't help I hope Frederik will come to the rescue.

    John

  6. 6 Posted by Luã on 16 Nov, 2020 07:34 PM

    Luã's Avatar

    Hey, John! Before experiencig the polygon node issue, I checked this thread while trying to install 3.0.51, with no results whatsoever. That's why I installed version 3.0.50, which seemed to work just fine until I had this polygon node problem. :/

  7. Support Staff 7 Posted by john on 20 Nov, 2020 04:35 AM

    john's Avatar

    When you say "it worked fine until I had this polygon problem", do you mean that you were able to add polygons before, and now cannot?

    If so, what change (to your system or whatever) might have triggered this?

    As you mentioned, code xe3 referenced in your original error message is a lower case a with a tilde, which is the last character of your name. This makes me wonder if your name is appearing in various directory paths, like the name of your account or hard drive. It's unfair, but I wonder if, instead of trying to move Nodebox to a different directory, you could leave it where it was and try changing your name in such directories to drop the tilde (Lua instead of Luã) to see if that would fix the problem.

    And if you want, you could send me a zipped version of your Nodebox network. That way I can at least verify that it does not cause the same error for me.

    Beyond that I fear there may be little more I can do for you. Frederik is capable of deciphering error dialogs and knows the history of this pesky polygon node (which seems to be a canary in the coal mine, exposing some deeper problem). I have included him on this thread but he has yet to respond and may no longer have the time.

    Wish I could do more to help,

    John

  8. 8 Posted by Luã on 09 Dec, 2020 06:31 PM

    Luã's Avatar

    No, i just mean I hadn't noticed the issue until I ran into the polygon node problem. But I'm actually bumping into the same problem with several types of nodes.
    Below there is the last error log I had. I'm gonna try using Nodebox on a new user account on my PC and see if it works.

    Traceback (most recent call last):
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 585, in <module>
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 567, in main
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 300, in addusersitepackages
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py", line 289, in getusersitepackages
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 416, in get_path
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 407, in get_paths
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 180, in _expand_vars
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 154, in _subst_vars
      File "C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py", line 154, in _subst_vars
    UnicodeEncodeError: 'ascii' codec can't encode character u'\xe3' in position 11: ordinal not in range(128)

    at org.python.core.codecs.strict_errors(codecs.java:208)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.python.core.JavaFunc.__call__(Py.java:2426)
    at org.python.core.PyObject.__call__(PyObject.java:431)
    at org.python.core.codecs.encoding_error(codecs.java:1538)
    at org.python.core.codecs.PyUnicode_EncodeIntLimited(codecs.java:1211)
    at org.python.core.codecs.PyUnicode_EncodeASCII(codecs.java:1170)
    at org.python.core.codecs.encode(codecs.java:165)
    at org.python.core.PyString.encode(PyString.java:3896)
    at org.python.core.PyString.encode(PyString.java:3888)
    at org.python.core.PyUnicode.unicode___str__(PyUnicode.java:667)
    at org.python.core.PyUnicode.__str__(PyUnicode.java:662)
    at org.python.core.PyString.buildFormattedString(PyString.java:4006)
    at org.python.core.PyString.str_format(PyString.java:3941)
    at org.python.core.PyString$str_format_exposer.__call__(Unknown Source)
    at org.python.core.PyObject._callextra(PyObject.java:601)
    at sysconfig$py._subst_vars$3(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:159)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
    at org.python.core.PyFunction.__call__(PyFunction.java:423)
    at sysconfig$py._expand_vars$5(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:181)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:153)
    at org.python.core.PyFunction.__call__(PyFunction.java:423)
    at sysconfig$py.get_paths$17(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:409)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:170)
    at org.python.core.PyFunction.__call__(PyFunction.java:434)
    at sysconfig$py.get_path$18(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py:416)
    at sysconfig$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\sysconfig.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:307)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:145)
    at org.python.core.PyFunction.__call__(PyFunction.java:423)
    at site$py.getusersitepackages$10(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:290)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
    at org.python.core.PyFunction.__call__(PyFunction.java:403)
    at site$py.addusersitepackages$11(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:304)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:138)
    at org.python.core.PyFunction.__call__(PyFunction.java:413)
    at site$py.main$34(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:583)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
    at org.python.core.PyFunction.__call__(PyFunction.java:403)
    at site$py.f$0(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py:637)
    at site$py.call_function(C:\Program Files (x86)\NodeBox\app\nodebox.jar\Lib\site.py)
    at org.python.core.PyTableCode.call(PyTableCode.java:167)
    at org.python.core.PyCode.call(PyCode.java:18)
    at org.python.core.imp.createFromCode(imp.java:436)
    at org.python.core.util.importer.importer_load_module(importer.java:109)
    at org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:163)
    at org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown Source)
    at org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:46)
    at org.python.core.imp.loadFromLoader(imp.java:587)
    at org.python.core.imp.find_module(imp.java:537)
    at org.python.core.imp.import_next(imp.java:840)
    at org.python.core.imp.import_first(imp.java:861)
    at org.python.core.imp.load(imp.java:716)
    at org.python.core.Py.importSiteIfSelected(Py.java:1558)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
    at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:71)
    at nodebox.function.PythonLibrary$1.call(PythonLibrary.java:96)
    at nodebox.function.PythonLibrary$1.call(PythonLibrary.java:90)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.lang.Thread.run(Thread.java:748)

  9. Support Staff 9 Posted by john on 11 Dec, 2020 04:10 AM

    john's Avatar

    Please let me know if the new user account solves the problem.

    My guess is this might be a fairly simple bug to swat, but we're not getting many new updates lately. If Frederik is listening he can add this one to the list.

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • Captura_de_tela_2020-11-11_205011.png 600 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

04 Dec, 2023 10:18 PM
04 Dec, 2023 10:14 PM
04 Dec, 2023 11:38 AM
29 Nov, 2023 05:30 AM
28 Nov, 2023 12:38 AM

 

27 Nov, 2023 04:40 AM
26 Nov, 2023 10:02 AM
22 Nov, 2023 09:33 AM
20 Nov, 2023 08:54 PM
17 Nov, 2023 01:43 AM
15 Nov, 2023 06:58 AM