473,396 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.

Expand|Select|Wrap|Line Numbers
  1. python Makespec.py --onefile --console -upx myscript.py
  2. python Build.py dir_name/myscript.spec
I got the following error

Expand|Select|Wrap|Line Numbers
  1. File "<string>", line 3, in <module>
  2.   File "/root/thesis/blstm_thesis/Saad-Unlv-Data/pyinstaller-1.5.1/iu.py", line 436, in importHook
  3.   mod = _self_doimport(nm, ctx, fqname)
  4.   File "/root/thesis/blstm_thesis/Saad-Unlv-Data/pyinstaller-1.5.1/iu.py", line 521, in doimport
  5.   exec co in mod.__dict__
  6.   File "unlv_offline/build/pyi.linux2/unlv_offline/outPYZ1.pyz/Scientific.IO.NetCDF", line 165, in <module>
  7.   File "/root/thesis/blstm_thesis/Saad-Unlv-Data/pyinstaller-1.5.1/iu.py", line 455, in importHook
  8.   raise ImportError, "No module named %s" % fqname
  9. ImportError: No module named Scientific_netcdf
Note:The Scientific.IO.NetCDF 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
Apr 17 '12 #1
0 1694

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Carsten Gehling | last post by:
Figured out myself - I just removed the line with "from url import Url" -it doesn't seem to be used anywhere ;-) - Carsten > -----Oprindelig meddelelse----- > Fra:...
2
by: x-herbert | last post by:
Hi, I have a small test to "compile" al litle script as a WMI-Tester. The script include a wmi-wrapper and "insert" the Win32-modeles. here the code: my "WMI-Tester.py" ----- import wmi
0
by: Wicked | last post by:
Hi all, Has anyone got rpm.py? Is this a class/module for Python? I am getting the following error: File "./extra/scripts/update_release.py", line 42, in ? import rpm ImportError: No...
0
by: M. Lavasani | last post by:
Hi I am trying to test Python-2.3. Any solution for this problem please: >>>gmake test case $MAKEFLAGS in \ *-s*)...
1
by: fanbanlo | last post by:
What seems to be the matter? >>> path = "C:\\eclipse\\workspace\\moin134\\docbook\\xslt\\html\\db_compiled.dat" >>> f = file(path) >>> cPickle.load(f) Traceback (most recent call last):...
0
by: Robert Dailey | last post by:
I created a basic python file and made an attempt to execute it from the command line, however it gives me a weird error after the python file has been executed: Traceback (most recent call...
1
by: Prof Rodney Coates | last post by:
Although I have been using Macs for a quarter of a century and was doing scientific programming in the '60's I am VERY new to Python on the Mac. I have been writing some very simple applications and...
2
by: Juha S. | last post by:
Hi, I'm trying to use the Python profilers to test my code, but I get the following output for cProfile.run() at the interpreter: Traceback (most recent call last): File "<stdin>", line 1, in...
0
by: Barak, Ron | last post by:
Hi, I'm trying to compile using py2exe, and am getting the following: $ python_win Setup.py py2exe running py2exe creating c:\Documents and Settings\rbarak\rbarak_devel\dpm09\build creating...
4
by: Daniel | last post by:
Hello, I'm trying to build a very simple IPC system. What I have done is create Data Transfer Objects (DTO) for each item I'd like to send across the wire. I am serializing these using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.