ArducamSDK.pyd

Published by Senso on

Home Forums Arducam USB Camera Shields ArducamSDK.pyd

Viewing 5 reply threads
  • Author
    Posts
    • #14608
      Senso
      Participant

      Hello, I recently purchased an Arducam USB shield and two camera modules (MT9F002 and MT9N001.)

      When trying to run the Python demo programs I get the error that ArducamSDK does not exist. Of course it does: ArducamSDK.pyd is on the same directory as the demo script. I tried all sorts of things to get Python to ‘see’ the module without any joy.

      I investigated the file ArducamSDK.pyd and found that it depends on two other files that don’t exist on my computer: python27.dll and MSVCR90.dll.

      I’m running Python 3, not 2, so I shouldn’t expect python27.dll to be there should I? I don’t want to try to have both Python 3 and Python 2 installed side by side. The documentation for the Python SDK says clearly that it is compatible with both versions.

      What could I be doing wrong?

    • #17147
      Senso
      Participant

      To be clear, I would like to run the demo programs, but it is more important that I be able to use the Python SDK in my own programs. A version of the SDK that is specific to Python 3.x would be OK with me.

    • #17231
      Senso
      Participant

      I managed to get this working by adding the location of the Python37.dll to the Windows environment PATH variable.

      I admit that it is not clear to me how ArducamSDK.pyd, ArducamSDK.cp36-win_amd64.pyd, and ArducamSDK.cp37-win_amd64.pyd are related and how they are best used in my own programs. Please forgive my ignorance.

    • #17687
      wong
      Moderator

      @Senso
      The python dynamic library between different versions is not compatible, so we have released several dynamic libraries corresponding to different versions of python. ArducamSDK.pyd, ArducamSDK.cp36-win_amd64.pyd, and ArducamSDK.cp37-win_amd64.pyd respectively correspond to python2.7, python3.6 and python3.7. They are all 64-bit. If you have other requirements, we can provide the version you need.

    • #19972
      Senso
      Participant

      Thank you for your help!

      I am developing software on two different computers. At home I have Python 3.6 and was able to use the SDK. At work the computer has Python 3.8 installed and the SDK does not work. I will uninstall version 3.8 and install version 3.6 or 3.7 as a work-around.

      Hopefully you will eventually find a solution that does not depend on PythonXX.dll. The preferred solution would be a module that can be installed with pip.

    • #26077
      bin
      Keymaster

      Sorry for missing your post. Thanks for your great advice.

Viewing 5 reply threads
  • You must be logged in to reply to this topic.