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.

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:closed
  • Created 5 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

16reactions
victornoelcommented, Sep 26, 2018

@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:

$ pip install "markdown<3.0.0" superset
5reactions
victornoelcommented, Sep 24, 2018

I have submitted a PR for this problem (#5967)

Read more comments on GitHub >

github_iconTop 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 >

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