sentinel-hub / eo-learn-workshop Goto Github PK
View Code? Open in Web Editor NEWBridging Earth Observation data and Machine Learning in Python
License: MIT License
Bridging Earth Observation data and Machine Learning in Python
License: MIT License
I was going through the binder for the introduction part. For EOExecutor task, whenever the value for workers=3, I am getting an error. It is not allowing parallel process. It works fine for worker =1 & it should do but changing to greater than 1 is giving error.
`_RemoteTraceback Traceback (most recent call last)
_RemoteTraceback:
"""
Traceback (most recent call last):
File "/srv/conda/envs/notebook/lib/python3.7/multiprocessing/queues.py", line 236, in _feed
obj = _ForkingPickler.dumps(obj)
File "/srv/conda/envs/notebook/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: can't pickle _thread.RLock objects
"""
The above exception was the direct cause of the following exception:
TypeError Traceback (most recent call last)
in
11 executor = EOExecutor(workflow, execution_args, save_logs=True, logs_folder=OUTPUT_FOLDER)
12
---> 13 executor.run(workers=3) # The execution will use at most 3 parallel processes
/srv/conda/envs/notebook/lib/python3.7/site-packages/eolearn/core/eoexecution.py in run(self, workers, multiprocess, return_results)
144 with pool_executor_class(max_workers=workers) as executor:
145 self.execution_stats = list(tqdm(executor.map(self._execute_workflow, processing_args),
--> 146 total=len(processing_args)))
147
148 self.general_stats = self._prepare_general_stats(workers, processing_type)
/srv/conda/envs/notebook/lib/python3.7/site-packages/tqdm/notebook.py in iter(self, *args, **kwargs)
216 def iter(self, *args, **kwargs):
217 try:
--> 218 for obj in super(tqdm_notebook, self).iter(*args, **kwargs):
219 # return super(tqdm...) will not catch exception
220 yield obj
/srv/conda/envs/notebook/lib/python3.7/site-packages/tqdm/std.py in iter(self)
1127
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
1131 # Update and possibly print the progressbar.
/srv/conda/envs/notebook/lib/python3.7/concurrent/futures/process.py in _chain_from_iterable_of_lists(iterable)
481 careful not to keep references to yielded objects.
482 """
--> 483 for element in iterable:
484 element.reverse()
485 while element:
/srv/conda/envs/notebook/lib/python3.7/concurrent/futures/_base.py in result_iterator()
596 # Careful not to keep a reference to the popped future
597 if timeout is None:
--> 598 yield fs.pop().result()
599 else:
600 yield fs.pop().result(end_time - time.monotonic())
/srv/conda/envs/notebook/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
426 raise CancelledError()
427 elif self._state == FINISHED:
--> 428 return self.__get_result()
429
430 self._condition.wait(timeout)
/srv/conda/envs/notebook/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
382 def __get_result(self):
383 if self._exception:
--> 384 raise self._exception
385 else:
386 return self._result
/srv/conda/envs/notebook/lib/python3.7/multiprocessing/queues.py in _feed(buffer, notempty, send_bytes, writelock, close, ignore_epipe, onerror, queue_sem)
234
235 # serialize the data before acquiring the lock
--> 236 obj = _ForkingPickler.dumps(obj)
237 if wacquire is None:
238 send_bytes(obj)
/srv/conda/envs/notebook/lib/python3.7/multiprocessing/reduction.py in dumps(cls, obj, protocol)
49 def dumps(cls, obj, protocol=None):
50 buf = io.BytesIO()
---> 51 cls(buf, protocol).dump(obj)
52 return buf.getbuffer()
53
TypeError: can't pickle _thread.RLock objects`
I am getting a error in the "land_cover.ipynb" calling
country_shape = country.geometry.values.tolist()[-1]
AttributeError: 'GeometryArray' object has no attribute 'tolist'
Any idea why?
Hello,
For the water_level_extraction.ipynb, I get this error when executing the workflow. I check my geopandas version and it seems up to date.
Any ideas?
thank you!
I'm trying to follow the tutorial but executing the first code of eolearn_basics.ipynb, I get the following error.
...`
---> 28 if path.startswith('s3://'):
29 return load_s3_filesystem(path, *kwargs)
30
AttributeError: 'PosixPath' object has no attribute 'startswith'
`
I don't have experience in programming, please help me to solve this.
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.