Hard to say without seeing the exact sequence you used, but it's highly
likely that you tried to install configobj from the /home/weewx directory.
Pip will see the "setup.cfg" file in there, and attempt to install
configobj in among the weewx code. Check /home/weewx/bin and see if there
are any configobj related files in there.

Either

1. Install using pip from a directory other than /home/weewx; or
2. Install using apt:
   sudo apt install python3-configobj

-tk

On Sat, May 27, 2023 at 5:12 AM vigilance wx <[email protected]> wrote:

> Cant upgrade from weewx 3,9,2 to weewx 4.10.2
>
>
>
> Get to run sudo python3 ./setup.py install
>
>
>
> I get this error
>
>
>
> copying util/udev/rules.d/vantage.rules -> /home/weewx/util/udev/rules.d
>
> copying util/udev/rules.d/wmr300.rules -> /home/weewx/util/udev/rules.d
>
> copying util/udev/rules.d/cc3000.rules -> /home/weewx/util/udev/rules.d
>
> copying util/udev/rules.d/te923.rules -> /home/weewx/util/udev/rules.d
>
> running install_egg_info
>
> Removing /home/weewx/bin/weewx-4.10.2.egg-info
>
> Writing /home/weewx/bin/weewx-4.10.2.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 23, in <module>
>
>     import configobj
>
> ModuleNotFoundError: No module named 'configobj'
>
>
>
> So i Try to install pip3 install configobj
>
>
>
> Looking in indexes: https://pypi.org/simple,
> https://www.piwheels.org/simple
>
> Collecting configobj
>
>  Using cached
> https://files.pythonhosted.org/packages/d3/bb/d10e531b297dd1d46f6b1fd11d018247af9f2d460037554bb7bb9011c6ac/configobj-5.0.8-py2.py3-none-any.whl
>
> Requirement already satisfied: six in /usr/lib/python3/dist-packages (from
> configobj) (1.12.0)
>
> Installing collected packages: configobj
>
> Exception:
>
> Traceback (most recent call last):
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py",
> line 143, in main
>
>     status = self.run(options, args)
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py",
> line 386, in run
>
>     use_user_site=options.use_user_site,
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/req/__init__.py",
> line 49, in install_given_reqs
>
>     **kwargs
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py",
> line 760, in install
>
>     use_user_site=use_user_site, pycompile=pycompile,
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py",
> line 382, in move_wheel_files
>
>     warn_script_location=warn_script_location,
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/wheel.py", line 215,
> in move_wheel_files
>
>     prefix=prefix,
>
>   File "/usr/lib/python3/dist-packages/pip/_internal/locations.py", line
> 165, in distutils_scheme
>
>     i.finalize_options()
>
>   File "/usr/lib/python3.7/distutils/command/install.py", line 274, in
> finalize_options
>
>     raise DistutilsOptionError("can't combine user with prefix, "
>
> distutils.errors.DistutilsOptionError: can't combine user with prefix,
> exec_prefix/home, or install_(plat)base
>
>
>
> So its not a weewx error it’s a “my installation error”
>
> Other than a fresh install on my raspberry pi any ideas?
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/c134bab6-2fd2-468f-b1a3-3e2caf7bc41dn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/c134bab6-2fd2-468f-b1a3-3e2caf7bc41dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDn2Rr0HbBzAGOjPoYVG-EVv3QSha9PfjKEuR2_uicK3w%40mail.gmail.com.

Reply via email to