Import Error

Discussion in 'Module Connector (MC)' started by Daniel Robinson, Jul 30, 2018.

  1. Daniel Robinson

    Daniel Robinson New Member

    Moved thread here seemed more appropriate, Hey when trying to run XEP_X4M200_X4M300_plot_record_playback_radar_raw_data.py it comes up with no module named pymoduleconnector.moduleconnector, I know others have had problems with this using moduleconnector for the pi is there a windows solution yet?
    [​IMG]
     
  2. Aksel Johnsby

    Aksel Johnsby Moderator Staff Member

    Hi Daniel,
    For python moduleconnector and all its functions and classes is "wrapped" as pymoduleconnector. Just write
    import pymoduleconnector
    then you should have what you need.

    Check out the documentation at
    module_connector\python27-win64\pymoduleconnector\doc\output\html\index.xhtml
    to find where classes, subclasses and functions are located.

    Additionally, I recommend reading through the examples provided in Moduleconnector to get a better understanding on how to write a script for XeThru sensors.

    Have a great day!
    --
    Aksel
     
  3. Daniel Robinson

    Daniel Robinson New Member

  4. Daniel Robinson

    Daniel Robinson New Member

    Charlie Shao and Aksel Johnsby like this.
  5. Anwar Elhadad

    Anwar Elhadad Member

    Did it work with python 2.7?
     
  6. Daniel Robinson

    Daniel Robinson New Member

    When running the setup.py it should say where its installing itself, for some reason it installed to the 32 bit python folder I had so I just used that not sure how to point setup.py to a specific python folder someone else could help hopefully.