about installing USPEX-2022.1.0

75 views
Skip to first unread message

forough rezaie

unread,
May 6, 2025, 12:04:28 PMMay 6
to USPEX
Hi everyone,
I installed uspex-2022.1.0-cp39-cp39-linux_x86_64.whl in a virtual environment, which constructed by python3.9. Installation was completed. I try to run uspex with "uspex -r" command, but error was observed. The full text of error was attached as a log file. Can anyone help me?
log

Shubham Agarwal

unread,
May 7, 2025, 5:00:27 AMMay 7
to foroughr...@gmail.com, USPEX
Hello,

The Error is coming from an incompatibility between USPEX and the ASE (Atomic Simulation Environment) version installed in your uspex_env. Try the following steps:
1. Install Conda and create a conda environment named "uspex". 
2. Activate the environment using "conda activate uspex". 
3. Upgrade ASE using "pip install --upgrade ase"
4. Before launching the "uspex -r", try to verify the label support in Python. 

Hope this will solve this issue. 

best,
SAg


On Tue, 6 May 2025 at 18:04, forough rezaie <foroughr...@gmail.com> wrote:
Hi everyone,
I installed uspex-2022.1.0-cp39-cp39-linux_x86_64.whl in a virtual environment, which constructed by python3.9. Installation was completed. I try to run uspex with "uspex -r" command, but error was observed. The full text of error was attached as a log file. Can anyone help me?

--
You received this message because you are subscribed to the Google Groups "USPEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uspex+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/uspex/5854bc32-7a84-4cd2-9f60-db6d74749c3en%40googlegroups.com.

forough rezaie

unread,
May 7, 2025, 5:37:49 AMMay 7
to USPEX
Thanks SAg for your suggestion. I tried these steps and tried to verify label support by python. But, it doesn't support label. I also try other version of ASE such as 3.25, 3.22.1, 3.19.2, etc. Do you know the compatible version of ASE for this version of USPEX?
best,
Forough

Shubham Agarwal

unread,
May 7, 2025, 5:49:18 AMMay 7
to foroughr...@gmail.com, USPEX
Hi,

I guess 3.22 or a later version should work. Can I know how you tested labels in Python? The best way to test it is to produce a crystal structure. For example;

from ase.build import bulk
from ase.io.vasp import write_vasp

structure= bulk('Si')
write_vasp('POSCAR', structure, label='Si', direct=True, vasp5=True)

Try this to test your label. If you see any error, please post it to understand the error further. 

best,
SAg

forough rezaie

unread,
May 7, 2025, 6:20:50 AMMay 7
to USPEX
I tried this code in python:
from ase import Atoms
atoms = Atoms('H2O')
atoms[0].info['label'] = 'H1'
****
should I try your suggested lines in python? I attached the picture of terminal.
excuse me if my question is so basic.
Untitled.png

Shubham Agarwal

unread,
May 7, 2025, 6:50:28 AMMay 7
to foroughr...@gmail.com, USPEX
It looks fine. Maybe you just try to run the example given by USPEX. I am using the USPEX_2023.0.2 version, and it works fine for me after a lot of trouble. You can also try this version of USPEX, if you want to. 

forough rezaie

unread,
May 8, 2025, 6:28:36 AMMay 8
to USPEX
Sorry for the late reply. I was trying the version of USPEX you suggested. The version USPEX_2023.0.2 is not available right now. I am trying to install another version of USPEX. It is strange to me that the installation of USPEX_2023.0.3 or 2023.1.0 is done without any errors. But running the program results in incomplete data display. "folder results1" and file "log" are attached to the form (EX31_2D_varcomp_SnS_VASP). All the steps I used for installation are:

Create an env: "python3.10 -m venv uspex_env"

Activate env: "source /path to uspex_env/bin/activate"

Install USPEX: "pip install uspex-2023.1.0-cp310-cp310-linux_x86_64.whl"

Run an example (EX31_2D_varcomp_SnS_VASP): Move the random_cell file to the example directory and enter the command "uspex -r" in an enabled terminal
log
results1.rar

Shubham Agarwal

unread,
May 9, 2025, 5:09:46 AMMay 9
to foroughr...@gmail.com, USPEX
Hi,

I am not sure about this: Create an env: "python3.10 -m venv uspex_env"
I installed the Anaconda environment and then created the uspex environment. I also tested the same example, which ran successfully. Though I got different results compared to those provided in the reference folder. 

best,
SAg

Reply all
Reply to author
Forward
0 new messages