Because you installed configobj using pip, but *without root privileges*,
pip did what's called a "user" install. Because "sudo" was not specified,
it could not install configobj in the system directories, so, instead, it
installed in a subdirectory (usually ".local") of your home directory.

Then, when you ran setup.py, it either used a different version of python,
or it used the wrong PYTHONPATH.

There are two possible solutions:

   1. Do the pip installs using "sudo". E.g., "sudo python2 -m pip install
   configobj"
   2. Use the same version of Python when running setup.py:

*python2 setup.py build*

See if that helps.

-tk

On Wed, Mar 18, 2020 at 5:21 AM Ivan Schrooyen <[email protected]>
wrote:

> Hello,
>
> I would like to become a new user of Weewx and install it on my Synology
> NAS (DS918+).
>
> The NAS is running the latest OS from Synology: DSM 6.2.2-24922.
>
> The installation procedure to be followed is according to me the one with
> python.
>
> The NAS has 2 versions of python installed: 2.7.12 (python2) and 3.5.1
> (python3).
>
> I have done the prerequisites:
> - python2 -m pip install configobj
> - python2 -m pip install Cheetah
> - python2 -m pip install pillow
> - python2 -m pip install pyserial
> - python2 -m pip install pyusb
>
> I have downloaded the package (3.9.2), then uncompressed, and I am finally
> stuck at the "./setup.py build" command that does not run.
>
> The error message is the following:
> root@NAS:~/weewx/weewx-3.9.2# ./setup.py build
> Traceback (most recent call last):
>   File "./setup.py", line 19, in <module>
>     import configobj
> ImportError: No module named configobj
>
> For information, the installation of configobj returns the following:
> root@NAS:~/weewx/weewx-3.9.2# python2 -m pip install configobj
> DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
> Please upgrade your Python as Python 2.7 is no longer maintained. A future
> version of pip will drop support for Python 2.7. More details about Python
> 2 support in pip, can be found at
> https://pip.pypa.io/en/latest/development/release-process/#python-2-support
> Processing
> /root/.cache/pip/wheels/c1/12/7a/c676d85d30d1aa17f3882dab925a777ab1f651c4072cccefd7/configobj-5.0.6-py2-none-any.whl
> Requirement already satisfied: six in /usr/lib/python2.7/site-packages
> (from configobj) (1.12.0)
> Installing collected packages: configobj
> Successfully installed configobj-5.0.6
>
> Does anyone know what I should do or try?
>
> Thanks in advance,
> Ivan
>
>
>
> --
> 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/378728d5-fe58-4bdc-acb6-102dcbeac6fe%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/378728d5-fe58-4bdc-acb6-102dcbeac6fe%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/CAPq0zECzAAvrsf-g%3DWEjjuLiWuTru2Kd_eD-t_Z3HKfkagh9mQ%40mail.gmail.com.

Reply via email to