Skip to content

Commit

Permalink
If this project is to continue, it has to be on latest OS, let's try …
Browse files Browse the repository at this point in the history
…to overcome this mountain
  • Loading branch information
Psychokiller1888 committed Dec 14, 2023
1 parent 5deb369 commit f954383
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ProjectAlice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# #
################################################
# DON'T CHANGE ME #
version: 1.27
version: 1.28
installSound: yes
################################################

Expand Down
10 changes: 5 additions & 5 deletions core/Initializer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import shutil

VERSION = 1.27
VERSION = 1.28

# Copyright (c) 2021
#
Expand Down Expand Up @@ -39,7 +39,7 @@
TEMP = Path('/tmp/service')
ALLOWED_LANGUAGES = {'en', 'de', 'fr', 'it', 'pt', 'pl'}
FALLBACK_ASR = 'coqui'
PYTHON = 'python3.7'
PYTHON = 'python3.11'


class InitDict(dict):
Expand Down Expand Up @@ -145,7 +145,7 @@ def start(self):


def informUser(self):
self._logger.logInfo('I am now restarting and will use my service file. To continue checking what I do, please type "tail -f /var/log/syslog"')
self._logger.logInfo('I am now restarting and will use my service file. To continue checking what I do, please type "journalctl -u ProjectAlice.service -f"')


def installSystemDependencies(self):
Expand All @@ -160,7 +160,7 @@ def loadConfig(self) -> dict:
except:
subprocess.run(['sudo', 'apt-get', 'update'])
subprocess.run(['sudo', 'apt-get', 'install', 'python3-pip', 'python3-wheel', '-y'])
subprocess.run(['pip3', 'install', 'PyYAML==5.3.1'])
subprocess.run(['pip3', 'install', 'PyYAML==6.0.1', '--break-system-packages'])

self.setServiceFileTo('system')
subprocess.run(['sudo', 'systemctl', 'enable', 'ProjectAlice'])
Expand Down Expand Up @@ -342,7 +342,7 @@ def checkVenv(self) -> bool:
def updateVenv(self):
subprocess.run([self.PIP, 'uninstall', '-y', '-r', str(Path(self.rootDir, 'pipuninstalls.txt'))])
subprocess.run([self.PIP, 'install', 'wheel'])
subprocess.run([self.PIP, 'install', 'https://www.piwheels.org/simple/numpy/numpy-1.21.4-cp39-cp39-linux_armv7l.whl'])
#subprocess.run([self.PIP, 'install', 'https://www.piwheels.org/simple/numpy/numpy-1.21.4-cp39-cp39-linux_armv7l.whl'])
subprocess.run([self.PIP, 'install', '-r', str(Path(self.rootDir, 'requirements.txt')), '--upgrade', '--no-cache-dir'])


Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ scipy~=1.7.3
webrtcvad~=2.0.10
Werkzeug~=2.1.1
Jinja2~=3.1.1
numpy~=1.26
projectalice-sk

0 comments on commit f954383

Please sign in to comment.