SkyWeather2 Installation Guide Update

Several folks have brought to my attention my SkyWeather2 automated installation script fails to complete. The problem has been corrected and a new version of the script is available here.

The latest script has been tested with SkyWeather2 Version 027.1 and Raspberry PiOS dated October 30, 2021.

Sopwith

7 thoughts on “SkyWeather2 Installation Guide Update

  1. More specific :
    ERROR: Command errored out with exit status 1:
    command: /usr/bin/python3 -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘/tmp/pip-install-eox7trio/mysqlclient_0eab14b0475f4db78e30295d803aaa96/setup.py'”‘”‘; __file__='”‘”‘/tmp/pip-install-eox7trio/mysqlclient_0eab14b0475f4db78e30295d803aaa96/setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base /tmp/pip-pip-egg-info-z60x4yuu
    cwd: /tmp/pip-install-eox7trio/mysqlclient_0eab14b0475f4db78e30295d803aaa96/
    Complete output (15 lines):
    /bin/sh: 1: mysql_config: not found
    /bin/sh: 1: mariadb_config: not found
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
    File “”, line 1, in
    File “/tmp/pip-install-eox7trio/mysqlclient_0eab14b0475f4db78e30295d803aaa96/setup.py”, line 15, in
    metadata, options = get_config()
    File “/tmp/pip-install-eox7trio/mysqlclient_0eab14b0475f4db78e30295d803aaa96/setup_posix.py”, line 70, in get_config
    libs = mysql_config(“libs”)
    File “/tmp/pip-install-eox7trio/mysqlclient_0eab14b0475f4db78e30295d803aaa96/setup_posix.py”, line 31, in mysql_config
    raise OSError(“{} not found”.format(_mysql_config_path))
    OSError: mysql_config not found
    mysql_config –version
    mariadb_config –version
    mysql_config –libs
    —————————————-
    WARNING: Discarding https://files.pythonhosted.org/packages/de/79/d02be3cb942afda6c99ca207858847572e38146eb73a7c4bfe3bdf154626/mysqlclient-2.1.0.tar.gz#sha256=973235686f1b720536d417bf0a0d39b4ab3d5086b2b6ad5e6752393428c02b12 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

    • My install script will not work with the latest SkyWeather2 framework. See this post.
      Until they create a script that creates the mySQL data structures, you will have to purchase their software on a SDCard.

      Sorry.

      Sopwith

  2. Hi
    I installed your script but had the follwoing error when securing the sql databases:
    pi@skyweather2:~/SDL_Pi_Skyweather2 $ sudo mysql -u root -p < WeatherSenseWireless.sql
    Enter password:
    ERROR 1046 (3D000) at line 5: No database selected
    pi@skyweather2:~/SDL_Pi_Skyweather2 $

    • Maurice,

      Thanks for the alert. I will update my script to accommodate the new database changes this week.

      Sopwith

  3. In my haste / lack of time to fully research before ordering the SkyWeather2 kit I didn’t realize steps weren’t included for getting the stack up and running. Thanks for sharing this install guide, it was well written and the bash script worked great! RPI 3b running Buster.

    • Dan, thanks for the kind words. There are a lot of dependencies in the stack and I figured the only way to build it right was using an automation script. Good luck with your kit. Mine is working great.

      Sopwith

Leave a Reply

Your email address will not be published. Required fields are marked *