50660
@50660

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

python aseの擬ポテンシャルの読み込みエラー

解決したいこと

google colabにて、python aseを用いた量子化学計算を試しています。
Quantum Espressoを計算機に設定しています。擬ポテンシャルを保存した場所をpseudo_dir = './'と表現しましたが、エラーが出てしまいます。
解決方法を教えてください。
よろしくお願いします。

発生している問題・エラー


calc = Espresso(pseudopotentials=pseudopotentials,pseudo_dir = './',

BadConfiguration: No configuration of espresso

該当するソースコード

python(google colabo)

from ase.build import bulk
from ase.calculators.espresso import Espresso
from ase.constraints import UnitCellFilter
from ase.optimize import LBFGS
import ase.io 

pseudopotentials = {'Na': 'Na.pbesol-spn-kjpaw_psl.1.0.0.UPF',
                    'Cl': 'Cl.pbesol-n-kjpaw_psl.1.0.0.UPF'}  
rocksalt = bulk('NaCl', crystalstructure='rocksalt', a=6.0)
calc = Espresso(pseudopotentials=pseudopotentials,pseudo_dir = './',
                tstress=True, tprnfor=True, kpts=(3, 3, 3))

自分で試したこと

下記をそのまま参考にさせてもらっています。

状況:
・擬ポテンシャルが保管されているカレントディレクトリで作業しています。
・パスの指定は下記の通りです。
import os
os.environ['PATH'] = "/content/q-e/bin:"+os.environ['PATH']

0

2Answer

Comments

  1. @50660

    Questioner

    コメントありがとうございます。
    試してみましたが、ダメでした。
    擬ポテンシャルファイルの保管先を疑って質問しましたが、いろいろ試した結果、全体的な部分で見直そうと考えています。
    *参考の記事から少し日にちが立っているので、仕様が変わったのかと思い始めました。
     何かつかめたら、再度質問上げますので、またお願いします。
     ありがとうございます。

参考にしたサイトのコードおよびコマンドを順に全て実行した結果、途中で掲載のエラーがでたのでしょうか?何か見落としていたりしないでしょうか?カレントディレクトリはNaClディレクトリでしょうか?

0Like

Comments

  1. @50660

    Questioner

    コメントありがとうございます。
    NaClのフォルダであること確認しています。
    また、コピーしており、見直しましたので、記事と同じようにコマンドなっているはずです。
    いろいろやった結果、
    calc = Espresso(profile=profile, pseudopotentials=pseudopotentials,pseudo_dir = './',tstress=True, tprnfor=True, kpts=(3, 3, 3))

    profileのパラメータを入れると
    BadConfiguration: No configuration of espresso
    は消えました。
    しかし、別のところで
    FileNotFoundError: [Errno 2] No such file or directory: '/path/to/pw.x'
    とpathに関するエラーが出てしまいました。
    質問の仕方が違ったようなので、状況整理できてから、また質問させていただこうと思っています。
    その際は、よろしくお願いします。
    ご協力ありがとうございます!

Your answer might help someone💌