Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use python-use-system-env to have Blender check PYTHONPATH. #125

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

erico-aws
Copy link
Contributor

@erico-aws erico-aws commented Oct 1, 2024

What was the problem/requirement? (What/Why)

Loading of libraries seems to have changed between Blender 3.6 and 4.2. When run with 4.2, the adaptor client is unable to find adaptor_runtime_client and openjd.


openjd_progress: 0
--
2237 | openjd_status: Initializing blender
2238 | INFO: ENQUEUING ACTION render_scene
2239 | INFO: ENQUEUING ACTION view_layer
2240 | INFO: SKIPPING ACTION camera: NOT IN INIT DATA
2241 | INFO: ENQUEUING ACTION output_dir
2242 | INFO: ENQUEUING ACTION output_file_name
2243 | INFO: SKIPPING ACTION output_format: NOT IN INIT DATA
2244 | WARNING: Missing configuration for cycles render engine.
2245 | INFO: Running command: blender --background --python /build/.condaroot/envs/blender-openjd-test-4.2/opt/deadline-cloud-for-blender/deadline/blender_adaptor/BlenderClient/blender_client.py
2246 | STDOUT: Blender 4.2.2 LTS (hash c03d7d98a413 built 2024-09-24 00:09:56)
2247 | STDERR: Traceback (most recent call last):
2248 | STDERR:   File "/build/.condaroot/envs/blender-openjd-test-4.2/opt/deadline-cloud-for-blender/deadline/blender_adaptor/BlenderClient/blender_client.py", line 14, in <module>
2249 | STDERR:     from adaptor_runtime_client import ClientInterface
2250 | STDERR: ModuleNotFoundError: No module named 'adaptor_runtime_client'
2251 | STDERR:
2252 | STDERR: During handling of the above exception, another exception occurred:
2253 | STDERR:
2254 | STDERR: Traceback (most recent call last):
2255 | STDERR:   File "/build/.condaroot/envs/blender-openjd-test-4.2/opt/deadline-cloud-for-blender/deadline/blender_adaptor/BlenderClient/blender_client.py", line 17, in <module>
2256 | STDERR:     from openjd.adaptor_runtime_client import ClientInterface
2257 | STDERR: ModuleNotFoundError: No module named 'openjd'
2258 | STDOUT:
2259 | STDOUT: Blender quit


What was the solution? (How)

Adding the --python-use-system-env flag to the blender command resolved the issue.

What is the impact of this change?

Allows for Blender 4.2 support.

How was this change tested?

Tested by running a Blender 4.2 render through the adaptor and comparing the output to a expected output image.

--python-use-system-env is available in Blender 3.6 and also passes the same test.

Was this change documented?

No.

Is this a breaking change?

No

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@erico-aws erico-aws requested a review from a team as a code owner October 1, 2024 20:33
Signed-off-by: Eric Osiowy <134728121+erico-aws@users.noreply.github.com>
Copy link

sonarqubecloud bot commented Oct 2, 2024

@erico-aws erico-aws merged commit c73bbe2 into aws-deadline:mainline Oct 2, 2024
15 checks passed
@erico-aws erico-aws deleted the use-python-env branch October 2, 2024 16:22
This was referenced Oct 11, 2024
This was referenced Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants