Welcome, Guest
Username: Password: Remember me

TOPIC: ModuleNotFoundError: No module named '_hermes'

ModuleNotFoundError: No module named '_hermes' 3 years 6 months ago #38552

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

The compilation was successful:
~> Wrap_api built
    ~> Compiling Modules api
    ~> First part of f2py for api passed
    ~> Second part of f2py of api passed
    ~> Compiling hermes api
    ~> First part of f2py for hermes passed
    ~> Second part of f2py of hermes passed


My work is done

but I don't understand why I'm still getting the no module error for '_hermes'. :(
The administrator has disabled public write access.

ModuleNotFoundError: No module named '_hermes' 3 years 6 months ago #38553

Hello. I think you probably need to set your path.

Looking at your config file, I think the modules should be here:
C:\opentelemac-mascaret\v8p2\builds\wing64mpi\wrap_api\lib

They are files called (with some extra characters) something like:
_api.pyd
_hermes.pyd

I would try a command like this to set your path:
set PYTHONPATH=C:\opentelemac-mascaret\v8p2\builds\wing64mpi\wrap_api\lib;%PYTHONPATH%
The administrator has disabled public write access.
The following user(s) said Thank You: nitesh

ModuleNotFoundError: No module named '_hermes' 3 years 6 months ago #38560

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi Michael,

I don't know why setting the path in environment variables is not working for me, So I copied and pasted the _hermes.cp39-win_amd64.pyd in ..v8p2/scripts/python3 folder changing the name to _hermes.pyd.
Now it's working.
Thank you so much :)
The administrator has disabled public write access.

ModuleNotFoundError: No module named '_hermes' 3 years 6 months ago #38561

Well done on finding a solution. It's interesting to know that method works. I'm glad it's working now!

Michael
The administrator has disabled public write access.

ModuleNotFoundError: No module named '_hermes' 2 years 11 months ago #39431

  • haozailao
  • haozailao's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 86
  • Thank you received: 1
Hi,nitesh.
Can you send me the module you have successfully compiled?
The administrator has disabled public write access.

ModuleNotFoundError: No module named '_hermes' 2 years 11 months ago #39442

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

This is the link to '../v8p2/builds/win64mpi' folder: drive.google.com/drive/folders/1UjGbQZXl...1UPjeBmA?usp=sharing

I hope it helps.

Regards,
Nitesh
The administrator has disabled public write access.

ModuleNotFoundError: No module named '_hermes' 2 years 11 months ago #39443

  • haozailao
  • haozailao's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 86
  • Thank you received: 1
Thank you for sharing
The administrator has disabled public write access.

ModuleNotFoundError: No module named '_hermes' 2 years 9 months ago #39716

  • nshettigar
  • nshettigar's Avatar
  • NOW ONLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 1
Hi I am facing a problem with using Postel for post-processing. In Spyder, the following line results in an error.
res = TelemacFile(file_name)
TelemacException: Error: unable to load the dynamic library _hermes.dll
You can check the environment variable: PYTHONPATH
No module named '_hermes'

I did go through the discussion on this matter but I don't think it applies to Linux installation and compilation of Telemac. Does anyone know how to resolve the issue in this case ? (attached snapshots of my telemac folder)
Thank you.
Attachments:
The administrator has disabled public write access.
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.