User Profile
Collapse
-
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... -
IndexError: narray: index out of range (While working with Ocropus)
I am working with ocropus for the purpose to binarize and segments the unsegmented images. I use command to binarize the image files by ocropus as
By using the above mentioned command it worked fine for few images but after sometime it prompts an error message as shown below,Code:ocropus-binarize -o book /home/images/*.tif
...Code:File "/usr/local/bin/ocropus-binarize", line 151, in <module>
-
Yes, it seems that I am running out of disk by doing all the stuff. Whenever files increased to 900 or more it automatically hangs further processing. It does not show me any error message but also not processed further. I have already used garbage collector function gc.collect() that also could not solve the problem. -
I currently read,write and close every file but Master.nc will remain open until to read, write and close all 30,000.Leave a comment:
-
Actually I have to read, and save the contents of each file in separate netcdf file named Master.nc. Its mean all files content will be written in one file i.e., Master.nc. At the end I will have one file which should have contents of all files (in my case files=~30,000).Leave a comment:
-
Memory management for Large dataset in python
Hi Everyone,
I am working on Latin dataset and I am supposed to read all the data from ~30,000 files. What i did was, I opened and read the file and written file contents in separate one file (say Master.nc) and then close the individual files. But Master.nc will not close unless to read the last file.
I need Master.nc file at the end having the content information of all ~30,000 files.
My program is... -
Saad Bin Ahmed started a topic AttributeError: 'module' object has no attribute 'getElementsByTagName'in PythonAttributeError: 'module' object has no attribute 'getElementsByTagName'
Hey,
I am using Ubuntu10.04 with python 2.6 on 64bit system,
I want to run xml file but it stucks with an error as mentioned below.
File "online_xml.py" , line 60, in readStrokes
strokes = dom.getElements ByTagName("Stro ke")
AttributeError: 'module' object has no attribute 'getElementsByT agName'
Please suggest me about the possible error that may have.
Thanks... -
Problem in Installing SRILM package
Hey,
Dear dudes I am facing problem while installing SRILM package to my Ubuntu 10.04 64-bit platform.
The things I have done so far are
1. I download the srilm package from http://www.speech.sri.com/projects/srilm/download.html
2. I unzip this package and type srilm$make World
It was showing me an error and was searching common directory in src directory, but common directory is in srilm root directory... -
I am giving xml file as an input to this program. The statement shows above is use to read xml Tags, Net is a Tag name and it contains value.Leave a comment:
-
Segmentation Fault
Hello,
I got segmentation fault error due to problem in following code. If somebody knows how can I write it another way then please share it.
const DOMElement* netElement = (DOMElement*) rootNode->getElementsByT agName(XMLStrin g::transcode("N et"))->item(0);
When I removed ->item(0) at the the end of above mentioned code then segmentation error removed but program Aborted during execution.... -
DOMImplementationLS' has no member named 'createDOMWriter'
Hey,
I am using nnl_ndim-2.0 library, it configures fine but when I am going to install, it stuck with the error snippet as follows
In file included from ../../xercesc/dom/DOMWriter.hpp:2 6,
from NDimNet.cpp:2:
../../xercesc/dom/DOMWriterFilter .hpp:45: error: conflicting return type specified for 'virtual short int xercesc_3_1::DO MWriterFilter:: acceptNode(cons t xercesc_3_1::DO MNode*) const'... -
No I have a one program of this name in directory. I am not calling other directory's file in my program so this can not be the case.Leave a comment:
-
What is nc_var and what is data? What does assignValue do?
nc_var is a netcdf varriable and data contains all the labels like A,B,C.... assignValue is a builtin function, it does has a form
netcdf_variable .assignValue(va lue)
Actually I am using netcdf library for my program and this error shows in library program. I am unable to sort it out.Leave a comment:
-
ValueError: setting an array element with a sequence
I am facing problem while running python code. Following is the program which read files where labels have been declared and add it by following the condition. Labels are not declared as array but I am unable to get why the following error shows.
Please have a look on it and give suggestions in order to rectify this error.
This program is too large so I copied here only that portion where labels are in process.
... -
Actually I want to read the words. As list elements are the characters and "sp" indicate the end of word. So, read the list until find sp. Whenever find sp the previously appended characters will be a word.
This is not what I desire. My program actually is...
...Code:target_s=[] wordTargetStrings=[] temp=[["T"],["h"],["i"],["s"],["sp"],["i"],["s"],["sp"],["s"],["t"],["r"],["i"],["n"],["g"],["sp"],["."],["002"],["N"],["o"],["w"],["sp"],["o"],["r"],["sp"],["N"],["e"],["v"],["e"],["r"],["sp"],["."]]
Leave a comment:
-
"can only concatenate list (not "str") to list"
I have encountering a problem while concatenating string with a list. What I did, shows below,
...Code:w='' wordTargetStrings=[] target_s=['000','i','t','sp','ga','i','s','ga','sp','s','t','r','i','n','g','sp'] for t in range(len(target_s)): if target_s != "sp" and target_s!= "ga" and target_s !="pt": w=w+target_s[t] else: wordTargetStrings.append(w) -
List Index out of range in Recurrent Nural Network
I have not too much experience in python. Here goes my problem. I am writing the code for recurrent neural network in order to recognize words given as .xml file and search in the dictionary which word .xml file conatins.
For this task I have initially defined labels of characters, then read the lines in .xml file and then try to figure out which word it contains, but here it shows List Index out of range error.
labels contain... -
sorry for inconvenience. Here is the code with good readability.
...Code:#!/usr/bin/python from Scientific.IO import NetCDF from numpy import arange, array, vectorize, newaxis import netcdf_helpers from scipy import * from optparse import OptionParser import sys import os from xml.dom.minidom import parse labels = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
Leave a comment:
-
How to install NetCDF library in python 2.7
This article provides you the essential instruction in order to install netcdf.
NetCDF is a set of software libraries and self-describing, machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data. You can also find more about NetCDF from http://www.unidata.ucar.edu/software/netcdf/. But I just here only discuss how to install different versions of netcdf. For installing NetCDF... -
from numpy import array
inputMeans =array([1, 2, 3])
inputStds =array([4, 5, 6])
inputs=[]
inputs = ((array(inputs)-inputMeans)/inputStds).toli st()
// inputs is of array typeLeave a comment:
No activity results to display
Show More
Leave a comment: