login as: pi pi@192.168.0.107's password: Linux raspberrypi 5.10.11+ #1399 Thu Jan 28 12:02:28 GMT 2021 armv6l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Feb 22 19:09:53 2021 from 192.168.0.104 SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password. pi@raspberrypi:~ $ cd sandypi pi@raspberrypi:~/sandypi $ virtualenv env created virtual environment CPython3.7.3.final.0-32 in 9898ms creator CPython3Posix(dest=/home/pi/sandypi/env, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/pi/.local/share/virtualenv) added seed packages: pip==21.0.1, pyserial==3.5, setuptools==52.0.0, wheel==0.36.2 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator pi@raspberrypi:~/sandypi $ source env/bin/activate (env) pi@raspberrypi:~/sandypi $ git pull remote: Enumerating objects: 13, done. remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 100% (4/4), done. remote: Total 13 (delta 9), reused 13 (delta 9), pack-reused 0 Unpacking objects: 100% (13/13), done. From https://github.com/texx00/sandypi dae9e73..3f9d6af master -> origin/master Updating dae9e73..3f9d6af Fast-forward docs/troubleshooting.md | 4 ++++ server/__init__.py | 11 +++++++---- server/sockets_interface/socketio_callbacks.py | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) (env) pi@raspberrypi:~/sandypi $ sudo sh install.sh ----- Installing python dependencies ----- Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: alembic==1.4.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 1)) (1.4.3) Requirement already satisfied: astroid==2.4.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 2)) (2.4.2) Requirement already satisfied: bidict==0.21.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 3)) (0.21.2) Requirement already satisfied: click==7.1.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 4)) (7.1.2) Requirement already satisfied: colorama==0.4.4 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 5)) (0.4.4) Requirement already satisfied: dotmap==1.3.23 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 6)) (1.3.23) Requirement already satisfied: Flask==1.1.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 7)) (1.1.2) Requirement already satisfied: Flask-Cors==3.0.9 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 8)) (3.0.9) Requirement already satisfied: Flask-Migrate==2.5.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 9)) (2.5.3) Requirement already satisfied: Flask-SocketIO==4.3.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 10)) (4.3.0) Requirement already satisfied: Flask-SQLAlchemy==2.4.4 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 11)) (2.4.4) Requirement already satisfied: future==0.18.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 12)) (0.18.2) Requirement already satisfied: isort==5.7.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 13)) (5.7.0) Requirement already satisfied: itsdangerous==1.1.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 14)) (1.1.0) Requirement already satisfied: Jinja2==2.11.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 15)) (2.11.2) Requirement already satisfied: lazy-object-proxy==1.4.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 16)) (1.4.3) Requirement already satisfied: Mako==1.1.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 17)) (1.1.3) Requirement already satisfied: MarkupSafe==1.1.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 18)) (1.1.1) Requirement already satisfied: mccabe==0.6.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 19)) (0.6.1) Requirement already satisfied: netifaces==0.10.9 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 20)) (0.10.9) Requirement already satisfied: packaging==20.8 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 21)) (20.8) Requirement already satisfied: Pillow==8.1.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 22)) (8.1.0) Requirement already satisfied: pip==20.3.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 23)) (20.3.3) Requirement already satisfied: pylint==2.6.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 24)) (2.6.0) Requirement already satisfied: pyparsing==2.4.7 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 25)) (2.4.7) Requirement already satisfied: pyserial==3.5 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 26)) (3.5) Requirement already satisfied: python-dateutil==2.8.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 27)) (2.8.1) Requirement already satisfied: python-dotenv==0.15.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 28)) (0.15.0) Requirement already satisfied: python-editor==1.0.4 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 29)) (1.0.4) Requirement already satisfied: python-engineio==3.13.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 30)) (3.13.0) Requirement already satisfied: python-socketio==4.6.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 31)) (4.6.0) Requirement already satisfied: setuptools==51.1.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 32)) (51.1.1) Requirement already satisfied: six==1.15.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 33)) (1.15.0) Requirement already satisfied: SQLAlchemy==1.3.22 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 34)) (1.3.22) Requirement already satisfied: toml==0.10.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 35)) (0.10.2) Requirement already satisfied: Werkzeug==1.0.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 36)) (1.0.1) Requirement already satisfied: wheel==0.34.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 37)) (0.34.2) Requirement already satisfied: wrapt==1.12.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 38)) (1.12.1) Requirement already satisfied: typed-ast<1.5,>=1.4.0 in /usr/local/lib/python3.7/dist-packages (from astroid==2.4.2->-r requirements.txt (line 2)) (1.4.2) WARNING: You are using pip version 20.3.3; however, version 21.0.1 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command. ----- Updating sw version ---- ----- Installing js dependencies and building frontend app ----- > yarn@1.22.10 preinstall /usr/local/lib/node_modules/yarn > :; (node ./preinstall.js > /dev/null 2>&1 || true) /usr/local/bin/yarn -> /usr/local/lib/node_modules/yarn/bin/yarn.js /usr/local/bin/yarnpkg -> /usr/local/lib/node_modules/yarn/bin/yarn.js + yarn@1.22.10 updated 1 package in 35.767s yarn install v1.22.10 [1/4] Resolving packages... [2/4] Fetching packages... error An unexpected error occurred: "/usr/local/share/.cache/yarn/v6/npm-@babel-runtime-corejs3-7.12.13-53d09813b7c20d616caf258e9325550ff701c039-integrity/node_modules/@babel/runtime-corejs3/.yarn-metadata.json: Unexpected end of JSON input". info If you think this is a bug, please open a bug report with the information provided in "/home/pi/sandypi/frontend/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. yarn run v1.22.10 $ react-scripts build /bin/sh: 1: react-scripts: not found error Command failed with exit code 127. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ----- Upgrading database ----- To run the server use 'ip:5000' in your browser with one of the following ip adresses: ['127.0.0.1', '192.168.0.107'] Logger 'app' level: 30 (WARNING) Logger 'feeder' level: 30 (WARNING) INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/serial/serialposix.py", line 322, in open self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) FileNotFoundError: [Errno 2] No such file or directory: 'FAKE' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pi/sandypi/server/hw_controller/device_serial.py", line 34, in __init__ self.serial.open() File "/usr/local/lib/python3.7/dist-packages/serial/serialposix.py", line 325, in open raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) serial.serialutil.SerialException: [Errno 2] could not open port FAKE: [Errno 2] No such file or directory: 'FAKE' ----- Installing app ----- To run the server use 'ip:5000' in your browser with one of the following ip adresses: ['127.0.0.1', '192.168.0.107'] Logger 'app' level: 0 (NOT SET) Logger 'feeder' level: 0 (NOT SET) Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/serial/serialposix.py", line 322, in open self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK) FileNotFoundError: [Errno 2] No such file or directory: 'FAKE' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pi/sandypi/server/hw_controller/device_serial.py", line 34, in __init__ self.serial.open() File "/usr/local/lib/python3.7/dist-packages/serial/serialposix.py", line 325, in open raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) serial.serialutil.SerialException: [Errno 2] could not open port FAKE: [Errno 2] No such file or directory: 'FAKE' ERROR:server.hw_controller.feeder:None ERROR:server.hw_controller.feeder:Serial not available. Are you sure the device is connected and is not in use by other softwares? (Will use the fake serial) running install running build running build_py copying server/__init__.py -> build/lib/server running egg_info writing server.egg-info/PKG-INFO writing dependency_links to server.egg-info/dependency_links.txt writing requirements to server.egg-info/requires.txt writing top-level names to server.egg-info/top_level.txt reading manifest file 'server.egg-info/SOURCES.txt' writing manifest file 'server.egg-info/SOURCES.txt' running install_lib copying build/lib/server/__init__.py -> /usr/local/lib/python3.7/dist-packages/server byte-compiling /usr/local/lib/python3.7/dist-packages/server/__init__.py to __init__.cpython-37.pyc running install_egg_info removing '/usr/local/lib/python3.7/dist-packages/server-0.0.0-py3.7.egg-info' (and everything under it) Copying server.egg-info to /usr/local/lib/python3.7/dist-packages/server-0.0.0-py3.7.egg-info running install_scripts Running post install script Post install script done (env) pi@raspberrypi:~/sandypi $