Dear all
I am trying to install AiiDA in my laptop which operates with Windows following the installation guide. I’ve reached the point where I can type “verdi” which gives, I think, the expected information
"Usage: verdi [OPTIONS] COMMAND [ARGS]…
The command line interface of AiiDA.
Options:
-p, --profile PROFILE           Execute the command for this profile instead
of the default profile.
-v, --verbosity [notset|debug|info|report|warning|error|critical]
Set the verbosity of the output.
–version                       Show the version and exit.
-h, --help                      Show this message and exit.
Commands:
archive     Create, inspect and import AiiDA archives.
calcjob     Inspect and manage calcjobs.
code        Setup and manage codes.
computer    Setup and manage computers.
config      Manage the AiiDA configuration.
daemon      Inspect and manage the daemon.
data        Inspect, create and manage data nodes.
devel       Commands for developers.
group       Create, inspect and manage groups of nodes.
help        Show help for given command.
node        Inspect, create and manage nodes.
plugin      Inspect AiiDA plugins.
presto      Set up a new profile in a jiffy.
process     Inspect and manage processes.
profile     Inspect and manage the configured profiles.
quicksetup  (Deprecated) Setup a new profile in a fully automated fashion.
restapi     Run the AiiDA REST API server.
run         Execute scripts with preloaded AiiDA environment.
setup       (Deprecated) Setup a new profile (use verdi profile setup).
shell       Start a python shell with preloaded AiiDA environment.
status      Print status of AiiDA services.
storage     Inspect and manage stored data for a profile.
user        Inspect and manage users."
but when I try to run any of the verdi subcommands, such as “verdi status”, I obtain a long error message
"PS C:\Users\ricar> verdi status
Traceback (most recent call last):
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\manage\configuration\config.py”, line 233, in from_file
with open(filepath, ‘rb’) as handle:
~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘C:\Users\ricar\.aiida\config.json’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 198, in run_module_as_main
File “”, line 88, in run_code
File "C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\Scripts\verdi.exe_main.py", line 7, in 
sys.exit(verdi())
~~~~~^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 1157, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 1077, in main
with self.make_context(prog_name, args, **extra) as ctx:
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 943, in make_context
self.parse_args(ctx, args)
~~~~~~~~~~~~~~~^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 1644, in parse_args
rest = super().parse_args(ctx, args)
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 1408, in parse_args
value, args = param.handle_parse_result(ctx, opts, args)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 2396, in handle_parse_result
value, source = self.consume_value(ctx, opts)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 2934, in consume_value
value, source = super().consume_value(ctx, opts)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 2290, in consume_value
value = self.get_default(ctx)
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\cmdline\params\options\callable.py”, line 29, in get_default
return super().get_default(ctx=ctx, call=call)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 2868, in get_default
return super().get_default(ctx, call=call)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\click\core.py”, line 2268, in get_default
value = value()
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\cmdline\utils\defaults.py”, line 27, in get_default_profile
config = get_config(create=True)
File "C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\manage\configuration_init.py", line 313, in get_config
CONFIG = load_config(create=create)
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\manage\configuration_init_.py”, line 97, in load_config
config = Config.from_file(filepath)
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\manage\configuration\config.py”, line 237, in from_file
config.store()
~~~~~~~~~~~~^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\manage\configuration\config.py”, line 737, in store
self._atomic_write()
~~~~~~~~~~~~~~~~~~^^
File “C:\Users\ricar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\site-packages\aiida\manage\configuration\config.py”, line 782, in _atomic_write
os.rename(handle.name, self.filepath)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [WinError 32] El proceso no tiene acceso al archivo porque está siendo utilizado por otro proceso: ‘C:\Users\ricar\.aiida\tmpzjcross1’ → ‘C:\Users\ricar\.aiida\config.json’"
where the PermissionError at the end, which is in Spanish, reads like “PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\ricar\.aiida\tmpzjcross1’ → ‘C:\Users\ricar\.aiida\config.json’”, which I don’t know how to solve.
On the other hand, I noticed that I don’t have any bashrc in my directory. In this regard, the inclusion of the lines
“export PYTHONPATH=~/git/aiida:{PYTHONPATH} export PATH=~/git/aiida/bin:{PATH}”
is recommended in https://aiida.readthedocs.io/projects/aiida-core/en/v0.4.1/installation.html. I have not found any subfolder named “aiida” in my “git” folder.
Any recommendations to solve my problem would be appreciated.