Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Error #5

Closed
bartje opened this issue Nov 26, 2017 · 2 comments
Closed

Import Error #5

bartje opened this issue Nov 26, 2017 · 2 comments

Comments

@bartje
Copy link

bartje commented Nov 26, 2017

I'm trying to use the T-home/.../sma scripts, but I'm receiving a number of error messages.
The most common messages are import-errors 'ImportError: No module named tHome.sma'.
Could you give me a couple of hints to resolve them?

Thanks

@TD22057
Copy link
Owner

TD22057 commented Nov 27, 2017

You'll have to install python/tHome somewhere in your PYTHONPATH like /usr/local/lib/python2.7/site-packages. Or edit PYTHONPATH to point to it (assuming bash):

cd tHome
export PYTHONPATH=`pwd`/python
python2 bin/tHome-sma.py

You may have to edit the first line of the scripts depending on your system. I wrote it awhile ago when python2 was standard (most systems are python3 now). I also never bothered to make a setuptools script (though that shouldn't be that hard). Also just an FYI but I sold the house w/ the panels and SMA inverter so I can help you get it running but I can't do much more than that at this point.

@bartje
Copy link
Author

bartje commented Nov 27, 2017

thanks, I just figured that out to. I started to adapt it for Python3, but I think that for now I will continue on your Python2 version.

@bartje bartje closed this as completed Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants