Discussions

Ask a Question
Back to All

error lists I found

hi
thanks again your quick response

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

  1. print () issues

test_cifar10.py,

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

  1. raise () issues

MidFileParser.py,EventDispatcher.py

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

  1. packaage Path issues

midi.py, MidiOutFile.py,RawOutstreamFile,MidiInFile,RawInstreamFile,MidiFileParser, EventDispatcher

example)

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

  1. unused packages in python 3 issues

RawOutstreamFile.py, 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

  1. Optimizer.py
    not used I commented
    from itertools import izip

  2. mnist
    I got this error

File "E:\project_luna\cuda\open_deep\test\opendeeptest.py", 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\mnist.py", line 68, in init
gzip.open(self.path, 'rb')
UnicodeDecodeError: 'ascii' codec can't decode byte 0x90 in position 614: ordinal not in range(128)

so I changed the code like this gzip.open(self.path, 'rb'),encoding='iso-8859-1'

  1. I still get this error

    from test import opendeeptest
    

    File "E:\project_luna\cuda\open_deep\test\opendeeptest.py", 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\autoencoder.py", line 152, in init
    {arg: val for (arg, val) in locals().iteritems() if arg is not 'self'}
    AttributeError: 'dict' object has no attribute 'iteritems'