-
Notifications
You must be signed in to change notification settings - Fork 127
Bug: Houdini 20+ errors on launch due to click
dependency
#5921
Comments
@iLLiCiTiT any ideas for best approach? |
Oh crap, why it takes |
Not sure where to look for that unfortunately. Haha. |
Also, if we need |
It's actually needed all the time. Addons can add cli commands using |
Aaargh. I don't want to do wrapper around wrapper because a DCC is using different version 😢 |
It seem that we already have a special Then Houdini might be able to function fine? So the other click dependency should maybe be in Not sure if this info is helpful: |
I don't see a reason to move it to py3 dependencies? If we would update we don't need to move it to py3 dependencies. We have older version to support Python 3.6 (resolve, fusion), so updating will break that, and I do expect we'll hit other issues in different DCCs after update. |
Would pre-pending the Houdini libs path in
This is before launching the DCC, right? Or is to execute addons stuff within the DCC? Is there an example around? |
I suspect this would work yes - I've done something similar before in OpenRV at the time. A bit of a hack though, but should be doable. We'd need to make sure to
It's actually because the DCCs will also import the modules, and thus also import the part of the addon/module that defines the CLI (it basically imports that). Anyway, that would still not fix the PIL issue itself |
PIL should be also added to 3rd party dependencies (I thought it's already there). |
Closing this as workaround for e.g. AYON/OpenPype have been mentioned here and there by prepending Houdini's pythonpath to the application environment. That's worked surprisingly well for both AYON and OpenPype. |
Is there an existing issue for this?
Current Behavior:
Houdini 20+ on launch will show a bunch or errors on
bookish
which tries to run a flask server usingclick
as one of its dependencies. However, it picks up theclick
dependency in OpenPype instead of Houdini's nativeclick
dependency.See:
![image (52)](https://private-user-images.githubusercontent.com/2439881/283125649-d7100eee-a444-4639-83ce-e2656a34ffb4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MDAyNTIsIm5iZiI6MTczOTQ5OTk1MiwicGF0aCI6Ii8yNDM5ODgxLzI4MzEyNTY0OS1kNzEwMGVlZS1hNDQ0LTQ2MzktODNjZS1lMjY1NmEzNGZmYjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTRUMDIyNTUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjkxMjE5ODk1MDhlYzE3MTg3ZWQ5ZmM4OTc5MTU0NWNlMTA4YzBmZDQyODY3ODBhNjk4ZjJlNTIyNTExZTUxYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.DEH1nQAdu6NjZeQT2kBJoE04NedAdjXwBAWrUFSXlNg)
The newer version of
click
apparently exposes new attributes our older version does not have:This is the failing line, see the log output below.
Houdini uses
click
version8.1.6
OpenPype uses
click
version7.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:
Are there any labels you wish to add?
Relevant log output:
Additional context:
No response
[cuID:OP-7416]
The text was updated successfully, but these errors were encountered: