-
Notifications
You must be signed in to change notification settings - Fork 124
Bug: Houdini 20+ errors on launch due to click dependency #5921
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior:
Houdini 20+ on launch will show a bunch or errors on bookish which tries to run a flask server using click as one of its dependencies. However, it picks up the click dependency in OpenPype instead of Houdini's native click dependency.
The newer version of click apparently exposes new attributes our older version does not have:
from click.core import ParameterSourceThis is the failing line, see the log output below.
Houdini uses click version 8.1.6
OpenPype uses click version 7.1.2
We are likely on an older version because click 8.0+ dropped Py2 support.
Due to this error the Houdini native Help browser does not seem to work - other than that and the error it looks like Houdini does work fine, but of course there may be other obscure issues not found yet.
Expected Behavior:
The provided lib from OpenPype should not conflict with the one from Houdini so that Houdini can operate as normal.
We should either update our dependency to match (which is just us 'getting lucky'?) or avoid mangling dependencies if Houdini provides it?
Do we even need the click dependency from OpenPype/AYON in Houdini?
Version
3.17.6-nightly.3
What platform you are running OpenPype on?
Windows
Steps To Reproduce:
- Configure Houdini 20.0.506
- Launch Houdini from OpenPype
- See Houdini console
Are there any labels you wish to add?
- I have added the relevant labels to the bug report.
Relevant log output:
Installing OpenPype ...
Setting scene FPS to 25
Could not initialize the help server:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.506/houdini/python3.9libs\houdinihelp\api.py", line 126, in initialize
bookish_app = get_houdini_app(use_houdini_path=bool(hou))
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.506/houdini/python3.9libs\houdinihelp\server.py", line 25, in get_houdini_app
from bookish import flaskapp, flasksupport
File "C:\Program Files\Side Effects Software\Houdini 20.0.506\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\PROGRA~1/SIDEEF~1/HOUDIN~1.506/houdini/python3.9libs\bookish\flaskapp.py", line 37, in <module>
import flask
File "C:\Program Files\Side Effects Software\Houdini 20.0.506\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.506\python39\lib\site-packages\flask\__init__.py", line 2, in <module>
from .app import Flask as Flask
File "C:\Program Files\Side Effects Software\Houdini 20.0.506\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.506\python39\lib\site-packages\flask\app.py", line 34, in <module>
from . import cli
File "C:\Program Files\Side Effects Software\Houdini 20.0.506\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.506\python39\lib\site-packages\flask\cli.py", line 15, in <module>
from click.core import ParameterSource
ImportError: cannot import name 'ParameterSource' from 'click.core' (C:\Program Files (x86)\OpenPype\3.17.4-colorbleed.1\dependencies\click\core.py)Additional context:
No response
[cuID:OP-7416]
