Comments (3)
After 3 days, thanks g-d I found this
just add an import and a first line of code
from sherpa import multiprocessing
multiprocessing.set_start_method("fork")
from sherpa.
me too..
Traceback (most recent call last):
File "/Users/kennymccormick/github/QInvestment/Monitor_RPC_Client.py", line 16, in
study = sherpa.Study(parameters=parameters,
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/site-packages/sherpa/core.py", line 109, in init
self.dashboard_process = self._run_web_server(dashboard_port)
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/site-packages/sherpa/core.py", line 300, in _run_web_server
proc.start()
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Users/kennymccormick/opt/miniconda3/envs/scientific/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'Flask.init..'
from sherpa.
I had the same issue, interestingly enough I fixed it by reverting back to python 3.6. Hopefully, this works for you.
from sherpa.
Related Issues (20)
- Show dashboard after run complete? HOT 1
- pandas >= 1.10 KeyError
- Parallel Sherpa MongoDB access issues HOT 2
- Old version of slickgrid causing dashboard column limit?
- Considering pruned trial information when sampling
- Resume optimization
- ValueError: `f0` passed has more than 1 dimension.
- Sherpa study can not find keras module
- Bayesian optimization with Random Forest HOT 1
- random_seed cannot actually be set when creating a new study HOT 1
- use development install instead of path export?
- trivial Baysian Optimization raises TypeError
- Incompatability with Pandas > 1.5.0
- Possible typo on guide website: HOT 1
- Using shlex to split runner_command HOT 1
- Only install enum34 for old versions of Python HOT 4
- Sherpa Dashboard Links Invalid HOT 1
- Problem with Dashboard HOT 4
- Error when using bayesian optimization HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sherpa.