Hi, I've downloaded Houdini 18.0.287 (Python 3), and for some reason I can't print to console when using a python node. Is this a known issue? any workarounds ?
thanks.
——-
EDIT: I'm actually getting some errors logged to console upon Houdini start, and middle-clicking nodes also don't show anything.
log:
Error running event handler:
File “opdef:/Sop/attribpaint?ViewerStateModule”, line 52
if basenode is not None:
^
TabError: inconsistent use of tabs and spaces in indentation
Error running event handler:
Traceback (most recent call last):
File “opdef:/Sop/attribpaint?ViewerStateInstall”, line 1, in <module>
File “C:/PROGRA~1/SIDEEF~1/HOUDIN~1.287/houdini/python3.7libs\viewerstate\utils.py”, line 948, in register_pystate_embedded
template = node_type.hdaViewerStateModule().createViewerStateTemplate()
File “C:/PROGRA~1/SIDEEF~1/HOUDIN~1.287/houdini/python3.7libs\hou.py”, line 44976, in __getattr__
return _hou.HDAViewerStateModule___getattr__(self, name)
AttributeError: ‘module’ object has no attribute ‘createViewerStateTemplate’
Qt Warn: Sub class of QObject not inheriting QObject!? Crash will happen when using BackgroundEventHandler.
Qt Warn: Sub class of QObject not inheriting QObject!? Crash will happen when using TaskGraphTableModel.
Qt Warn: Sub class of QObject not inheriting QObject!? Crash will happen when using PaginationHelper.
Qt Warn: Sub class of QObject not inheriting QObject!? Crash will happen when using WorkItemTableModel.
Python 3 - printing to console not working
11175 7 1-
- fabriciochamon
- Member
- 69 posts
- Joined: 1月 2014
- Online
-
- shadesoforange
- Member
- 201 posts
- Joined: 7月 2015
- Offline
AFAIK, the python3 builds of Houdini are in a very early stadium. They probably do not have a public list of what is working and what is not.
I'm not sure if they even accept RFEs/BUGs for it yet.
I'm not sure if they even accept RFEs/BUGs for it yet.
Manuel Köster - Senior Technical Artist @Remedy Entertainment
https://www.remedygames.com/ [www.remedygames.com]
http://shadesoforange.de/ [shadesoforange.de]
https://twitter.com/ShadesOfOrange_ [twitter.com]
https://www.remedygames.com/ [www.remedygames.com]
http://shadesoforange.de/ [shadesoforange.de]
https://twitter.com/ShadesOfOrange_ [twitter.com]
-
- fabriciochamon
- Member
- 69 posts
- Joined: 1月 2014
- Online
-
- Andr
- Member
- 899 posts
- Joined: 2月 2016
- Offline
-
- ant_vfx
- Member
- 55 posts
- Joined: 4月 2012
- Offline
Andr
is it still not outputting to console?
not even outputting to the python shell, it seems.
Am I missing smthing? I'm on 18.5.351 py3 build
I am having the same behaviour on py3 builds only. Must be a bug, the only way I can get it to print to console is via
os.write
Neither
print()
sys.stdout
Edited by ant_vfx - 2021年1月6日 00:03:44
-
- Erwin Heyms
- Member
- 26 posts
- Joined: 5月 2013
- Offline
-
- graham
- Member
- 1925 posts
- Joined: 11月 2006
- Offline
You guys might want to check out today's build:
Houdini 18.5.458 Modified the Python 3 build so that it uses unbuffered stdout and stderr (i.e. PYTHONUNBUFFERED=1), which restores the behavior that was in Python 2.
This fixes an issue where print outs did not appear in the Windows Console on Windows unless the `flush=True` argument was passed into the print function calls.
Graham Thompson, Technical Artist @ Rockstar Games
-
- ant_vfx
- Member
- 55 posts
- Joined: 4月 2012
- Offline
graham
You guys might want to check out today's build:Houdini 18.5.458 Modified the Python 3 build so that it uses unbuffered stdout and stderr (i.e. PYTHONUNBUFFERED=1), which restores the behavior that was in Python 2. This fixes an issue where print outs did not appear in the Windows Console on Windows unless the `flush=True` argument was passed into the print function calls.
Oh, I missed the update! I can confirm this fixed it.
-
- Quick Links