error lists I found

Solved!
Posted in General by kwang nam Mon Jul 27 2015 23:24:20 GMT+0000 (UTC)·3·Viewed 2,307 times

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)) 2) 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!") 3) packaage Path issues midi.py, MidiOutFile.py,RawOutstreamFile,MidiInFile,RawInstreamFile,MidiFileParser, EventDispatcher example) from MidiOutFile import MidiOutFile --> from opendeep.utils.midi.MidiOutFile import MidiOutFile 4) unused packages in python 3 issues RawOutstreamFile.py, RawInstreamFile, MIdiFileParser from types import StringType from cStringIO import StringIO 5) MidiOutFile,EventDispatcher from constants import * --> from . import constants 6) rnn_gsn,rnn_rbm cPickle is not used in python 3.4 import cPickle as pickle --> import pickle 7) Optimizer.py not used I commented from itertools import izip 8) mnist I got this error File "E:\project_luna\cuda\open_deep\test\opendeeptest.py", line 23, in <module> 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' 9) I still get this error from test import opendeeptest File "E:\project_luna\cuda\open_deep\test\opendeeptest.py", line 39, in <module> 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'
Markus Beissinger
July 27, 2015

Thanks for this list! I'm working on fixing all the compatibility errors - most likely will finish by tomorrow. Could you also reinstall from the latest Github version? The error 9) autoencoder.py had been fixed to use items() rather than iteritems(). Thanks!

kwang nam
July 28, 2015

error 9) is gone thx

Markus Beissinger
Aug 3, 2015

They should be all fixed! Let me know if you run into more issues :)


Markus Beissinger marked this as solved
Markdown is allowed