Error while installing (markdown() takes 1 positional argument but 2 were given)
See original GitHub issue- [X ] I have checked the superset logs for python stacktraces and included it here as text if any
- [X ] I have reproduced the issue with at least the latest released version of superset
- [X ] I have checked the issue tracker for the same issue and I haven’t found one similar
Superset version
dev and release 0.27.0
Expected results
Installed superset
Actual results
Error while installing: Was unable to import superset Error: markdown() takes 1 positional argument but 2 were given
Steps to reproduce
Followed the instructions for a fresh (docker) installation:
git clone https://github.com/apache/incubator-superset/
cd incubator-superset
cp contrib/docker/{docker-build.sh,docker-compose.yml,docker-entrypoint.sh,docker-init.sh,Dockerfile} .
cp contrib/docker/superset_config.py superset/
bash -x docker-build.sh
docker-compose up -d
docker-compose exec superset bash
bash docker-init.sh
at the last command after the username/usermail/ password are asked for input the installation fails. Reproduced on two different laptops
Additionally, when not using the docker installation. It fails at the same step:
fabmanager create-admin --app superset
(which is done in the docker installation in the bash docker-init.sh script)
Trace:
xxx@xxx-server:~/dev/compose/incubator-superset$ docker-compose exec superset bash
work@3d443226a074:~/incubator-superset$ bash docker-init.sh
+ fabmanager create-admin --app superset
Username [admin]: xxx
User first name [admin]: xxx
User last name [user]: xxx
Email [admin@fab.org]: xxx@xxx.com
Password:
Repeat for confirmation:
Loaded your LOCAL configuration at [/home/work/incubator-superset/superset/superset_config.py]
Was unable to import superset Error: markdown() takes 1 positional argument but 2 were given
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
TypeError: markdown() takes 1 positional argument but 2 were ...
Hi, I've installed the dependencies and attempted to make and got this output: Traceback (most recent call last): File "util/build.py", ...
Read more >python - __init__() takes 1 positional argument but 2 were ...
You have an implementation error in your code. According to markdown 's documentation, you should define what parameters you want to provide ...
Read more >Python Error "TypeError: __init__() takes 1 positional ...
I am working on an assignment for my Intro to Programming class and I ... __init__() takes 1 positional argument but 2 were...
Read more >takes 1 positional argument but 2 were given python error ...
This error is often caused by the fact that the self is omitted as a parameter in the method of the class.
Read more >TypeError: assign() takes 1 positional argument but 2 were given
The “takes 1 positional argument but 2 were given” error is raised when you try to pass an argument through a method in...
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
@hamidmahmoodnbs you need to wait for a new release of superset. Until then you can install it like this so that the version of markdown is forced to a working version:
I have submitted a PR for this problem (#5967)