pi@raspberrypi:~/sandypi $ virtualenv env created virtual environment CPython3.7.3.final.0-32 in 1066ms 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: Flask==1.1.2, Flask_Cors==3.0.9, Flask_Migrate==2.5.3, Flask_SQLAlchemy==2.4.4, Flask_SocketIO==4.3.0, Jinja2==2.11.2, Mako==1.1.3, MarkupSafe==1.1.1, Pillow==8.1.0, SQLAlchemy==1.3.22, Werkzeug==1.0.1, alembic==1.4.3, astroid==2.4.2, bidict==0.21.2, click==7.1.2, colorama==0.4.4, future==0.18.2, isort==5.7.0, itsdangerous==1.1.0, lazy_object_proxy==1.4.3, mccabe==0.6.1, packaging==20.8, pip==20.3.3, pip==21.0, pylint==2.6.0, pyparsing==2.4.7, pyserial==3.5, python_dateutil==2.8.1, python_dotenv==0.15.0, python_editor==1.0.4, python_engineio==3.13.0, python_socketio==4.6.0, setuptools==51.1.1, setuptools==51.3.3, six==1.15.0, toml==0.10.2, typed_ast==1.4.2, wheel==0.34.2, wheel==0.36.2, wrapt==1.12.1 activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator pi@raspberrypi:~/sandypi $ source env/bin/activate (env) pi@raspberrypi:~/sandypi $ git pull Déjà à jour. (env) pi@raspberrypi:~/sandypi $ git checkout grbl_support Déjà sur 'grbl_support' Votre branche est à jour avec 'origin/grbl_support'. (env) pi@raspberrypi:~/sandypi $ git pull Déjà à jour. (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: Flask==1.1.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 6)) (1.1.2) Requirement already satisfied: Flask-Cors==3.0.9 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 7)) (3.0.9) Requirement already satisfied: Flask-Migrate==2.5.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 8)) (2.5.3) Requirement already satisfied: Flask-SocketIO==4.3.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 9)) (4.3.0) Requirement already satisfied: Flask-SQLAlchemy==2.4.4 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 10)) (2.4.4) Requirement already satisfied: future==0.18.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 11)) (0.18.2) Requirement already satisfied: isort==5.7.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 12)) (5.7.0) Requirement already satisfied: itsdangerous==1.1.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 13)) (1.1.0) Requirement already satisfied: Jinja2==2.11.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 14)) (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 15)) (1.4.3) Requirement already satisfied: Mako==1.1.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 16)) (1.1.3) Requirement already satisfied: MarkupSafe==1.1.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 17)) (1.1.1) Requirement already satisfied: mccabe==0.6.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 18)) (0.6.1) Requirement already satisfied: netifaces==0.10.9 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 19)) (0.10.9) Requirement already satisfied: packaging==20.8 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 20)) (20.8) Requirement already satisfied: Pillow==8.1.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 21)) (8.1.0) Requirement already satisfied: pip==20.3.3 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 22)) (20.3.3) Requirement already satisfied: pylint==2.6.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 23)) (2.6.0) Requirement already satisfied: pyparsing==2.4.7 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 24)) (2.4.7) Requirement already satisfied: pyserial==3.5 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 25)) (3.5) Requirement already satisfied: python-dateutil==2.8.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 26)) (2.8.1) Requirement already satisfied: python-dotenv==0.15.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 27)) (0.15.0) Requirement already satisfied: python-editor==1.0.4 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 28)) (1.0.4) Requirement already satisfied: python-engineio==3.13.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 29)) (3.13.0) Requirement already satisfied: python-socketio==4.6.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 30)) (4.6.0) Requirement already satisfied: setuptools==51.1.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 31)) (51.1.1) Requirement already satisfied: six==1.15.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 32)) (1.15.0) Requirement already satisfied: SQLAlchemy==1.3.22 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 33)) (1.3.22) Requirement already satisfied: toml==0.10.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 34)) (0.10.2) Requirement already satisfied: Werkzeug==1.0.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 35)) (1.0.1) Requirement already satisfied: wheel==0.34.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 36)) (0.34.2) Requirement already satisfied: wrapt==1.12.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 37)) (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 is available. You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command. ----- 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 2.502s ╭─────────────────────────────────────────────────────────────────╮ │ │ │ New patch version of npm available! 6.14.10 → 6.14.11 │ │ Changelog: https://github.com/npm/cli/releases/tag/v6.14.11 │ │ Run npm install -g npm to update! │ │ │ ╰─────────────────────────────────────────────────────────────────╯ yarn install v1.22.10 [1/4] Resolving packages... success Already up-to-date. Done in 2.95s. yarn run v1.22.10 $ react-scripts build Creating an optimized production build... Compiled successfully. File sizes after gzip: 197.74 KB build/static/js/2.0d0a31ad.chunk.js 23.96 KB build/static/css/main.ce56761a.chunk.css 14.4 KB build/static/js/main.ea5980ff.chunk.js 1.39 KB build/static/js/3.eac1f74b.chunk.js 1.16 KB build/static/js/runtime-main.622f813f.js 778 B build/static/css/2.acc986e7.chunk.css The project was built assuming it is hosted at /. You can control this with the homepage field in your package.json. The build folder is ready to be deployed. You may serve it with a static server: yarn global add serve serve -s build Find out more about deployment here: https://cra.link/deployment Done in 79.18s. ----- 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.178.56'] Logger 'app' level: 30 (WARNING) Logger 'feeder' level: 30 (WARNING) 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: '/dev/ttyACM0' 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 32, 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 /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0' 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) ERROR:server.hw_controller.leds.leds_driver:There was an error during the preparation of the led controller. Check that you installed the correct libraries to run the led of the choosen type ERROR:server.hw_controller.leds.leds_driver:No module named 'board' Traceback (most recent call last): File "/home/pi/sandypi/server/hw_controller/leds/leds_driver.py", line 46, in use_WS2812B from server.hw_controller.leds.libs.WS2812B import WS2812B File "/home/pi/sandypi/server/hw_controller/leds/libs/WS2812B.py", line 1, in import board ModuleNotFoundError: No module named 'board' ERROR:server:Cannot initialize leds controller INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. ----- 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.178.56'] 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: '/dev/ttyACM0' 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 32, 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 /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0' 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) ERROR:server.hw_controller.leds.leds_driver:There was an error during the preparation of the led controller. Check that you installed the correct libraries to run the led of the choosen type ERROR:server.hw_controller.leds.leds_driver:No module named 'board' Traceback (most recent call last): File "/home/pi/sandypi/server/hw_controller/leds/leds_driver.py", line 46, in use_WS2812B from server.hw_controller.leds.libs.WS2812B import WS2812B File "/home/pi/sandypi/server/hw_controller/leds/libs/WS2812B.py", line 1, in import board ModuleNotFoundError: No module named 'board' ERROR:server:Cannot initialize leds controller running install running build running build_py 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 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 $ sudo python3 start.py You are running linux Preparing start.sh Starting the server * Serving Flask app "server" * Environment: production WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Debug mode: off Usage: flask run [OPTIONS] Error: While importing "server", an ImportError was raised: Traceback (most recent call last): File "/home/pi/sandypi/env/lib/python3.7/site-packages/flask/cli.py", line 240, in locate_app __import__(module_name) File "/home/pi/sandypi/server/__init__.py", line 1, in from server.utils.settings_utils import get_ip4_addresses File "/home/pi/sandypi/server/utils/settings_utils.py", line 6, in from netifaces import interfaces, ifaddresses, AF_INET ModuleNotFoundError: No module named 'netifaces' (env) pi@raspberrypi:~/sandypi $