These are chat archives for spyder-ide/public
I do have a really strange error that only occurs when I have code running inside spyders ipython console but NOT if i run it directly with python or ipyhton.
From the error message it looks as if the dot ".'" inside some number strings has been converted to a comma ",".
The error appears deep down in some tensorflow code, at a location where they run "exec" on some string commands.
However, inside the spyders ipython console this string cmd seems to be wrongly created, compared to a standard python or ipyhton shell...
I have seen this issue with tensorflow 1.9 and 1.10 and spyder 3.3.1
The following 3 lines will reproduce the error (although make nothing really useful):
import tensorflow as tf
dataset = tf.data.Dataset.from_tensor_slices([ ["a","b","c","e"]])
dataset = dataset.apply(tf.contrib.data.assert_element_shape( tf.TensorShape(4) ) )
When run as "pyhton test.py" or "ipython test.py" it finishes without error....
But in spyder it crashes with the following error message:
def single_image_random_dot_stereograms(depth_values, hidden_surface_removal=True, convergence_dots_size=8, dots_per_inch=72, eye_separation=2,5, mu=0,333299994, normalize=True, normalize_max=-100, normalize_min=100, border_level=0, number_colors=256, output_image_shape=[1024, 768, 1], output_data_window=[1022, 757], name=None):
SyntaxError: invalid syntax
Do you have any idea where I can start searching? Shall i open up a ticket?
def single_imageline looked like inside TensorFlow's actual code base? @ccordoba12 , any thoughts?
.3333is displayed above as
execon line 73, but may also have something to do with the functions on lines 56-61 or the lines immediately before the
execcall that results in the problem down the line.
qtconsoleand compare the two to see where a meaningful difference is introduced (that would also rule out anything caused by something in qtconsole or its stack).