Welcome, Guest
Username: Password: Remember me

TOPIC: ImportError

ImportError 11 years 8 months ago #8006

  • kurisusing
  • kurisusing's Avatar
Hi there,

I use Ubuntu 12.10 and try to run telemac2d by importing the different necessary files in the pytel folder.

I get this error message though. Can anyone tell me what the problem is and how to solve that?

Thanks:

christopher@ubuntu:~/opentelemac/pytel$ python runcode.py telemac2d -s t2d_confluence
Traceback (most recent call last):
File "runcode.py", line 105, in <module>
from utils.files import getFileContent,putFileContent,removeDirectories,isNewer
ImportError: No module named utils.files
christopher@ubuntu:~/opentelemac/pytel$
The administrator has disabled public write access.

ImportError 11 years 8 months ago #8011

  • gourish
  • gourish's Avatar
Hi,

Can you find the directory utils/ in the pytel root directory? If yes then please check whether the following files are present in the utils directory,
" __init__.py, files.py, geometry.py, messages.py, partitioning.py, progressbar.py "

If these files are not present then you may download from the svn repository and place them the respective root directory.

If these settings are fine then probably telemac may run.

With Best Regards,
Gourish
The administrator has disabled public write access.

ImportError 11 years 8 months ago #8020

  • kurisusing
  • kurisusing's Avatar
I don't have any util directory in pytel. Do you reckon that I need to go in the SVN directory to find them?

I am presently trying the pre-compiled version.

Thanks
The administrator has disabled public write access.

ImportError 11 years 8 months ago #8022

  • gourish
  • gourish's Avatar
Hi,

I think the pre-compiled version which you have downloaded may not be having the util directory.
Download the complete source code from the svn repository using a svn client program. Then copy the pytel directory from the svn downloaded source code to the respective directory tree of Telemac in you system. I think possibly this may solve your problem.

Refer to the link www.opentelemac.org/index.php/sources-svn on help to download the source code.

With Best Regards,
Gourish
The administrator has disabled public write access.
Moderators: pham

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