Closed prjemian closed 2 weeks ago
The installation command came from the operating system Python, as revealed in this scrap from the error dump above: "/usr/lib64/python3.6
. The python version is 3.6, within the stated range of support: https://github.com/BCDA-APS/bluesky_training/blob/a80625d87f1d6eb9b5f80ab25832cdfcca16b9cb/new_bluesky_instrument.py#L38
Maybe it is time to:
User was able to complete the installation with this command:
/APSshare/miniconda/x86_64/bin/python /APSshare/bin/new_bluesky_instrument.py ~/bluesky
That uses Python 3.10 for the installation.
Here's a test for minimum Python version (from the instrument
package in this repo): https://github.com/BCDA-APS/bluesky_training/blob/a80625d87f1d6eb9b5f80ab25832cdfcca16b9cb/bluesky/instrument/framework/check_python.py#L16-L28
note: Without the ~/bluesky
argument, the script defaults to the current working directory. If the chosen installation directory is not blank, the script raises an exception, such as this one:
Traceback (most recent call last):
File "/APSshare/bin/new_bluesky_instrument.py", line 375, in <module>
new_instrument_from_template(destination, make_git_repo=args.git_init)
File "/APSshare/bin/new_bluesky_instrument.py", line 95, in new_instrument_from_template
raise RuntimeError("Directory is not empty: " + str(destination))
RuntimeError: Directory is not empty: /home/USERACCOUNT
and after a few min I realized of course the home directory is not empty and the original command I tried had the
~/bluesky
at the end
PR #289 rearranges pages and content quite a bit. Work on this issue should follow merge of #289.
Minimum Python version should be whatever the RHEL9 OS provides. (Any beamlines that we need to support using older python?)
(base) jemian@otz ~ $ /usr/bin/python3 --version
Python 3.9.18
test with python 3.8
conda create -n test "python==3.8"
conda activate test
$ ./new_bluesky_instrument.py -h
Traceback (most recent call last):
File "./new_bluesky_instrument.py", line 385, in <module>
validate_python_version()
File "./new_bluesky_instrument.py", line 378, in validate_python_version
raise RuntimeError(
RuntimeError: You have Python 3.8.0 (default, Nov 6 2019, 21:49:08)
[GCC 7.3.0] from ${CONDA_PREFIX}/envs/test.
This installer requires minimum Python version 3.9.
Ran into an error while running the new bluesky instrument python program: