Installation issues on Synology DS918+ -- No module named configobj

61 views
Skip to first unread message

Ivan Schrooyen

unread,
Mar 18, 2020, 8:21:19 AM3/18/20
to weewx-user
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



Thomas Keffer

unread,
Mar 18, 2020, 8:39:31 AM3/18/20
to weewx-user
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

--
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/378728d5-fe58-4bdc-acb6-102dcbeac6fe%40googlegroups.com.

Ivan Schrooyen

unread,
Mar 18, 2020, 8:49:29 AM3/18/20
to weewx-user
Hello,

Thanks for your fast answer.

I have actually run all installation as root user.
In order to do that on Synology, I had to issue the command "sudo -i" before hand.

In any case, I have tried both options mentioned in your last post a couple of seconds ago, and I am still stuck with the same error message.

Is there anything else you recommend me to 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 weewx...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages