Skip to content

Commit 60993eb

Browse files
committed
Fix installing on 64-bit OSs, fix alembic branch
1 parent 718a726 commit 60993eb

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Following the upgrade, you will need to reboot to complete the upgrade.
44

55
### Bugfixes
66

7+
- Fix installation on 64-bit OSs
78
- Fix missing netcat and wget install dependencies ([#1124](https://github.com/kizniche/mycodo/issues/1124))
89
- Fix inability to safe user settings
910
- Fix install issue due to outdated apt repository

alembic_db/alembic/versions/b354722c9b8b_update_function_actions.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""update function actions
22
33
Revision ID: b354722c9b8b
4-
Revises: 0187ea22dc4b
4+
Revises: 56a3f39af852
55
Create Date: 2022-02-13 20:06:50.915088
66
77
"""
@@ -15,7 +15,7 @@
1515

1616
# revision identifiers, used by Alembic.
1717
revision = 'b354722c9b8b'
18-
down_revision = '0187ea22dc4b'
18+
down_revision = '56a3f39af852'
1919
branch_labels = None
2020
depends_on = None
2121

install/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pyro5==5.13.1
2727
pyserial==3.5
2828
python-dateutil==2.8.2
2929
requests==2.27.1
30-
setuptools==60.9.3 # Also set version in upgrade_commands.sh
30+
setuptools==60.10.0 # Also set version in upgrade_commands.sh
3131
SQLAlchemy==1.4.31
3232
Werkzeug==2.0.3
3333
WTForms==3.0.1

mycodo/outputs/grove_motor_driver_v1_0.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
],
8888

8989
'dependencies_module': [
90-
('pip-pypi', 'smbus2', 'smbus2')
90+
('pip-pypi', 'smbus2', 'smbus2==0.4.1')
9191
],
9292

9393
'interfaces': ['I2C'],

mycodo/outputs/grove_motor_driver_v1_3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
],
8989

9090
'dependencies_module': [
91-
('pip-pypi', 'smbus2', 'smbus2')
91+
('pip-pypi', 'smbus2', 'smbus2==0.4.1')
9292
],
9393

9494
'interfaces': ['I2C'],

mycodo/scripts/upgrade_commands.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ MCB2835_URL="http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz"
1919
WIRINGPI_URL="https://project-downloads.drogon.net/wiringpi-latest.deb"
2020
INFLUXDB_VERSION="1.8.10"
2121
VIRTUALENV_VERSION="20.7.0"
22-
SETUPTOOLS_VERSION="60.9.3" # Also set version in install/requirements.txt
22+
SETUPTOOLS_VERSION="60.10.0" # Also set version in install/requirements.txt
2323

2424
# Required apt packages. This has been tested with Raspbian for the
2525
# Raspberry Pi and Ubuntu, it should work with most Debian-based systems.
26-
APT_PKGS="gawk gcc g++ git libffi-dev libi2c-dev logrotate moreutils nginx sqlite3 wget python3 python3-pip python3-dev python3-setuptools python3-smbus python3-pylint-common rng-tools netcat"
26+
APT_PKGS="gawk gcc g++ git libffi-dev libi2c-dev logrotate moreutils nginx sqlite3 wget python3 python3-pip python3-dev python3-setuptools rng-tools netcat"
2727

2828
PYTHON_BINARY_SYS_LOC="$(python3 -c "import os; print(os.environ['_'])")"
2929

@@ -212,7 +212,7 @@ case "${1:-''}" in
212212
printf "#### Virtualenv doesn't exist. Creating...\n"
213213
python3 -m pip install virtualenv==${VIRTUALENV_VERSION}
214214
rm -rf "${MYCODO_PATH}"/env
215-
python3 -m virtualenv --system-site-packages -p "${PYTHON_BINARY_SYS_LOC}" "${MYCODO_PATH}"/env
215+
python3 -m virtualenv -p "${PYTHON_BINARY_SYS_LOC}" "${MYCODO_PATH}"/env
216216
else
217217
printf "#### Virtualenv already exists, skipping creation\n"
218218
fi

0 commit comments

Comments
 (0)