Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the script #1

Closed
TheTerminator2 opened this issue Sep 16, 2018 · 4 comments
Closed

Problem with the script #1

TheTerminator2 opened this issue Sep 16, 2018 · 4 comments

Comments

@TheTerminator2
Copy link

Made a MYSQL database (not local) with two databases and run the script, but got the following error.

python updater.py --daily --intraday

/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
2018-09-16 10:48:46,470 - INFO - USING DATABASE: PRICES_DAILY
Traceback (most recent call last):
File "updater.py", line 559, in
tickers=tickers)
File "updater.py", line 237, in database_update
data_source_id = fetchone(sql_cursor, query="SELECT GetDataSourceIDFromDataSourceName('{}')".format(data_source_name))
File "updater.py", line 48, in fetchone
sql_cursor.execute(query)
File "/anaconda3/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/anaconda3/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/anaconda3/lib/python3.6/site-packages/pymysql/connections.py", line 516, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/anaconda3/lib/python3.6/site-packages/pymysql/connections.py", line 727, in _read_query_result
result.read()
File "/anaconda3/lib/python3.6/site-packages/pymysql/connections.py", line 1066, in read
first_packet = self.connection._read_packet()
File "/anaconda3/lib/python3.6/site-packages/pymysql/connections.py", line 683, in _read_packet
packet.check_error()
File "/anaconda3/lib/python3.6/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/anaconda3/lib/python3.6/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.InternalError: (1305, 'FUNCTION PRICES_DAILY.GetDataSourceIDFromDataSourceName does not exist')

@justinclarkhome
Copy link
Owner

justinclarkhome commented Sep 16, 2018 via email

@TheTerminator2
Copy link
Author

Hi

I found the error, I wasn't having SUPER privilege in AWS when making the MYSQL database. But when using the advice from this link ( soundcloud/lhm#76 ) and got the super privilege rights everythink works out fine. Thank you for the fast comment.

@justinclarkhome
Copy link
Owner

Nice - glad you got it sorted!

@justinclarkhome
Copy link
Owner

justinclarkhome commented Sep 19, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants