ImportError: No module named tis_class
Question: I've a Python3 script, normally works great.

But I've this module error message in line 5 :

    
    
        pi@raspberrypi ~ $ python3 ScriptCompteur.py
    Traceback (most recent call last):
      File "ScriptCompteur.py", line 5, in <module>
        import tis_class as TIS
    ImportError: No module named tis_class
    

Can you help me ?

Below a part of the script :

    
    
    import requests
    import json
    import time
    import serial
    import tis_class as TIS
    #variables
    portserie='/dev/ttyUSB0'
    baudrate=9600
    timeout_serial=2
    temps_attente=10 #30 secondes
    periode=15 #mesure de l'information pendant cette periode
    sense_key="4bgd5Q8_6Oc4V8m2eDK_0g"
    sense_url="http://api.sen.se/events/"
    sense_head={'Content-type': 'application/json', 'sense_key':sense_key}
    sense_feed=26341
    stick=TIS.TeleInfo(portserie,baudrate,timeout_serial)
    #initialisation
    minute_debut=time.strftime('%M')
    
    ...
    ...
    


Answer: It didn't find the module `tis_class`. As this doesn't seem to be a commonly
available library it's probably a custom module in your system. It can't be
found either because it's not on the path where Python looks for modules, or
because it itself imports something that has a syntax error, which in some
cases gives errors like this.

