-
Notifications
You must be signed in to change notification settings - Fork 0
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
design myami-python3 autoinstaller for leginon #13359
Comments
Original Redmine Comment Thank you for creating this issue Anchi. The old autoinstaller is working fine and I think it is not obsolete. Users who want to use conda or pip venv, can do that, then activate venv and run the autoinstaller. The autoinstaller also installs MySQL server that we can't do with conda or pip/pyproject.toml. I've made changes in autoinstaller in python3 branch to make it work with python3. I also changed the part when it does pip install. It now downloads requirements.txt and does |
Original Redmine Comment Thanks. I tried it in a docker image of centos:7 I did first
and then ran the installer with
Here is what I've got, after changing in the script for it to git clone myami-python3 instead of trunk.
|
Original Redmine Comment The install log is also full of errors. See attached. |
Original Redmine Comment By the way, the python install through yum is 3.6.8. Not sure if it will work. We have been developed in 3.8+ |
Original Redmine Comment Thank you Anchi. I fixed the issue with linkMpiRun. I'm using Python 3.9.5 installed locally. |
Original Redmine Comment How should I (and to instruct user to) install 3.9 on CentOS7 for autoinstallor to run ? |
Original Redmine Comment I checked online; to install 3.9 on CentOS7 currently, we or users need to install it from the source: |
Original Redmine Comment There are so many steps to do on the build of python 3.9 as well as linking it so that autoinstallor will work. In the spirit of simplify this for users to quickly set up, please put these build instruction together to a shell script so that it can be run before centos7AutoInstallation.py and work correctly. Also please add your final instruction to wiki that will replace this part in [[Autoinstaller_for_CentOS]]. Mark it as myami-python3 so it can be found later. Thanks. |
Original Redmine Comment I also got this warning since this installation is done as root. Is this a concern ?
|
Original Redmine Comment
results in packages still installed in python2.7 site-packages.
If I replace the default python with
then I get many python2 syntax error like this.
I don't think this approach works. |
Original Redmine Comment I've made new commits to convert all python to python3. Please unlink python from /usr/local/bin/python3.9. The yum error is because it needs python2. Let's assume python is python2 as is it the default in CentOS7. Let's see if it works with the default python36 that comes with CentOS7. If there are no new features that require python3.9, we don't need instructions to install python3.9. Thank you. |
Original Redmine Comment Please do the testing yourself first to completion. I've already tried linking python to python3. I can't accept python 3.6 solution. There are features needing at least python 3.8. I haven't thought of this, I wonder if it will help if we use #!/usr/bin/env python3 instead of #!/usr/bin/env python in our script. Anyway, please run your test to completion before asking me to test again. Thank you. |
Original Redmine Comment Thank you Anchi. So the prerequisite is to have Python 3.8 or 3.9 installed. We can have instructions or a script to do this. For now, with python 3.9 installed in /usr/local ( There is an issue with setting up mysql password. I had to reset mysql root password using https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password. This is a typical post-install issue with securing the database that is also present in python2 version. Now with mysql root password set, the installation completes without error, and all required packages are installed. The start-leginon.py has the right python interpreter set (#!/usr/local/bin/python3). However, I can't start leginon:
I'm able to connect using |
Original Redmine Comment The problem with 'Can't connect to MySQL server' has been resolved. I had to restart mariadb to make it work. Now, I'm getting import errors. Are you able to start leginon with Python 3? I can go over and fix all remaining import errors if needed. |
Author Name: Anchi Cheng (@anchi2c)
Original Redmine Issue: 13359, https://emg.nysbc.org/redmine/issues/13359
Original Date: 2022-08-26
Original Assignee: Sargis Dallakyan
Needs an autoinstaller to help new user to have an all-in-one installation quickly. Please consider a modern option if the old way feels obsolete. This feature can end at a functional leginon with simulator. Once the form of this is determined from this, we can then add appion support.
Possible python options uses conda, pip/pyproject.toml, instead of setuptools so dependency can be included.
Gabe Lander uses, for example, conda, for his newer development of appion that includes leginon requirement.
I do similar with pip.
The text was updated successfully, but these errors were encountered: