Once I executed (tried to execute) this:
Jupyter notebook related
%reload_ext autoreload
%autoreload 2
%matplotlib inline
Built-in modules
import pickle
import sys
import os
import datetime
import itertools
from enum import Enum
Basics of Python data handling and visualization
import numpy as np
import geopandas as gpd
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from mpl_toolkits.axes_grid1 import make_axes_locatable
from shapely.geometry import Polygon
from tqdm import tqdm_notebook as tqdm
Machine learning
import lightgbm as lgb
from sklearn.externals import joblib
from sklearn import metrics
from sklearn import preprocessing
Imports from eo-learn and sentinelhub-py
from eolearn.core import EOTask, EOPatch, LinearWorkflow, FeatureType, OverwritePermission,
LoadFromDisk, SaveToDisk, EOExecutor
from eolearn.io import S2L1CWCSInput, ExportToTiff
from eolearn.mask import AddCloudMaskTask, get_s2_pixel_cloud_detector, AddValidDataMaskTask
from eolearn.geometry import VectorToRaster, PointSamplingTask, ErosionTask
from eolearn.features import LinearInterpolation, SimpleFilterTask
from sentinelhub import BBoxSplitter, BBox, CRS, CustomUrlParam
I got the following error:
Traceback (most recent call last):
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py”, line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File “”, line 2, in
get_ipython().run_line_magic(‘reload_ext’, ‘autoreload’)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py”, line 2314, in run_line_magic
result = fn(*args, **kwargs)
File “<C:\Users\ASUS\Anaconda3\lib\site-packages\decorator.py:decorator-gen-67>”, line 2, in reload_ext
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\magic.py”, line 187, in
call = lambda f, *a, **k: f(*a, **k)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\magics\extension.py”, line 63, in reload_ext
self.shell.extension_manager.reload_extension(module_str)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\extensions.py”, line 127, in reload_extension
if self._call_load_ipython_extension(mod):
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\extensions.py”, line 134, in _call_load_ipython_extension
mod.load_ipython_extension(self.shell)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\extensions\autoreload.py”, line 587, in load_ipython_extension
auto_reload = AutoreloadMagics(ip)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\extensions\autoreload.py”, line 469, in init
self._reloader = ModuleReloader()
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\extensions\autoreload.py”, line 147, in init
self.check(check_all=True, do_reload=False)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\extensions\autoreload.py”, line 226, in check
py_filename, pymtime = self.filename_and_mtime(m)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\extensions\autoreload.py”, line 184, in filename_and_mtime
if not hasattr(module, ‘file’) or module.file is None:
File “C:\Users\ASUS\Anaconda3\lib\site-packages\py_vendored_packages\apipkg.py”, line 181, in __makeattr
if ‘onfirstaccess’ in self.map:
File “C:\Users\ASUS\Anaconda3\lib\site-packages\py_vendored_packages\apipkg.py”, line 181, in __makeattr
if ‘onfirstaccess’ in self.map:
File “C:\Users\ASUS\Anaconda3\lib\site-packages\py_vendored_packages\apipkg.py”, line 181, in __makeattr
if ‘onfirstaccess’ in self.map:
bPrevious line repeated 1470 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py”, line 2040, in showtraceback
stb = value.render_traceback()
AttributeError: ‘RecursionError’ object has no attribute ‘render_traceback’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\ultratb.py”, line 1101, in get_records
return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\ultratb.py”, line 319, in wrapped
return f(*args, **kwargs)
File “C:\Users\ASUS\Anaconda3\lib\site-packages\IPython\core\ultratb.py”, line 353, in _fixed_getinnerframes
records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))
File “C:\Users\ASUS\Anaconda3\lib\inspect.py”, line 1502, in getinnerframes
File “C:\Users\ASUS\Anaconda3\lib\inspect.py”, line 1460, in getframeinfo
lines = index = None
File “C:\Users\ASUS\Anaconda3\lib\inspect.py”, line 696, in getsourcefile
if getattr(getmodule(object, filename), ‘loader’, None) is not None:
File “C:\Users\ASUS\Anaconda3\lib\inspect.py”, line 733, in getmodule
if ismodule(module) and hasattr(module, ‘file’):
File “C:\Users\ASUS\Anaconda3\lib\site-packages\py_vendored_packages\apipkg.py”, line 181, in __makeattr
if ‘onfirstaccess’ in self.map:
File “C:\Users\ASUS\Anaconda3\lib\site-packages\py_vendored_packages\apipkg.py”, line 181, in __makeattr
if ‘onfirstaccess’ in self.map:
File “C:\Users\ASUS\Anaconda3\lib\site-packages\py_vendored_packages\apipkg.py”, line 181, in __makeattr
if ‘onfirstaccess’ in self.map:
cPrevious line repeated 1472 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object