Traceback (most recent call last):


 "<input>", line 1, in <module>


 "C:\Program 
s\JetBrains\PyCharm Community Edition 2018.3.3\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import

module = self._system_import(name, *args, **kwargs)


 "C:\Users\User1\Desktop\Rand\Github\Project\Lab\SE_Prog.py", line 26, in <module>

token = util.prompt_for_user_token(c.sp_username, 'playlist-modify-private', c.sp_client_id, c.sp_client_secret, 'http://localhost:8888/callback/')


 "C:\Users\User1\Desktop\Rand\Github\Project\Lab\venv\lib\site-packages\spotipy\util.py", line 86, in prompt_for_user_token

token_info = sp_oauth.get_access_token(code)


 "C:\Users\User1\Desktop\Rand\Github\Project\Lab\venv\lib\site-packages\spotipy\oauth2.py", line 217, in get_access_token

raise SpotifyOauthError(response.reason)
spotipy.oauth2.SpotifyOauthError: Bad Request


Traceback (most recent call last):

 "/Users/bytegm/Desktop/All/my_projects/python26/lib/python2.6/site-packages/pyspider/result/result_worker.py", line 54, in run
self.on_result(task, result)

 "/Users/bytegm/Desktop/All/my_projects/python26/lib/python2.6/site-packages/pyspider/result/result_worker.py", line 38, in on_result
result=result

 "/Users/bytegm/Desktop/All/my_projects/python26/lib/python2.6/site-packages/pyspider/database/sqlalchemy/resultdb.py", line 75, in save
self._create_project(project)

 "/Users/bytegm/Desktop/All/my_projects/python26/lib/python2.6/site-packages/pyspider/database/sqlalchemy/resultdb.py", line 54, in _create_project
self.table.create(self.engine)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/sql/schema.py", line 646, in create
checkfirst=checkfirst)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/base.py", line 1516, in _run_visitor
conn._run_visitor(visitorcallable, element, *_kwargs)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/base.py", line 1164, in _run_visitor
*_kwargs).traverse_single(element)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/sql/visitors.py", line 119, in traverse_single
return meth(obj, **kw)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/sql/ddl.py", line 728, in visit_table
self.connection.execute(CreateTable(table))

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/base.py", line 717, in execute
return meth(self, multiparams, params)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/sql/ddl.py", line 67, in _execute_on_connection
return connection._execute_ddl(self, multiparams, params)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/base.py", line 771, in _execute_ddl
compiled

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/base.py", line 927, in _execute_context
context)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/base.py", line 1076, in _handle_dbapi_exception
exc_info

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/util/compat.py", line 185, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/base.py", line 920, in _execute_context
context)

 "build/bdist.macosx-10.9-intel/egg/sqlalchemy/engine/default.py", line 425, in do_execute
cursor.execute(statement, parameters)
ProgrammingError: (ProgrammingError) relation "spider_test" already exists