Welcome, Guest
Username: Password: Remember me

TOPIC: ImportError: No module named request when install with telemac_v8p4r0_

ImportError: No module named request when install with telemac_v8p4r0_ 11 months 2 days ago #43843

Hello everyone,

I recently tried to use telemac for a flooding simulation. But after installing the automoatic installation:telemac_v8p4r0_setup, as I tried to complie it, it always showed:

Traceback (most recent call last):
File "C:\Program Files\TELEMAC\V8P4\scripts\python3\compile_telemac.py", line 14, in <module>
from compilation.compil_tools import compile_api_files, \
File "C:\Program Files\TELEMAC\V8P4\scripts\python3\compilation\compil_tools.py", line 17, in <module>
from utils.files import create_directories, put_file_content, is_newer
File "C:\Program Files\TELEMAC\V8P4\scripts\python3\utils\files.py", line 48, in <module>
from urllib.request import urlopen
ImportError: No module named request

I have no idea how to solve it, does anyone know it? Thank you in advance!
All the best,
Ming
Attachments:
The administrator has disabled public write access.

ImportError: No module named request when install with telemac_v8p4r0_ 11 months 2 days ago #43845

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
Do not install Telemac in path with space in it --> "Program Files".
Better to install in C:/TELEMAC
The administrator has disabled public write access.

ImportError: No module named request when install with telemac_v8p4r0_ 11 months 2 days ago #43848

Thank you for quick replying!Following to your sugesstions,
I have removed and reinstalled all the files. However, it showed the same error:
(telemac) C:\TELEMAC>compile_telemac.py
Traceback (most recent call last):
File "C:\TELEMAC\V8P4\scripts\python3\compile_telemac.py", line 14, in <module>
from compilation.compil_tools import compile_api_files, \
File "C:\TELEMAC\V8P4\scripts\python3\compilation\compil_tools.py", line 17, in <module>
from utils.files import create_directories, put_file_content, is_newer
File "C:\TELEMAC\V8P4\scripts\python3\utils\files.py", line 48, in <module>
from urllib.request import urlopen
ImportError: No module named request
The administrator has disabled public write access.

ImportError: No module named request when install with telemac_v8p4r0_ 11 months 2 days ago #43849

  • Renault
  • Renault's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 120
  • Thank you received: 33
Hi,

I'm told TELEMAC v8p5 is now available, would it be possible to try installing that instead of v8p4?

Kind regards,
André Renault
The administrator has disabled public write access.

ImportError: No module named request when install with telemac_v8p4r0_ 11 months 1 day ago #43856

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
Hi André,

Of course, we plan to publish the installer for V8P5 in January.
The administrator has disabled public write access.

ImportError: No module named request when install with telemac_v8p4r0_ 11 months 1 day ago #43855

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
The installer provides pre-built binaries, you don't need to compile anything, and in fact you shouldn't do so. I may remove the "compile_telemac.py" script in the next version of the installer to avoid such confusion.
The administrator has disabled public write access.
Moderators: borisb

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