error lists I found


Ask a Question
Back to All

error lists I found

thanks again your quick response

I got latest one and I still got these error Please check

  1. print () issues,

print len(self.cifar.train_inputs) --> print (len(self.cifar.train_inputs))

  1. raise () issues,

raise TypeError, "It is not a valid midi file!" -> raise (TypeError, "It is not a valid midi file!")

  1. packaage Path issues,,RawOutstreamFile,MidiInFile,RawInstreamFile,MidiFileParser, EventDispatcher


from MidiOutFile import MidiOutFile --> from opendeep.utils.midi.MidiOutFile import MidiOutFile

  1. unused packages in python 3 issues, RawInstreamFile, MIdiFileParser

from types import StringType
from cStringIO import StringIO

  1. MidiOutFile,EventDispatcher

from constants import * --> from . import constants

  1. rnn_gsn,rnn_rbm

cPickle is not used in python 3.4

import cPickle as pickle --> import pickle

    not used I commented
    from itertools import izip

  2. mnist
    I got this error

File "E:\project_luna\cuda\open_deep\test\", line 23, in
mnist = MNIST()
File "F:\python34\python-3.4.3.amd64\lib\site-packages\opendeep-0.0.9a0-py3.4.egg\opendeep\data\standard_datasets\image\", line 68, in init, 'rb')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 614: ordinal not in range(128)

so I changed the code like this, 'rb'),encoding='iso-8859-1'

  1. I still get this error

    from test import opendeeptest

    File "E:\project_luna\cuda\open_deep\test\", line 39, in
    dae = DenoisingAutoencoder(config)
    File "F:\python34\python-3.4.3.amd64\lib\site-packages\opendeep-0.0.9a0-py3.4.egg\opendeep\models\single_layer\", line 152, in init
    {arg: val for (arg, val) in locals().iteritems() if arg is not 'self'}
    AttributeError: 'dict' object has no attribute 'iteritems'