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 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?
  2. Aksel Johnsby

    Aksel Johnsby 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
    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!
  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 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 to a specific python folder someone else could help hopefully.