Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when executing qiskit-metal/tutorials/4 Analysis/B. Advanced - Direct use of the renderers/4.19 Analyze a transmon using ElmerFEM.ipynb #933

Closed
sirshisram opened this issue Apr 7, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@sirshisram
Copy link
Contributor

sirshisram commented Apr 7, 2023

Information

  • Qiskit Metal version: 0.1.2
  • Python version: 3.11.2
  • Operating system: Windows 10 Pro 22H2 (OS Build: 19045.2788)

What is the current behavior?

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out'

Capture

Was going through the analysis tutorial notebook : "4.19 Analyze a transmon using ElmerFEM.ipynb"

Gmsh works properly when called. Installed ElmerFEM and verified it on the terminal.

image

image

Also verified environment variables and ELMER_HOME shows up

image

and added these to PATH.

image

Steps to reproduce the problem

Just executed the cells in the "4.19 Analyze a transmon using ElmerFEM.ipynb" notebook

What is the expected behavior?

The cell should run ElmerGrid on input mesh from Gmsh.

Suggested solutions

I am not sure.

@sirshisram sirshisram added the bug Something isn't working label Apr 7, 2023
@sirshisram sirshisram changed the title ElmerFEM error: " FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out' " FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out' Apr 7, 2023
@sirshisram sirshisram changed the title FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out' Error when executing qiskit-metal/tutorials/4 Analysis/B. Advanced - Direct use of the renderers/4.19 Analyze a transmon using ElmerFEM.ipynb - FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out' Apr 7, 2023
@sirshisram sirshisram changed the title Error when executing qiskit-metal/tutorials/4 Analysis/B. Advanced - Direct use of the renderers/4.19 Analyze a transmon using ElmerFEM.ipynb - FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out' Error when executing qiskit-metal/tutorials/4 Analysis/B. Advanced - Direct use of the renderers/4.19 Analyze a transmon using ElmerFEM.ipynb Apr 7, 2023
@diemilio
Copy link
Collaborator

diemilio commented Apr 8, 2023

Hi @sirshisram. This is the kind of error you would get if there is not mesh file for ElmerFEM to run. In the directory where the notebook is located, do you see the file out.msh? If not, what happens when you run the cell with elmer_renderer.export_mesh()?

I believe this is a mesh export issue, but just FYI, I also did a fresh install on a Windows PC with no dependencies previously installed (no anaconda, no qiskit-metal, no gmsh, no ElmerFEM, etc.), and was able to successfully run the notebook. Here are the steps I followed:

  1. Installed Anaconda
  2. Installed Microsoft C++ Build Tools
  3. Installed ElmerFEM (select add path for current user during installation)
  4. In anaconda prompt conda install -c anaconda git
  5. cd into folder to install metal
  6. git clone https://github.com/Qiskit/qiskit-metal.git
  7. cd qiskit-metal
  8. conda create --name qiskit-metal-src --file=environment.yml
  9. conda activate qiskit-metal-src
  10. python -m pip install --no-deps -e .
  11. conda install ipykernel
  12. ipython kernel install --user --name=qiskit-metal-src
  13. Opened gmsh/elmerfem tutorial notebook and ran all cells (not issues encountered).

lmk if you have any questions.

@sirshisram
Copy link
Contributor Author

Hi @diemilio! Thanks for your response!

I did check the directory of the notebook and out.msh is there. For the safer side, I deleted it and rerun the whole notebook again.

Upon executing elmer_renderer.export_mesh(), it does create out.msh. No error comes out.

image

image

Yet, it outputs the same error: FileNotFoundError: [WinError 3] The system cannot find the path specified: 'out'

@diemilio
Copy link
Collaborator

diemilio commented Apr 8, 2023

Hi @sirshisram, in the simdata folder, are there elmergrid.txt and elmersolver.txt files?

I might need to take a look at those. Are you subscribed to the Qiskit slack Workspace? Could you please share this issue in the #metal channel in there? and upload those files. Thanks.

@sirshisram
Copy link
Contributor Author

sirshisram commented Apr 8, 2023

Sure @diemilio, thanks.

Btw, simdata folder has only elmergrid.log, along with case.sif and ELMERSOLVER_STARTINFO. It does not have elmersolver.txt.

@diemilio
Copy link
Collaborator

After a series of discussions in qiskit's #metal slack channel, we have identified that this issue is not related to any of the code within the qiskit-metal repo; it seems to have to do with ElmerGrid, which is part of an external tool (ElmerFEM).

For this reason I think we can close this github issue and continue the discussion in the slack workspace.

@sirshisram
Copy link
Contributor Author

sure @diemilio

@sirshisram
Copy link
Contributor Author

I completely uninstalled ElmerFEM, and was able to make it work by installing ElmerFEM-gui-mpi-Windows-AMD64, instead of installing ElmerFEM-gui-nompi-Windows-AMD64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants