I have been trying to figure out what's wrong with this code:
from kivy.app import App
from kivy.properties import ObjectProperty
from kivy.uix.widget import Widget
from kivy.clock import Clock
from plyer.facades import accelerometer
class Accel(Widget):
def __init__(self):
super().__init__()
self.sensorEnabled = False
def get_acceleration(self, dt):
val = accelerometer.acceleration
self.ids.label1.text = "X: " + str(val[0])
self.ids.label2.text = "Y: " + str(val[1])
self.ids.label3.text = "Z: " + str(val[2])
def pressed1(self):
try:
if not self.sensorEnabled:
# accelerometer.enable()
Clock.schedule_interval(self.get_acceleration, 1 / 20.)
self.sensorEnabled = True
self.ids.button1.text = "Stop"
else:
# accelerometer.disable()
Clock.unschedule(self.get_acceleration)
self.sensorEnabled = False
self.ids.button1.text = "Start"
except:
self.ids.status.text = "Accelerometer not supported"
class e3App(App):
def build(self):
return Accel()
if __name__ == '__main__':
e3App().run()
What happens is when I run it and press the START button it crashes and gives me this:
> Traceback (most recent call last): File
> "/usr/local/lib/python3.5/dist-packages/plyer/platforms/linux/accelerometer.py",
> line 22, in _get_acceleration
> pos = glob.glob("/sys/devices/platform/*/position")[0] IndexError: list index out of range During handling of the above
> exception, another exception occurred: Traceback (most recent call
> last): File
> "/home/rickdps/Desktop/KivyCookBook/InputMotionAndTouch/WorkingWithAccelerometer/main.py",
> line 42, in <module>
> e3App().run() File "/usr/local/lib/python3.5/dist-packages/kivy/app.py", line 828, in run
> runTouchApp() File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 504, in
> runTouchApp
> EventLoop.window.mainloop() File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_sdl2.py",
> line 663, in mainloop
> self._mainloop() File "/usr/local/lib/python3.5/dist-packages/kivy/core/window/window_sdl2.py",
> line 405, in _mainloop
> EventLoop.idle() File "/usr/local/lib/python3.5/dist-packages/kivy/base.py", line 339, in
> idle
> Clock.tick() File "/usr/local/lib/python3.5/dist-packages/kivy/clock.py", line 581, in
> tick
> self._process_events() File "kivy/_clock.pyx", line 367, in kivy._clock.CyClockBase._process_events
> (/tmp/pip-build-rau3eo9p/kivy/kivy/_clock.c:7700) File
> "kivy/_clock.pyx", line 397, in
> kivy._clock.CyClockBase._process_events
> (/tmp/pip-build-rau3eo9p/kivy/kivy/_clock.c:7577) File
> "kivy/_clock.pyx", line 395, in
> kivy._clock.CyClockBase._process_events
> (/tmp/pip-build-rau3eo9p/kivy/kivy/_clock.c:7498) File
> "kivy/_clock.pyx", line 167, in kivy._clock.ClockEvent.tick
> (/tmp/pip-build-rau3eo9p/kivy/kivy/_clock.c:3490) File
> "/home/rickdps/Desktop/KivyCookBook/InputMotionAndTouch/WorkingWithAccelerometer/main.py",
> line 15, in get_acceleration
> val = accelerometer.acceleration[:3] File "/usr/local/lib/python3.5/dist-packages/plyer/utils.py", line 103, in
> __getattribute__
> return getattr(object.__getattribute__(self, '_obj'), name) File
> "/usr/local/lib/python3.5/dist-packages/plyer/facades/accelerometer.py",
> line 44, in acceleration
> return self.get_acceleration() File "/usr/local/lib/python3.5/dist-packages/plyer/facades/accelerometer.py",
> line 60, in get_acceleration
> return self._get_acceleration() File "/usr/local/lib/python3.5/dist-packages/plyer/platforms/linux/accelerometer.py",
> line 24, in _get_acceleration
> raise Exception('Could not enable accelerometer!') Exception: Could not enable accelerometer!
I am following this book called "Kivy Cook Book", and I've mostly copied and pasted code in order to try it. This one has not worked though.
I'd really appreciate any help.
Related
Our sql query inside Django API perform joins and filtering over millions of records in sql server and takes long time to complete. Error occurs randomly in these api calls.
This seem to be the bug in pyodbc while decoding. This occurs at random in docker based linux environment.
Related issues - github issue 1014, github open issue 640
> 2023-02-06T08:23:54.206253807Z [2023-02-06 08:23:54 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:34) 2023-02-06T08:23:54.290137374Z
> Internal Server Error: /get_table_preview
> 2023-02-06T08:23:54.290184978Z Traceback (most recent call last):
> 2023-02-06T08:23:54.290193279Z File
> "/usr/local/lib/python3.9/encodings/utf_16_le.py", line 15, in decode
> 2023-02-06T08:23:54.290200679Z def decode(input, errors='strict'):
> 2023-02-06T08:23:54.290208080Z File
> "/usr/local/lib/python3.9/site-packages/gunicorn/workers/base.py",
> line 203, in handle_abort 2023-02-06T08:23:54.290214281Z
> sys.exit(1) 2023-02-06T08:23:54.290219781Z SystemExit: 1
> 2023-02-06T08:23:54.290225082Z 2023-02-06T08:23:54.290230382Z The
> above exception was the direct cause of the following exception:
> 2023-02-06T08:23:54.290235682Z 2023-02-06T08:23:54.290240883Z
> Traceback (most recent call last): 2023-02-06T08:23:54.290246183Z
> File
> "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py",
> line 55, in inner 2023-02-06T08:23:54.290251684Z response =
> get_response(request) 2023-02-06T08:23:54.290256884Z File
> "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py",
> line 220, in _get_response 2023-02-06T08:23:54.290262485Z response
> = response.render() 2023-02-06T08:23:54.290267685Z File "/usr/local/lib/python3.9/site-packages/django/template/response.py",
> line 114, in render 2023-02-06T08:23:54.290273786Z self.content =
> self.rendered_content 2023-02-06T08:23:54.290279286Z File
> "/usr/local/lib/python3.9/site-packages/rest_framework/response.py",
> line 70, in rendered_content 2023-02-06T08:23:54.290284586Z ret =
> renderer.render(self.data, accepted_media_type, context)
> 2023-02-06T08:23:54.290289787Z File
> "/usr/local/lib/python3.9/site-packages/rest_framework/renderers.py",
> line 99, in render 2023-02-06T08:23:54.290296187Z ret =
> json.dumps( 2023-02-06T08:23:54.290304288Z File
> "/usr/local/lib/python3.9/site-packages/rest_framework/utils/json.py",
> line 25, in dumps 2023-02-06T08:23:54.290324390Z return
> json.dumps(*args, **kwargs) 2023-02-06T08:23:54.290329990Z File
> "/usr/local/lib/python3.9/json/__init__.py", line 234, in dumps
> 2023-02-06T08:23:54.290335191Z return cls(
> 2023-02-06T08:23:54.290340091Z File
> "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
> 2023-02-06T08:23:54.290345191Z chunks = self.iterencode(o,
> _one_shot=True) 2023-02-06T08:23:54.290350192Z File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
> 2023-02-06T08:23:54.290355292Z return _iterencode(o, 0)
> 2023-02-06T08:23:54.290360193Z File
> "/usr/local/lib/python3.9/site-packages/rest_framework/utils/encoders.py",
> line 47, in default 2023-02-06T08:23:54.290365293Z return
> tuple(obj) 2023-02-06T08:23:54.290370194Z File
> "/usr/local/lib/python3.9/site-packages/django/db/models/query.py",
> line 320, in __iter__ 2023-02-06T08:23:54.290375294Z
> self._fetch_all() 2023-02-06T08:23:54.290380094Z File
> "/usr/local/lib/python3.9/site-packages/django/db/models/query.py",
> line 1507, in _fetch_all 2023-02-06T08:23:54.290385195Z
> self._result_cache = list(self._iterable_class(self))
> 2023-02-06T08:23:54.290391195Z File
> "/usr/local/lib/python3.9/site-packages/django/db/models/query.py",
> line 130, in __iter__ 2023-02-06T08:23:54.290396396Z for row in
> compiler.results_iter( 2023-02-06T08:23:54.290401196Z File
> "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py",
> line 1312, in results_iter 2023-02-06T08:23:54.290406397Z results
> = self.execute_sql( 2023-02-06T08:23:54.290411197Z File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py",
> line 1361, in execute_sql 2023-02-06T08:23:54.290416397Z
> cursor.execute(sql, params) 2023-02-06T08:23:54.290421198Z File
> "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py",
> line 103, in execute 2023-02-06T08:23:54.290426298Z return
> super().execute(sql, params) 2023-02-06T08:23:54.290431199Z File
> "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py",
> line 67, in execute 2023-02-06T08:23:54.290436399Z return
> self._execute_with_wrappers( 2023-02-06T08:23:54.290441399Z File
> "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py",
> line 80, in _execute_with_wrappers 2023-02-06T08:23:54.290446500Z
> return executor(sql, params, many, context)
> 2023-02-06T08:23:54.290451500Z File
> "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py",
> line 89, in _execute 2023-02-06T08:23:54.290456601Z return
> self.cursor.execute(sql, params) 2023-02-06T08:23:54.290461501Z File
> "/usr/local/lib/python3.9/site-packages/mssql/base.py", line 598, in
> execute 2023-02-06T08:23:54.290466602Z return
> self.cursor.execute(sql, params) 2023-02-06T08:23:54.290471502Z
> SystemError: <class 'pyodbc.Error'> returned a result with an error
> set 2023-02-06T08:23:54.291507188Z [2023-02-06 08:23:54 +0000] [34]
> [INFO] Worker exiting (pid: 34) 2023-02-06T08:23:54.490548019Z
> [2023-02-06 08:23:54 +0000] [48] [INFO] Booting worker with pid: 48
How do I fix or catch this random issue?
Trying to combine RSI indicator parameters with my already working EMA indicator parameters causing an error. After research I am still struggling. Any help is extremely grateful, can provide full code if needed
def calculations(df):
in_long = False
in_short = False
#EMA's:
df['short_ema'] = pd.DataFrame.ewm(df['close'], span = short_span).mean()
df['long_ema'] = pd.DataFrame.ewm(df['close'], span = long_span).mean()
#RSI:
df['RSI'] = pd.DataFrame(talib.RSI(df['close'], rsi_period))
#IN TRADE?
df['in_uptrend'] = 'N/A'
for current in range(1, len(df.index)):
previous = current - 1
#LONG POSITION
if df['RSI'] > rsi_mid:
if df['short_ema'][current] > df['long_ema'][current] and df['close'][current] > df['short_ema'][current] and in_long == False:
df['in_uptrend'][current] = 'OPEN LONG'
in_long = True
elif df['close'][current] > df['long_ema'][current] and in_long == True:
df['in_uptrend'][current] = 'Still in long'
elif df['close'][current] < df['long_ema'][current] and in_long == True:
df['in_uptrend'][current] = 'Close long'
in_long = False
#SHORT POSITION
if df['RSI'] < rsi_mid:
if df['short_ema'][current] < df['long_ema'][current] and df['close'][current] < df['short_ema'][current] and in_short == False:
df['in_uptrend'][current] = 'OPEN SHORT'
in_short = True
elif df['close'][current] < df['long_ema'][current] and in_short == True:
df['in_uptrend'][current] = 'Still in short'
elif df['close'][current] > df['long_ema'][current] and in_short == True:
df['in_uptrend'][current] = 'Close short'
in_short = False
emas = df[['short_ema', 'long_ema']].max(axis=1)
return df
Here is the entire error message with the Traceback:
Traceback (most recent call last): File
"/Users/hamishmcpherson/Desktop/EMA Bot/app.py", line 95, in
run_schedule() File "/Users/hamishmcpherson/Desktop/EMA Bot/app.py", line 86, in run_schedule
schedule.run_pending() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/schedule/init.py",
line 780, in run_pending
default_scheduler.run_pending() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/schedule/init.py",
line 100, in run_pending
self._run_job(job) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/schedule/init.py",
line 172, in _run_job
ret = job.run() File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/schedule/init.py",
line 661, in run
ret = self.job_func() File "/Users/hamishmcpherson/Desktop/EMA Bot/app.py", line 78, in run_bot
calculation = calculations(df) File "/Users/hamishmcpherson/Desktop/EMA Bot/app.py", line 43, in
calculations
if df['RSI'] > rsi_mid: File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/core/ops/common.py",
line 65, in new_method
return method(self, other) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/core/arraylike.py",
line 45, in gt
return self._cmp_method(other, operator.gt) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/core/series.py",
line 4978, in _cmp_method
res_values = ops.comparison_op(lvalues, rvalues, op) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/core/ops/array_ops.py",
line 240, in comparison_op
return invalid_comparison(lvalues, rvalues, op) File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/core/ops/invalid.py",
line 34, in invalid_comparison
raise TypeError(f"Invalid comparison between dtype={left.dtype} and {typ}") TypeError: Invalid comparison between dtype=float64 and
str Exception ignored in: <function Exchange.del at
0x7f8398c35f70> Traceback (most recent call last): File
"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/ccxt/base/exchange.py",
line 397, in del File
"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py",
line 747, in close File
"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/adapters.py",
line 325, in close File
"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/poolmanager.py",
line 222, in clear File
"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/_collections.py",
line 100, in clear File
"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/poolmanager.py",
line 173, in File
"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connectionpool.py",
line 494, in close TypeError: catching classes that do not inherit
from BaseException is not allowed
I am trying to get Turtle-graphics to display a background image.
Here's my code:
import turtle
from turtle import *
from appJar import gui
...
turtle.setup(900,700) #windowsize
Ian = turtle.Turtle()
Ian.hideturtle()
Ian.screen.title("Arp Convertor")
Ian.screen.bgcolor("#4a4a54")
Ian.screen.bgpic('Backwslots2.gif')
Ian.speed(0)
Ian.penup() #dont draw
Ian.goto(-430,250) #where we'll start drawing
My image is the right size, exactly 900x700 in the current dir (same as my .py file). But the bgpic() line is giving me these errors.
> Exception in Tkinter callback Traceback (most recent call last):
> File
> "C:\Users\Ian\AppData\Local\Programs\Python\Python37-32\lib\tkinter\__init__.py",
> line 1705, in __call__
> return self.func(*args) File "D:\Midipy\appJar\appjar.py", line 3574, in <lambda>
> return lambda *args: funcName(param) File "midipy.py", line 21, in openthefile
> convertthefile(btn) File "midipy.py", line 141, in convertthefile
> Ian.screen.bgpic('Backwslots2.gif') File "C:\Users\Ian\AppData\Local\Programs\Python\Python37-32\lib\turtle.py",
> line 1482, in bgpic
> self._setbgpic(self._bgpic, self._bgpics[picname]) File "C:\Users\Ian\AppData\Local\Programs\Python\Python37-32\lib\turtle.py",
> line 738, in _setbgpic
> self.cv.itemconfig(item, image=image)
My application was running well but as I upgraded it to python version 3.4 . I am getting the error shown bellow. Looking at the error message I am not exactly able to debug the problem
Error:
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.4/logging/__init__.py", line 978, in emit
msg = self.format(record)
File "/usr/lib64/python3.4/logging/__init__.py", line 828, in format
return fmt.format(record)
File "/usr/lib64/python3.4/logging/__init__.py", line 573, in format
record.exc_text = self.formatException(record.exc_info)
File "/usr/lib64/python3.4/logging/__init__.py", line 523, in formatException
traceback.print_exception(ei[0], ei[1], tb, None, sio)
File "/usr/lib64/python3.4/traceback.py", line 169, in print_exception
for line in _format_exception_iter(etype, value, tb, limit, chain):
File "/usr/lib64/python3.4/traceback.py", line 146, in _format_exception_iter
for value, tb in values:
File "/usr/lib64/python3.4/traceback.py", line 125, in _iter_chain
context = exc.__context__
AttributeError: 'NoneType' object has no attribute '__context__'
Call stack:
File "main.py", line 253, in <module>
main()
File "main.py", line 144, in main
plugininfo.plugin_object.run(cons.MAIN_CONFIG_PATH, outputpath, finallogs, plugininfo.name, args.inventory)
File "/home/sjoshi/python3.4/check-acess/plugins/plugin_etc_passwd/plugin_etc_passwd.py", line 107, in run
self.result = phelper.executeCommand(runcommand)
File "/home/sjoshi/python3.4/check-acess/lib/sshplugin/sshplugin.py", line 86, in executeCommand
logging.exception("ErrorCode:%d %s", cmdout.returncode, output)
Message: 'ErrorCode:%d %s'
Arguments: (255, b'')
No Result found or all users filtered sbx32 /etc/passwd
Permission denied (publickey).
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.4/logging/__init__.py", line 978, in emit
msg = self.format(record)
File "/usr/lib64/python3.4/logging/__init__.py", line 828, in format
return fmt.format(record)
File "/usr/lib64/python3.4/logging/__init__.py", line 573, in format
record.exc_text = self.formatException(record.exc_info)
File "/usr/lib64/python3.4/logging/__init__.py", line 523, in formatException
traceback.print_exception(ei[0], ei[1], tb, None, sio)
File "/usr/lib64/python3.4/traceback.py", line 169, in print_exception
for line in _format_exception_iter(etype, value, tb, limit, chain):
File "/usr/lib64/python3.4/traceback.py", line 146, in _format_exception_iter
for value, tb in values:
File "/usr/lib64/python3.4/traceback.py", line 125, in _iter_chain
context = exc.__context__
AttributeError: 'NoneType' object has no attribute '__context__'
Call stack:
File "main.py", line 253, in <module>
main()
File "main.py", line 144, in main
plugininfo.plugin_object.run(cons.MAIN_CONFIG_PATH, outputpath, finallogs, plugininfo.name, args.inventory)
File "/home/sjoshi/python3.4/check-acess/plugins/plugin_etc_passwd/plugin_etc_passwd.py", line 107, in run
self.result = phelper.executeCommand(runcommand)
File "/home/sjoshi/python3.4/check-acess/lib/sshplugin/sshplugin.py", line 86, in executeCommand
logging.exception("ErrorCode:%d %s", cmdout.returncode, output)
Message: 'ErrorCode:%d %s'
Arguments: (255, b'')
sshplugin.py
import os
import subprocess as subp
import logging
import lib.exceptions.errors as error
import lib.inventory.bashhostlist as hostname
class SSHPlugin:
"""
Helper class for the SSH based plugins
"""
def makeCommand(self, user, host, filepath, sudo, timeout, attempt, changetols=None):
"""
-Two types of commands with or without ssh depends on hostname
-Other depends on parameter set or unset
-ConnectionAttempts and ConnectTimeout to occur must be SSH
-last arg(changetols): This is to checkif the plugin type is authorized_keys. Because in that case we need ls not cat
"""
command=""
if changetols is None:
command = ["cat", filepath]
else:
command=["ls", filepath]
if host.lower() == 'localhost':
if sudo.lower() == 'yes':
command.insert(0, 'sudo')
else:
command.insert(0, "ssh")
if timeout and not attempt:
command.insert(1, '-o')
command.insert(
2, "ConnectTimeout={timeout}".format(timeout=timeout))
command.insert(3, user+"#"+host)
if sudo.lower() == 'yes':
command.insert(4, 'sudo')
elif timeout and attempt:
command.insert(1, '-o')
command.insert(
2, "ConnectTimeout={timeout}".format(timeout=timeout))
command.insert(3, '-o')
command.insert(
4, "ConnectionAttempts={att}".format(att=attempt))
command.insert(5, user+"#"+host)
if sudo.lower() == 'yes':
command.insert(6, 'sudo')
elif attempt and not timeout:
command.insert(1, '-o')
command.insert(
2, "ConnectionAttempts={att}".format(att=attempt))
command.insert(3, user+"#"+host)
if sudo.lower() == 'yes':
command.insert(4, 'sudo')
else:
command.insert(1, user+"#"+host)
if sudo.lower() == 'yes':
command.insert(2, 'sudo')
return command
def executeCommand(self, command, filtercommand=None):
"""
Multuple Popen used to execute the process,Command followed by filter if any
if no filter than just a single commad run else
The output of first will act as the input to the filtering command
"""
if filtercommand is None:
cmdout = subp.Popen(command, stdout=subp.PIPE)
output, err = cmdout.communicate()
if cmdout.returncode is 0:
logging.info("Result success,status code %d", cmdout.returncode)
return output
else:
logging.exception("ErrorCode:%d %s %s", cmdout.returncode, output,err)
return False
else:
cmdout = subp.Popen(command, stdout=subp.PIPE)
filtered = subp.Popen(filtercommand, stdin=cmdout.stdout, stdout=subp.PIPE)
output, err = filtered.communicate()
if filtered.returncode is 0:
logging.info("Result success,status code %d", filtered.returncode)
return output
else:
logging.exception("ErrorCode:%d %s", filtered.returncode, output)
return False
why is the logging.exception throwing errors. Is it the problem with the logging module. I tried to replace the logging.exception with logging.info instead but that didn't work.
I tried to run this 3 lines of Code:
import mne
myfile = 'test_raw.fif'
raw = mne.io.read_raw_fif(myfile)
It should load a .fif-File
Its the example from http://martinos.org/mne/stable/index.html
When I try it with their sample-Data it works! When I run it with my own recordet Data I get this Errorstack:
> runfile('C:/Felix/Uni/Bachelorarbeit/mne/untitled2.py',
> wdir='C:/Felix/Uni/Bachelorarbeit/mne') Opening raw data file
> C:\Felix\Uni\Bachelorarbeit\mne\test_raw.fif... Traceback (most recent
> call last): File "<stdin>", line 1, in <module> File
> "C:\Users\Felix\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py",
> line 866, in runfile
> execfile(filename, namespace) File "C:\Users\Felix\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py",
> line 87, in execfile
> exec(compile(scripttext, filename, 'exec'), glob, loc) File "C:/Felix/Uni/Bachelorarbeit/mne/untitled2.py", line 4, in <module>
> raw = mne.io.read_raw_fif(myfile) File "C:\Users\Felix\Anaconda2\lib\site-packages\mne\io\fiff\raw.py", line
> 519, in read_raw_fif
> add_eeg_ref=add_eeg_ref, fnames=fnames, verbose=verbose) File "<string>", line 2, in __init__ File
> "C:\Users\Felix\Anaconda2\lib\site-packages\mne\utils.py", line 708,
> in verbose
> return function(*args, **kwargs) File "C:\Users\Felix\Anaconda2\lib\site-packages\mne\io\fiff\raw.py", line
> 109, in __init__
> preload, do_check_fname) File "<string>", line 2, in _read_raw_file File "C:\Users\Felix\Anaconda2\lib\site-packages\mne\utils.py", line 708,
> in verbose
> return function(*args, **kwargs) File "C:\Users\Felix\Anaconda2\lib\site-packages\mne\io\fiff\raw.py", line
> 186, in _read_raw_file
> ff, tree, _ = fiff_open(fname, preload=whole_file) File "<string>", line 2, in fiff_open File
> "C:\Users\Felix\Anaconda2\lib\site-packages\mne\utils.py", line 708,
> in verbose
> return function(*args, **kwargs) File "C:\Users\Felix\Anaconda2\lib\site-packages\mne\io\open.py", line 146,
> in fiff_open
> tree, _ = make_dir_tree(fid, directory) File "<string>", line 2, in make_dir_tree File
> "C:\Users\Felix\Anaconda2\lib\site-packages\mne\utils.py", line 708,
> in verbose
> return function(*args, **kwargs) File "C:\Users\Felix\Anaconda2\lib\site-packages\mne\io\tree.py", line 56,
> in make_dir_tree
> if directory[start].kind == FIFF_BLOCK_START: TypeError: 'NoneType' object has no attribute '__getitem__'
I downloadet "brainstorm" wich can illustrate .fif-Files.
The Sampledate from MNE can be displayed. If I try mine, they wont.
:/