Python Callback Error

   316   2   1
User Avatar
Member
3 posts
Joined: Nov. 2023
Offline
Hi!

I downloaded a third-party HDA when I try to install it, it gives me this error and the HDA itself does not work correctly! Who can tell you how to solve this problem??? I've never worked with python!


Python Callback Error


File "<stdin>", line 1
{ 'event_type': hou.hdaEventType.LibraryInstalled, 'library_path' : 'E:/Material for work/SipiLib HDA's/sipiLib-main/otls/sipi-vectornoise-1.0.0.hda' }
^
SyntaxError: unterminated string literal (detected at line 1)
Edited by cvsline - May 2, 2024 14:57:34

Attachments:
2024-05-02_21-54-33.png (938.2 KB)

User Avatar
Member
209 posts
Joined: Jan. 2013
Offline
cvsline
'E:/Material for work/SipiLib HDA's/sipiLib-main/otls/sipi-vectornoise-1.0.0.hda'

In python, strings are usually enclosed in single or double quotes and their number must be balanced. The script finds another single quote in your HDA's path that is in no way unbalanced. If possible, it is better not to use special characters in the path at all, including whatespaces, and replace them either with underscores or dashes.
User Avatar
Member
3 posts
Joined: Nov. 2023
Offline
alexwheezy
cvsline
'E:/Material for work/SipiLib HDA's/sipiLib-main/otls/sipi-vectornoise-1.0.0.hda'

In python, strings are usually enclosed in single or double quotes and their number must be balanced. The script finds another single quote in your HDA's path that is in no way unbalanced. If possible, it is better not to use special characters in the path at all, including whatespaces, and replace them either with underscores or dashes.


Thank you very much! I really removed both the names 'hyphen' and 'space' in the path and everything began to work as it should and not give out any error! It helped a lot! I am grateful!
Edited by cvsline - May 3, 2024 04:13:06
  • Quick Links