PIO Core Call Error: "Library Storage: C:\\Users\\dell\\.platformio\\lib\nLibraryManager: Installing id=306 @ ^1.2.2\nDownloading...\n\n\nError: Please read http://bit.ly/package-manager-ioerror\nError: Traceback (most recent call last):\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\__main__.py\", line 90, in main\n
cli(None, None, None)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 764, in __call__\n
return self.main(*args, **kwargs)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 717, in main\n
rv = self.invoke(ctx)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\__init__.py\", line 37, in invoke\n
return super(PlatformioCLI, self).invoke(ctx)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1137, in invoke\n
return _process_result(sub_ctx.command.invoke(sub_ctx))\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 1137, in invoke\n
return _process_result(sub_ctx.command.invoke(sub_ctx))\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 956, in invoke\n
return ctx.invoke(self.callback, **ctx.params)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\click\\core.py\", line 555, in invoke\n
return callback(*args, **kwargs)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\click\\decorators.py\", line 17, in new_func\n
return f(get_current_context(), *args, **kwargs)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\commands\\lib.py\", line 150, in lib_install\n
force=force)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\lib.py\", line 359, in install\n
force=force)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\package.py\", line 703, in install\n
pkg_dir = self._install_from_piorepo(name, requirements)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\lib.py\", line 220, in _install_from_piorepo\n
if app.get_setting(\"strict_ssl\") else dl_data['url'], requirements)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\package.py\", line 481, in _install_from_url\n
dlpath = self.download(url, tmp_dir, sha1)\n

 \"c:\\users\\dell\\.platformio\\penv\\lib\\site-packages\\platformio\\managers\\package.py\", line 193, in download\n
raise e\nChunkedEncodingError: (\"Connection broken: error(10054, '')\", error(10054, ''))\n\n============================================================\n\nAn unexpected error occurred. Further steps:\n\n* Verify that you have the latest version of PlatformIO using\n
`pip install -U platformio` command\n\n* Try to find answer in FAQ Troubleshooting section\n
https://docs.platformio.org/page/faq.html\n\n* Report this problem to the developers\n
https://github.com/platformio/platformio-core/issues\n\n============================================================"
Traceback (most recent call last):


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__

return self.wsgi_app(environ, start_response)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1985, in wsgi_app

response = self.handle_exception(e)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1540, in handle_exception

reraise(exc_type, exc_value, tb)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask_cors/extension.py", line 161, in wrapped_function

return cors_after_request(app.make_response(f(*args, **kwargs)))


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask_security/decorators.py", line 230, in wrapper

return f(*args, **kwargs)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask_security/views.py", line 118, in register

user = register_user(**form.to_dict())


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask_security/registerable.py", line 37, in register_user

user=user, confirm_token=token)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/blinker/base.py", line 267, in send

for receiver in self.receivers_for(sender)]


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/blinker/base.py", line 267, in <listcomp>

for receiver in self.receivers_for(sender)]


 "/Users/Abhishek/src/datasine/canopy/canopy/routes/__init__.py", line 78, in user_registered_sighandler

user_datastore.add_role_to_user(user, admin_role)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/flask_security/datastore.py", line 156, in add_role_to_user

user.roles.append(role)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/collections.py", line 1045, in append

item = __set(self, item, _sa_initiator)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/collections.py", line 1017, in __set

item = executor.fire_append_event(item, _sa_initiator)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/collections.py", line 680, in fire_append_event

item, initiator)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/attributes.py", line 951, in fire_append_event

initiator or self._append_token or self._init_append_token())


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/unitofwork.py", line 47, in append

sess._save_or_update_state(item_state)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1691, in _save_or_update_state

self._save_or_update_impl(state)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1997, in _save_or_update_impl

self._update_impl(state)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 1980, in _update_impl

to_attach = self._before_attach(state, obj)


 "/Users/Abhishek/anaconda3/lib/python3.6/site-packages/sqlalchemy/orm/session.py", line 2064, in _before_attach

state.session_id, self.hash_key))
sqlalchemy.exc.InvalidRequestError: Object '<Role at 0x109f45a58>' is already attached to session '2' (this is '3')
