Upload a CSV, not working with MySQL
See original GitHub issueMake sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if any
- I have reproduced the issue with at least the latest released version of superset
- I have checked the issue tracker for the same issue and I haven’t found one similar
Superset version
0.22.1
Expected results
CSV upload should create new table and load data into mysql
Actual results
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1615, in full_dispatch_request
return self.finalize_request(rv)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1632, in finalize_request
response = self.process_response(response)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 1858, in process_response
self.save_session(ctx.session, response)
File "/usr/local/lib/python3.5/dist-packages/flask/app.py", line 924, in save_session
return self.session_interface.save_session(self, session, response)
File "/usr/local/lib/python3.5/dist-packages/flask/sessions.py", line 363, in save_session
val = self.get_signing_serializer(app).dumps(dict(session))
File "/usr/local/lib/python3.5/dist-packages/itsdangerous.py", line 565, in dumps
payload = want_bytes(self.dump_payload(obj))
File "/usr/local/lib/python3.5/dist-packages/itsdangerous.py", line 847, in dump_payload
json = super(URLSafeSerializerMixin, self).dump_payload(obj)
File "/usr/local/lib/python3.5/dist-packages/itsdangerous.py", line 550, in dump_payload
return want_bytes(self.serializer.dumps(obj))
File "/usr/local/lib/python3.5/dist-packages/flask/sessions.py", line 85, in dumps
return json.dumps(_tag(value), separators=(',', ':'))
File "/usr/local/lib/python3.5/dist-packages/flask/json.py", line 123, in dumps
rv = _json.dumps(obj, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/simplejson/__init__.py", line 397, in dumps
**kw).encode(obj)
File "/usr/local/lib/python3.5/dist-packages/simplejson/encoder.py", line 291, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.5/dist-packages/simplejson/encoder.py", line 373, in iterencode
return _iterencode(o, 0)
File "/usr/local/lib/python3.5/dist-packages/flask/json.py", line 80, in default
return _json.JSONEncoder.default(self, o)
File "/usr/local/lib/python3.5/dist-packages/simplejson/encoder.py", line 268, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: OperationalError('(_mysql_exceptions.OperationalError) (1045, "Access denied for user \'superset\'@\'172.21.0.4\' (using password: YES)")',) is not JSON serializable
Steps to reproduce
I’m using the following docker image : https://github.com/amancevice/superset
add the following to mysql/supertset_config.py
UPLOAD_FOLDER='/tmp/'
I created a new database called TEST and ensured the user has permissions to do stuff with this schema:
GRANT ALL PRIVILEGES ON TEST.* TO ‘superset’@‘%’ WITH GRANT OPTION;
Password was set to superset and I can prove external connection by using sql workbench (external client) to connect directly to the mysql container.
CSV file called x.csv contained the following
XXXXXX,YYYYYYY
1,2
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Import CSV File Into MySQL Table
Importing CSV file using MySQL Workbench ... MySQL workbench provides a tool to import data into a table. It allows you to edit...
Read more >How to Import CSV File into MySQL Table in 4 Different Ways
1. Opening the Import wizard in MySQL workbench. · 2. Selecting the source of data. · 3. Selecting/creating a table. · 4. Filling...
Read more >How do I import CSV file into a MySQL table? - Stack Overflow
To open the Import textfile" dialog, go to Tools > Import CSV file : ... The mysql command line is prone to too...
Read more >How to Import a CSV File to a MySQL Database | LearnSQL.com
In the MySQL database, there are two options to import a CSV file. One is to use a command line tool and another...
Read more >How to Import a CSV in MySQL - PopSQL
How to Import a CSV in MySQL ; LOAD DATA INFILE 'user_data.tsv' INTO TABLE users; ; -- source file is local, is comma...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also getting similar error message ([Errno 13] Permission denied: ‘/usr/local/lib/python3.5/site-packages/superset/app’) despite updating to newest version.
I ran this command and it worked sudo docker exec -u 0 -it superset chown superset /usr/local/lib/python3.5/dist-packages/superset