Closed yuanmich2 closed 3 months ago
Hi, thanks for reporting this.
@yuanmich2 Do you remember which path the pywin32
modules were installed to? If it doesn't match one of the system paths printed in the above output, that would explain it, but if it does, then we'll need to take a deeper look
Hey @jericht,
Thanks for looking into this.
I installed pywin32 in a number of different places, but it didn't seem to make a difference. At the very end of my initial post I mentioned this.
I initially installed pywin32 in the same spot as where openjd was because the openjd import was working. This was the default folder that the pip install
command chooses. I then went through the list of system paths from the logs and installed pywin32 to a random selection of those through pip install -t path/to/folder
I even went as far as to install pip on c4dpy.exe and used that pip to install to wherever that python binary gets its modules.
This is solved by installing pywin32 into Cinema4D's python, rather than c4dpy.exe.
I'll include these instructions in the DEVELOPMENT.md in an upcoming change
Expected Behaviour
I install pywin32 and expect the adaptor to be able to render.
Current Behaviour
It fails with this error:
Reproduction Steps
I installed python3.10 and C4D 2023 onto a Windows 2019 EC2 instance. I then installed all the python modules and submit a job.
I double-checked that I installed pywin32 and even made sure that both python3.10 and C4D's internal python interpreter could see the module:
I edited also edited the DeadlineCloudClient.pyp file to add the following lines:
these lines produced the following output:
which shows that we were able to modify the system path to include the openjd module, but for some reason win32file can't be located even though it was installed to the same place as openjd.
I also tried installing pywin32 to a number of the other directories that show up in the system paths, but I am still getting the error.
Code Snippet
n/a