ImportError: No module named Scientific_netcdf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saad Bin Ahmed
    New Member
    • Jul 2011
    • 25

    ImportError: No module named Scientific_netcdf

    I am using Ubuntu on server and on my local machine. I have written my python script which runs fine on my local machine but shows some problems on my server because of compatibility issues. The solution of this came in my mind is to make binary file of that script which is running fine on my local machine. I searched for pyinstaller and follow the instructions for how to make binary from python script. For this reason I firstly install pyinstaller from http://www.pyinstaller .org/ and then follow the following commands.

    Code:
    python Makespec.py --onefile --console -upx myscript.py
    python Build.py dir_name/myscript.spec
    I got the following error

    Code:
    File "<string>", line 3, in <module>
      File "/root/thesis/blstm_thesis/Saad-Unlv-Data/pyinstaller-1.5.1/iu.py", line 436, in importHook
      mod = _self_doimport(nm, ctx, fqname)
      File "/root/thesis/blstm_thesis/Saad-Unlv-Data/pyinstaller-1.5.1/iu.py", line 521, in doimport
      exec co in mod.__dict__
      File "unlv_offline/build/pyi.linux2/unlv_offline/outPYZ1.pyz/Scientific.IO.NetCDF", line 165, in <module>
      File "/root/thesis/blstm_thesis/Saad-Unlv-Data/pyinstaller-1.5.1/iu.py", line 455, in importHook
      raise ImportError, "No module named %s" % fqname
    ImportError: No module named Scientific_netcdf
    Note:The Scientific.IO.N etCDF is installed and import correctly when I check it on python shell.

    Since two days or so I am trying to rectify this error but now I hands-up to do something new because I have tried almost every possible given solution.

    If any of you have some suggestions regarding the matter then it would be very appreciative
Working...