Thomas-Rogerss-Mac-mini:weewx chop$ pip install configobj
Collecting configobj
Collecting six (from configobj)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, configobj
Successfully installed configobj-5.0.6 six-1.10.0
Thomas-Rogerss-Mac-mini:weewx chop$ ./bin/weewxd weewx.conf
Traceback (most recent call last):
File "./bin/weewxd", line 14, in <module>
import weewx.engine
File "/Users/Shared/weewx/bin/weewx/engine.py", line 21, in <module>
import configobj
ImportError: No module named configobj
Thomas-Rogerss-Mac-mini:bin chop$ locate configobj
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/configobj-5.0.6-py2.7.egg Thomas-Rogerss-Mac-mini:weewx chop$ echo $PYTHONPATH
/usr/local/bin/:/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages:/Users/Shared/weewx/bin/:/Library/Frameworks/Python.framework/Versions/2.7/bin
Even though I've successfully installed configobj via the pip install configobj command, when I try to start weewx it errors with "No module named configobj"
>>> import configobj
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named configobj
No. No luck on that either>>> import configobj
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named configobj
Thomas-Rogerss-Mac-mini:weewx chop$ python -V
Python 2.7.13
Thomas-Rogerss-Mac-mini:weewx chop$ which python
/usr/local/bin/python
Thomas-Rogerss-Mac-mini:weewx chop$ which pip
/usr/local/bin/pip
Thomas-Rogerss-Mac-mini:weewx chop$ which easy_install
/usr/local/bin/easy_install
Thomas-Rogerss-Mac-mini:weewx chop$ Not sure what this tells us, but here's the output of those commands:
On Friday, February 17, 2017 at 2:22:44 PM UTC-5, Thom Rogers wrote:Not sure what this tells us, but here's the output of those commands:
trying to figure out whether you have multiple python installations
I have set PYTHONPATH, as
PYTHONPATH="/usr/local/bin/:/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages:/Users/Shared/weewx/bin/:/Library/Frameworks/Python.framework/Versions/2.7/bin"Thomas-Rogerss-Mac-mini:~ chop$ pip list --format=columns
Package Version
---------- -------
Cheetah 2.4.4
configobj 5.0.6
Markdown 2.6.8
olefile 0.44
Pillow 4.0.0
pip 9.0.1
pyephem 3.7.6.0
pyserial 3.2.1
pysqlite 2.8.3
pyusb 1.0.0
setuptools 32.1.0
six 1.10.0
weewx 3.6.2
wheel 0.29.0
Thomas-Rogerss-Mac-mini:~ chop$ /usr/local/bin/python --version
Python 2.7.13
Thomas-Rogerss-Mac-mini:~ chop$ echo "MAc version OS X El Capitan 10.11.6"
MAc version OS X El Capitan 10.11.6
Thomas-Rogerss-Mac-mini:~ chop$ brew list
gdbm libusb openssl readline
git libusb-compat python sqliteThanks Vince. Here's what those commands produce:
Thomas-Rogerss-Mac-mini:~ chop$ /usr/local/bin/python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import configobj
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named configobj
>>> ^D
Thomas-Rogerss-Mac-mini:~ chop$ /usr/bin/python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import configobj
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named configobjApparently I havr\e both (/usr/bin/python and also /usr/local/bin/python 0 NEITHER ONE IMPORTS CONFIGOBJ
I am currently experiencing exactly the same issue.
Is there another solution than erasing the disk? ;-)