# Verdi composed commands not working on my laptop

**URL:** <https://aiida.discourse.group/t/verdi-composed-commands-not-working-on-my-laptop/505>\
**Category:** New to AiiDA\
**Created:** [November 27, 2024, 1:06pm UTC](https://aiida.discourse.group/t/verdi-composed-commands-not-working-on-my-laptop/505 "2024-11-27T13:06:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimaroa](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@rimaroa](https://aiida.discourse.group/u/rimaroa)\
**Post date:** [November 27, 2024, 1:06pm UTC](https://aiida.discourse.group/t/verdi-composed-commands-not-working-on-my-laptop/505/1 "2024-11-27T13:06:11Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![sphuber](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/sphuber/32/6_2.png) [@sphuber](https://aiida.discourse.group/u/sphuber)\
**Post date:** [November 28, 2024, 7:39am UTC](https://aiida.discourse.group/t/verdi-composed-commands-not-working-on-my-laptop/505/2 "2024-11-28T07:39:08Z")

</div>

AiiDA is not supported on Windows unfortunately. We recommend you use Linux or MacOS instead. If that is not possible, you can try using a virtual machine like [Quantum Mobile](https://quantum-mobile.readthedocs.io/en/latest/index.html) or use the [Docker images](https://aiida.readthedocs.io/projects/aiida-core/en/stable/installation/docker.html#docker).

---

<div class="post-metadata">

**Author:** ![agoscinski](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/agoscinski/32/147_2.png) [@agoscinski](https://aiida.discourse.group/u/agoscinski)\
**Post date:** [November 28, 2024, 8:51am UTC](https://aiida.discourse.group/t/verdi-composed-commands-not-working-on-my-laptop/505/3 "2024-11-28T08:51:09Z")

</div>

Or [Linux WSL](https://learn.microsoft.com/en-us/windows/wsl/install), we have at least one person running AiiDA like this in the team

---

<div class="post-metadata">

**Author:** ![sphuber](https://yyz2.discourse-cdn.com/free1/user_avatar/aiida.discourse.group/sphuber/32/6_2.png) [@sphuber](https://aiida.discourse.group/u/sphuber)\
**Post date:** [November 28, 2024, 9:49am UTC](https://aiida.discourse.group/t/verdi-composed-commands-not-working-on-my-laptop/505/4 "2024-11-28T09:49:20Z")

</div>

Great point, can’t believe I forgot about that one. With WSL2 this actually works really well and I have used for a year and a half without issues.
