adpauna / qrassh

3 stars 3 forks source link

Setup errors #2

Closed louisshiru closed 4 days ago

louisshiru commented 4 days ago

Hello,

Could you share the dependencies version (requirement.txt) and OS versions ? I tried many combination of tensorflow and keras and also automat, but still cannot start qrassh via ./bin/qrassh start

Environment:
Ubuntu 22.04.4 LTS (jammy)
Python 2.7.17

Following are my go through step :

  1. Some setup setup mysql: OK (virtualenv)$ pip install -r requirement.txt : OK ( install some compile [1]dependencies)`

  2. automat error

    File "/home/qrassh/qrassh/qrassh-env/lib/python2.7/site-packages/automat/_methodical.py", line 7, in <module>
    from inspect import getfullargspec as getArgsSpec
    exceptions.ImportError: cannot import name getfullargspec

    solve 2. by downgrade to automat==0.8.0

  3. Keras invalid syntax

    File "/home/qrassh/qrassh/qrassh-env/lib/python2.7/site-packages/keras/__init__.py", line 20, in <module>
    from keras import distribute
    File "/home/qrassh/qrassh/qrassh-env/lib/python2.7/site-packages/keras/distribute/__init__.py", line 18, in <module>
    from keras.distribute import sidecar_evaluator
    exceptions.SyntaxError: invalid syntax (sidecar_evaluator.py, line 195)

    solve 3. by downgrade to keras==2.2.4

  4. Cannot import name np_utils

    File "/home/qrassh/qrassh/qrassh-env/lib/python2.7/site-packages/keras/utils/__init__.py", line 2, in <module>
    from . import np_utils
    exceptions.ImportError: cannot import name np_utils

    solve 4. by pip install grpcio==1.36.1 && pip install tensorflow==1.6.0

  5. Illegal instruction ( I stuck here )

    Using activated Python virtual environment "/home/qrassh/qrassh/qrassh-env"
    Starting qrassh: [twistd   --umask 0022 --pidfile var/run/qrassh.pid -l log/qrassh.log qrassh ]...
    /home/qrassh/qrassh/qrassh-env/lib/python2.7/site-packages/OpenSSL/crypto.py:14: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
    from cryptography import utils, x509
    Using TensorFlow backend.
    ./bin/qrassh: line 58: 22552 Illegal instruction     (core dumped) twistd ${TWISTEDARGS} ${qrasshARGS} qrassh
louisshiru commented 4 days ago

I think it may be caused by the VM in Proxmox. I can execute it by switching to another computer.

Closed !

[1] dependencies

# PIP2
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py

# Virtualenv
python2 -m pip install virtualenv
python2 -m virtaulenv qrassh-env

# Before pip install -r requirement.txt
sudo apt-get install libmysqlclient-dev
sudo wget https://raw.githubusercontent.com/paulfitz/mysql-connector-c/master/include/my_config.h -O /usr/include/mysql/my_config.h

# Runtime error
pip install automat==0.8.0 keras==2.2.4 grpcio==1.36.1 
pip install tensorflow==1.6.0
pip install bcrypt==3.1.7 pyopenssl==19.1.0 cryptography==2.8
sudo apt-get install python-tk

[2] pip freeze

absl-py==0.15.0
appdirs==1.4.4
astor==0.8.1
attrs==21.4.0
Automat==0.8.0
backports.functools-lru-cache==1.6.6
backports.weakref==1.0.post1
bcrypt==3.1.7
bleach==1.5.0
cffi==1.15.1
configparser==4.0.2
constantly==15.1.0
cryptography==2.8
cycler==0.10.0
enum34==1.1.10
funcsigs==1.0.2
futures==3.4.0
gast==0.6.0
grpcio==1.36.1
h5py==2.10.0
html5lib==0.9999999
hyperlink==21.0.0
idna==2.10
incremental==22.10.0
ipaddress==1.0.23
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.1.0
Markdown==3.1.1
matplotlib==2.2.5
mock==3.0.5
MySQL-python==1.2.5
numpy==1.16.6
packaging==20.9
protobuf==3.17.3
pyasn1==0.5.1
pyasn1-modules==0.3.0
PyBrain==0.3
pycparser==2.21
pycrypto==2.6.1
pygeoip==0.3.2
PyHamcrest==1.10.1
pyOpenSSL==19.1.0
pyparsing==2.4.7
python-dateutil==2.9.0.post0
pytz==2024.2
PyYAML==5.4.1
scipy==1.2.3
service-identity==21.1.0
six==1.16.0
subprocess32==3.5.4
tensorboard==1.6.0
tensorflow==1.6.0
termcolor==1.1.0
tftpy==0.8.2
Twisted==20.3.0
typing==3.10.0.0
Werkzeug==1.0.1
zope.interface==5.5.2