Jump to content

elch

Limited Member
  • Posts

    2
  • Joined

  • Last visited

HW | SW Information

  • DCC
    Houdini
  • Renderer
    Arnold, Redshift
  • OS
    Windows 10
  • CPU
    multiple
  • GPU
    NVidia

elch's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. elch

    Python assistance

    Update: I managed to get pip running, but still no success with PySide2: C:\Program Files\MAXON Cinema 4D R23>c4dpy.exe -m ensurepip --default-pip [...] C:\Program Files\MAXON Cinema 4D R23>c4dpy.exe -m pip install --upgrade pip [...] Successfully installed pip-21.0.1 C:\Program Files\MAXON Cinema 4D R23>c4dpy.exe -m pip cache purge C:\Program Files\MAXON Cinema 4D R23>c4dpy.exe -m pip install PySide2 [...] Installing collected packages: shiboken2, PySide2 C:\Program Files\MAXON Cinema 4D R23>c4dpy.exe -m pip list Package Version ---------- ------- pip 21.0.1 PySide2 5.15.2 setuptools 41.2.0 shiboken2 5.15.2 C:\Program Files\MAXON Cinema 4D R23>c4dpy.exe Welcome to the world of C4D and Python 3.7.7+ (pipelines/3140:6cd6127, May 23 2020, 03:19:53) [MSC v.1900 64 bit (AMD64)] (c) 2021 >>> import PySide2 PySide2/__init__.py: Unable to import shiboken2 from C:\Program Files\MAXON Cinema 4D R23\resource\modules\python\libs\python37, %APPDATA%\MAXON\MAXON Cinema 4D R23_DBA5903C_p\python37, C:\Program Files\MAXON Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib, C:\Program Files\MAXON Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\dlls, C:\Program Files\MAXON Cinema 4D R23, %APPDATA%\MAXON\python37\libs, %APPDATA%\MAXON\MAXON Cinema 4D R23_DBA5903C_p\python37\libs, C:\Program Files\MAXON Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib\site-packages Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files\MAXON Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib\site-packages\PySide2\__init__.py", line 107, in <module> _setupQtDirectories() File "C:\Program Files\MAXON Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories import shiboken2 File "C:\Program Files\MAXON Cinema 4D R23\resource\modules\python\libs\python37.win64.framework\lib\site-packages\shiboken2\__init__.py", line 27, in <module> from .shiboken2 import * ImportError: DLL load failed: The specified module could not be found. >>> I can successfully load PySide1 into Cinema4D R22 but neither PySide 1 nor 2 to Cinema4D R23. Tried other versions as well, e.g. `c4dpy.exe -m pip install --upgrade PySide2==5.13` as that's the version recommended on https://vfxplatform.com/ but without any luck.
  2. elch

    Python assistance

    Is there a recommended / best practice way of installing PySide2 for Cinema4D R23 on Windows 10? I can create a Python3 virtual environment, install PySide2 and everything will work in there. But adding that virtual environment's site-packages path to Cinema4D's environment and trying to import PySide2, the shiboken2 import will fail because the DLL cannot be loaded. Now c4dpy.exe is Python 3.7.7 compiled with MSC v.1900 and I assume that I'll have to install matching versions of PySide2 and shiboken2. Running c4dpy.exe from the command line, I can not "import pip". Running "c4dpy.exe -m pip install PySide2" just finishes silently (no output) but PySide2 is not installed after that. How are you guys doing it? Cheers, Michael
×
×
  • Create New...

Copyright Core 4D © 2024 Powered by Invision Community