-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Can't create admin user on Python 3.6 #1890
Comments
Please post the full backtrace so we can see where's the code that explodes. |
@xrmx here you go!
|
Hi, the problem seems to be with defusedxml as reported here: tiran/defusedxml#3. This patch seems to fix the problem: https://github.com/tiran/defusedxml/pull/4.patch
Stacktrace
|
python3-openid does not pin a specific defusedxml version, so defusedxml is the only package that needs to be updated: https://github.com/necaris/python3-openid/blob/master/setup.py:
https://github.com/mitsuhiko/flask-openid/blob/master/setup.py:
|
@tomasienrbc, if you just want to play around with superset using Python 3.6, the following worked for me: git clone https://github.com/tiran/defusedxml.git
cd defusedxml
curl -O https://patch-diff.githubusercontent.com/raw/tiran/defusedxml/pull/4.patch
git apply 4.patch
python setup.py sdist You can then use pip from your superset virtualenv to install the patched defusedxml package. E.g. |
@jr-minnaar thanks so much! I may do a new install with Python 3.6 soon and I'll let you know if I run into any trouble. For now, 2.7 is working and I'm just playing around there. |
If that works I can close this I guess? Is this something that should be just fixed in the project? |
@tomasienrbc until a new version of defusedxml is released we can't do much. Until this does not happen though i think keeping this bug open with hints on how to fix the better solution. Thanks a lot @jr-minnaar for digging. |
New version is up on pypi https://pypi.python.org/pypi/defusedxml/0.5.0rc1 and it includes Python 3.6 compatibility fix. |
@ridha shouldn't that now be implemented back into the master project? Should I implement that fix or tag this - sorry I'm not 100% familiar with how to proceed but seems obvious they should upgrade the pypi version right? |
@tomasienrbc , Only defusedxml needs to be updated for fixing this issue. Latest version of python3-openid (3.1.0) includes updated defusedxml and 3.6 support. I can confirm that it fixes it. |
I have a message while creating my superset account, when I write down all the information i have an error message as bellow: |
@Adnane-BAT FYI windows is not supported |
which Unix system is the best for it ? |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
(latest as of 12/31/2016)
Expected results
Create admin user
Actual results
Was unable to import superset Error: module 'xml.etree.ElementTree' has no attribute '_IterParseIterator'
Steps to reproduce
I don't need this solved, I just downgraded Python versions and it worked fine. However, I wanted it noted as it is definitely an issue with Python 3.6 - tracked down that error separately. Worth noting as it is the version that installs by default with brew install python3 so I think this will start coming up a lot.
The text was updated successfully, but these errors were encountered: