X4 Problems with read raw data in python with X4M200

Discussion in 'X2 & X4 SoC' started by Martin Urban, Oct 15, 2019.

  1. Martin Urban

    Martin Urban New Member

    Hi i have question regarding the example python script "XEP_X4M200_X4M300_plot_record_playback_radar_raw_data.py". I am using anaconda with python 3.7 but it generates this error :
    Code:
    (base) C:\Users\hr4056\Neuer Ordner\python36-win64\pymoduleconnector\examples>python XEP_X4M200_X4M300_plot_record_playback_radar_raw_data.py -d COM18
    Traceback (most recent call last):
      File "XEP_X4M200_X4M300_plot_record_playback_radar_raw_data.py", line 25, in <module>
        import pymoduleconnector
      File "C:\Users\hr4056\AppData\Local\Continuum\anaconda3\lib\site-packages\pymoduleconnector-1.6.2-py3.7.egg\pymoduleconnector\__init__.py", line 2, in <module>
        from .moduleconnector import DataReader
      File "C:\Users\hr4056\AppData\Local\Continuum\anaconda3\lib\site-packages\pymoduleconnector-1.6.2-py3.7.egg\pymoduleconnector\moduleconnector.py", line 5, in <module>
        from .moduleconnectorwrapper import \
      File "C:\Users\hr4056\AppData\Local\Continuum\anaconda3\lib\site-packages\pymoduleconnector-1.6.2-py3.7.egg\pymoduleconnector\moduleconnectorwrapper\__init__.py", line 28, in <module>
        _moduleconnectorwrapper = swig_import_helper()
      File "C:\Users\hr4056\AppData\Local\Continuum\anaconda3\lib\site-packages\pymoduleconnector-1.6.2-py3.7.egg\pymoduleconnector\moduleconnectorwrapper\__init__.py", line 24, in swig_import_helper
        _mod = imp.load_module('_moduleconnectorwrapper', fp, pathname, description)
      File "C:\Users\hr4056\AppData\Local\Continuum\anaconda3\lib\imp.py", line 242, in load_module
        return load_dynamic(name, filename, file)
      File "C:\Users\hr4056\AppData\Local\Continuum\anaconda3\lib\imp.py", line 342, in load_dynamic
        return _load(spec)
    ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
    I have also tried it by using python 3.6 but it is the same. Also i tried it by following the steps in the XETHRU Sensor Introduction PDF with using conda, but it didn't work either. Is this error an only python-version related issue or can it be caused by other mistakes?How is it possible to include the libraries in spyder by hand? I know that this post i similar to this https://www.xethru.com/community/threads/x4m300-why-python32-example-dont-work.646/ but it didn't helped me.

    best greetings
     
    Last edited: Oct 15, 2019
  2. Charlie Shao

    Charlie Shao Moderator Staff Member

    Hi Martin,

    You have to use Python3.6 or Python2.7, Python3.7 is not supported by ModuleConnector.

    I suppose multiple versions of python are on your computer now. Please make sue only one version of python is installed on your computer, and check the python version before you install ModuleConnector.
     
  3. Martin Urban

    Martin Urban New Member

    thank you, this solved the problem