OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) New git pull – unsuccessful

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #34789

    ajm1
    Participant

    Followed instructions here: http://rayshobby.net/mediawiki/index.php?title=Python_Interval_Program_for_OSPi#From_an_earlier_version

    git clone https://github.com/Dan-in-CA/OSPi
    cd OSPi
    sudo python ospi.py
    Traceback (most recent call last):
      File "ospi.py", line 4, in <module>
        import i18n
    ImportError: No module named i18n
    
    so I installed i18n described at the bottom of the link shown above
    
    Now I get 
    sudo python ospi.py
    Traceback (most recent call last):
      File "ospi.py", line 168, in <module>
        '_': _
    NameError: name '_' is not defined
    
    
    This is where I am stuck
    
    
    #34790

    bob9
    Participant

    I’m also in the same boat and interested in a response to this problem. Again this was caused by executing “git pull” to get the latest from the /home/pi/OSPi directory…

     

      File “ospi.py”, line 168, in <module>

        ‘_’: _

    NameError: name ‘_’ is not defined

    |^C

     

    [1]+  Exit 1                  sudo /usr/bin/python ospi.py

    #34792

    Dan in CA
    Participant

    I am in the middle of an update that will add multiple language support.

    The problems you are having are related to that. It is working properly on my test system. I’m looking for the cause.

    EDIT: The i18n.py file is now in the repository. If you do

    git pull

    from the OSPi directory it should fix the problem.

    Dan

    #34801

    ajm1
    Participant

    Ok, a git pull added the i18n.py file and everything fires up.  Thank you for the support.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) New git pull – unsuccessful