Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] aiverify requires Python 3.11.x despite it being installed #300

Open
1 task done
jayh-aa opened this issue Jul 11, 2024 · 1 comment
Open
1 task done

[BUG] aiverify requires Python 3.11.x despite it being installed #300

jayh-aa opened this issue Jul 11, 2024 · 1 comment
Labels
bug Something isn't working needs-triage Issues need triages by maintainer

Comments

@jayh-aa
Copy link

jayh-aa commented Jul 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

When I run sudo bash setup-aiverify-dev.sh, the response is the following error message: "aiverify requires Python 3.11.x, please install Python 3.11.x." despite Python 3.11.9 being already installed

Current Behavior

aiverify fails to install

Expected Behavior

aiverify installs correctly

Steps To Reproduce

  1. Spin up a fresh ubuntu server on AWS
  2. install nodeJS using apt
  3. install python3.11 using apt
  4. Download setup-aiverify.zip from Github Release.
  5. Unzip setup-aiverify.zip.
  6. run bash setup-aiverify-dev.sh

Environment

- Operating System and Version: Ubuntu 24.04
- AI Verify Version: 0.10.3
- Any other relevant information (e.g. version of related package dependencies installed):

Did you build using source code or from docker file? If from source code, please provide the below information:
- Python Version: 3.11.9
- Node Version: 18.19.1
- Redis Version: n/a
- Mongo Version: n/a
- Screen Resolution: 2256*1504

Screenshots/ Code snippets

No response

Additional Context

No response

Possible Solution (Optional)

No response

@jayh-aa jayh-aa added bug Something isn't working needs-triage Issues need triages by maintainer labels Jul 11, 2024
@harishpillay
Copy link

harishpillay commented Jul 15, 2024

If python 3.11.x has been installed and from the command line and "python3 --version" returns 3.11.x that should work.

For the time being, in the installation script for aiverify-dev, "setup-aiverify-dev.sh", either comment out or delete the following lines:

'''
#Check if Python3 is installed
#required_py_ver="Python 3.11"
#if ! which python3 &>/dev/null; then
#echo "Python3 is not installed. Please install Python3, aiverify requires $required_py_ver.x."
#exit 1
#fi
''''

It would proceed to install. I've just done that in a VM running ubuntu24.04 and installed nodejs, pyenv to manage various python versions, set the python to 3.11.9 ("pyenv global 3.11.9) and then proceeded to successfully install aiverify.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issues need triages by maintainer
Projects
None yet
Development

No branches or pull requests

2 participants