question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to python3.6 from python2.7 in superset

See original GitHub issue

Make 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 there are 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.25.6 to 0.28

Expected results

To use an easy way to upgrade python version from 2.7 to 3.6 of superset and superset version to 0.28 and keep all old data and information (Dashboard,Charts,Tables) But the command is not working pip install superset -- upgrade superset db upgrade

Actual results

Can not smoothly upgrade the superset version to 0.28

Steps to reproduce

Just as the title said, is there an easy way to upgrade python version from 2.7 to 3.6 of superset and keep all old data and information (Dashboard,Charts,Tables) ?

I use the old version of superset is 0.25.6 and python is 2.7 for now.

And I want to upgrade to 0.28 for superset, but the version 0.28 is not support python2.7.

I found that if use command pip install superset would install at path /usr/local/lib/python2.7/dist-packages and use command pip3 install superset would install on path /usr/local/lib/python3.6/dist-packages.

The old version of superset and data is at path python2.7, but the new one will build at path python3.6.

How can I move the old version of superset and data to new version?

Any help would be appreciated!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mistercrunchcommented, Oct 31, 2018

Would recommend using some sort of containerization, either something like Docker, or something like Python virtualenvs.

If you’re running Superset in production, you should have some sort of build mechanism that can rebuild a new box/instance/vm/… from scratch. The py3.6 install should probably not be done on top of the py2.7 install, but on a new box/instance/vm using the py3.6 build steps.

0reactions
ChiLunHuangcommented, Jan 16, 2019

Finally, I solved the problem by using virtualenv and upgraded to version 0.28.0. There were some strange problems and error shown in the upgrading process, but they would solve by Google. Thanks for @mistercrunch reply.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading to python3.6 from python2.7 in superset #6243
Steps to reproduce​​ And I want to upgrade to 0.28 for superset, but the version 0.28 is not support python2. 7 . I...
Read more >
Upgrading to python3.6 from python2.7 in superset
Just setup a clean copy of superset which uses python3.6 by default and replace the working database with a copy of your old...
Read more >
Upgrade python 2.7 to 3.6 and 3.7 in Ubuntu
Before install 3.7, we should have to install python 3.6 by running the following command. $ sudo apt-get install python3.6 $ sudo apt-get...
Read more >
Installing From Scratch - Apache Superset
Superset stores database connection information in its metadata database. For that purpose, we use the cryptography Python library to encrypt connection ...
Read more >
Apache Superset – Install guide - Technology gems to share
install Apache Superset open source dashboard tool in Centos 7. ... Selection Command 1 /usr/bin/python2 *+ 2 /usr/bin/python3.6 Enter to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found