ccmasterkernal Python

We are currently on ContextCapture update 19 and have attempted to run the supplied cc_py_cmd.bat.  It failed, which may be caused by a security setting.  I have asked our I.T. support to look into this.  My question/comments:  Has anyone gotten ccmasterkernel-10.19.0.122-cp36-cp36m-win_amd64.whl successfully installed into a conda virtual environment?  Conda is our virtual environment manager of choice, and we really do not want to go down the path of having multiple virtual environment managers.  Any tips or guidance would be appreciated.

Thanks 

Parents
  • Cyril,

    Conda version is 4.9.2 and using conda create I can have any version of python I need, but for ccmasterkernel-10.19.0.122-cp36-cp36m-win_amd64.whl I create Python 3.6.4

     

  • Hello Marc,

    I think we have an issue in Update 19.1, which is going to be resolved in Update 20.

    In the mean time, I have a workaround for you!

    Create your conda environment using conda create -n "cc36" python=3.6.4, then conda activate cc36 and pip install "C:\Program Files\Bentley\ContextCapture Center\sdk\dist\ccmasterkernel-XXXXXXX.whl".

    Then the tricky part: in C:\Users\USER.NAME\Anaconda3\envs\cc36\Lib\site-packages\ccmasterkernel\__init__.py, change the file to look like this:

    (highlighted parts are the one you need to change).

    Then you can test this is working fine by executing python and import ccmasterkernel. Let me know if this works!

  • Cyril,

    The pip install of the ccmasterkernal-XXXX.whl fails with an SSL error on the virtualenv package.  I have moved this issue to our I.T. personnel.  They actually have the responsibility to figure out how to do this install and maintain our Security environment.

    Thanks for the attempted assistance.  

  • Cyril,

    I made the recommended change from above, but the next line of the __int__.py

    from ccmasterkernel.bindings import *

    throws this unhandled exception:

    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "C:\Users\myname\AppData\Local\Bentley\ContextCaptureSDK_CCDesktop\10.20.0.4117\lib\site-packages\ccmasterkernel\__init__.py", line 25, in <module>
    from ccmasterkernel.bindings import *
    ImportError: dynamic module does not define module export function (PyInit_bindings)

    Side note:It was the security software Zscaler that was blocking the install of virtualenv

Reply
  • Cyril,

    I made the recommended change from above, but the next line of the __int__.py

    from ccmasterkernel.bindings import *

    throws this unhandled exception:

    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "C:\Users\myname\AppData\Local\Bentley\ContextCaptureSDK_CCDesktop\10.20.0.4117\lib\site-packages\ccmasterkernel\__init__.py", line 25, in <module>
    from ccmasterkernel.bindings import *
    ImportError: dynamic module does not define module export function (PyInit_bindings)

    Side note:It was the security software Zscaler that was blocking the install of virtualenv

Children