upgrade 4.0 to 4.1 - ImportError: No module named configobj at setup.py install

79 views
Skip to first unread message

Tarmo

unread,
May 25, 2020, 4:49:01 PM5/25/20
to weewx-user
hi!

please help on this:

sudo ./setup.py install
.
.
.
Removing /home/weewx/bin/weewx-4.1.0.egg-info
Writing /home/weewx/bin/weewx-4.1.0.egg-info
Traceback (most recent call last):
  File "/home/weewx/bin/wee_config", line 12, in <module>
    from weecfg.config import ConfigEngine, Logger
  File "/home/weewx/bin/weecfg/__init__.py", line 22, in <module>
    import configobj
ImportError: No module named configobj

pi@pi3:~/weewx-4.1.0 $ sudo apt install python3-configobj
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-configobj is already the newest version (5.0.6-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



Tom Keffer

unread,
May 25, 2020, 5:16:38 PM5/25/20
to weewx-user
Follow the setup.py instructions carefully. You want

sudo python3 ./setup.py install

Otherwise it will use whatever is the default version of Python on your system, which is probably python 2.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/66f0a262-1021-4080-b784-720de1e81807%40googlegroups.com.

gjr80

unread,
May 25, 2020, 5:18:22 PM5/25/20
to weewx-user
Are you sure you are running setup.py under python 3 or is it perhaps defaulting to python 2 (and thus you need python-configobj)?

Gary

Tom Keffer

unread,
May 25, 2020, 5:19:21 PM5/25/20
to weewx-user
In fairness, I just noticed that the upgrade instructions on the Upgrade Guide say use "sudo python ./setup.py install". We should probably update the update.

-tk

Tarmo

unread,
May 25, 2020, 5:22:00 PM5/25/20
to weewx-user
of course it is default python thing. thanks! :)
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages