You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "SrijaniDasgupta (via GitHub)" <gi...@apache.org> on 2025/08/28 09:25:20 UTC
[D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
GitHub user SrijaniDasgupta created a discussion: I am downloading the current master , what version of python , npm , nvm do i need
I am downloading the current master , what version of python , npm , nvm do i need
GitHub link: https://github.com/apache/superset/discussions/34881
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "SrijaniDasgupta (via GitHub)" <gi...@apache.org>.
GitHub user SrijaniDasgupta added a comment to the discussion: I am downloading the current master , what version of python , npm , nvm do i need
Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
how to solve this
@dosu
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243764
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: I am downloading the current master , what version of python , npm , nvm do i need
<!-- Answer -->
For the current master branch of Apache Superset, you should use Python >=3.10 (Python 3.11.13 is used in the official Docker setup), Node.js v20.18.3 (or any Node.js >=20.16.0), and npm >=10.8.1. The recommended way to set up Node.js is to use the version specified in the `.nvmrc` file, but nvm itself is optionalāinstalling Node.js 20 directly works fine and may avoid some configuration issues. You can find these requirements in the [pyproject.toml](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/pyproject.toml), [.nvmrc](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/.nvmrc), and [package.json](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/package.json) files.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b8e1ea74-da4e-4304-8a51-053cf6a0a724?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b8e1ea74-da4e-4304-8a51-053cf6a0a724?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b8e1ea74-da4e-4304-8a51-053cf6a0a724?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b8e1ea74-da4e-4304-8a51-053cf6a0a724?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b8e1ea74-da4e-4304-8a51-053cf6a0a724?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/b8e1ea74-da4e-4304-8a51-053cf6a0a724?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b8e1ea74-da4e-4304-8a51-053cf6a0a724?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34881)
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243360
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: I am downloading the current master , what version of python , npm , nvm do i need
<!-- Answer -->
If you're being asked to manually set MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS, it's usually because the build process for the mysqlclient Python package can't find the MySQL development headers or libraries on your system.
**Recommended fix:**
On Debian/Ubuntu, install the MySQL development package with:
```sh
sudo apt update
sudo apt install default-libmysqlclient-dev
```
Or, if you see errors with that, try:
```sh
sudo apt install libmariadb-dev-compat
```
This should provide the necessary files so you don't need to set those environment variables manually ([source](https://github.com/apache/superset/discussions/31432), [docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx)).
On RHEL/CentOS/Fedora, use:
```sh
sudo yum install mysql-devel
```
or
```sh
sudo yum install mariadb-connector-c-devel
```
**Manual workaround:**
If you still need to set the variables, first locate your MySQL headers and libraries (for example, `/usr/include/mysql` and `/usr/lib/x86_64-linux-gnu`). Then run:
```sh
export MYSQLCLIENT_CFLAGS="-I/usr/include/mysql"
export MYSQLCLIENT_LDFLAGS="-L/usr/lib/x86_64-linux-gnu"
```
Then install mysqlclient:
```sh
pip install mysqlclient
```
(Replace the paths above with the actual locations on your system.)
**General tip:**
Setting CFLAGS and LDFLAGS is a common workaround for native Python packages when headers/libs aren't found ([docs example](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx)). For most users, installing the correct dev package is all that's needed.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34881)
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243794
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "SrijaniDasgupta (via GitHub)" <gi...@apache.org>.
GitHub user SrijaniDasgupta edited a discussion: I am downloading the current master , what version of python , npm , nvm do i need
I am downloading the current master , what version of python , npm , nvm do i need
@dosu
GitHub link: https://github.com/apache/superset/discussions/34881
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: I am downloading the current master , what version of python , npm , nvm do i need
<!-- Answer -->
For the Superset master branch, you'll want Python 3.11.x and Node.js 20.x. Hereās how you can install specific versions on most Linux servers:
**Node.js (using nvm):**
```sh
# Install nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Activate nvm (restart your shell or run the following)
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Install Node.js 20.18.3 (or the version in .nvmrc)
nvm install 20.18.3
nvm use 20.18.3
```
**Python (using pyenv):**
```sh
# Install dependencies (for Ubuntu/Debian)
sudo apt update && sudo apt install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev \
xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git
# Install pyenv
curl https://pyenv.run | bash
# Add pyenv to your shell (restart your shell or add these lines to ~/.bashrc)
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
# Install Python 3.11.13
pyenv install 3.11.13
pyenv global 3.11.13
```
You can also install Node.js and Python directly via your system package manager, but version managers like nvm and pyenv make it easier to match exact versions and switch between them. If you need distro-specific instructions or want to install system-wide, let me know your Linux distribution!
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34881)
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243405
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "SrijaniDasgupta (via GitHub)" <gi...@apache.org>.
GitHub user SrijaniDasgupta added a comment to the discussion: I am downloading the current master , what version of python , npm , nvm do i need
how to download specific node and python in a new linux server
@dosu
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243386
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: I am downloading the current master , what version of python , npm , nvm do i need
<!-- Answer -->
For the current master branch of Apache Superset, you should use Python >=3.10 (Python 3.11.13 is used in the official Docker setup), Node.js v20.18.3 (or any Node.js >=20.16.0), and npm >=10.8.1. The recommended way to set up Node.js is to use the version specified in the `.nvmrc` file, but nvm itself is optionalāinstalling Node.js 20 directly works fine and may avoid some configuration issues. You can find these requirements in the [pyproject.toml](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/pyproject.toml), [.nvmrc](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/.nvmrc), and [package.json](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/package.json) files.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=b8e1ea74-da4e-4304-8a51-053cf6a0a724) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243360
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: I am downloading the current master , what version of python , npm , nvm do i need
<!-- Answer -->
For the Superset master branch, you'll want Python 3.11.x and Node.js 20.x. Hereās how you can install specific versions on most Linux servers:
**Node.js (using nvm):**
```sh
# Install nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Activate nvm (restart your shell or run the following)
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# Install Node.js 20.18.3 (or the version in .nvmrc)
nvm install 20.18.3
nvm use 20.18.3
```
**Python (using pyenv):**
```sh
# Install dependencies (for Ubuntu/Debian)
sudo apt update && sudo apt install -y make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev \
xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev git
# Install pyenv
curl https://pyenv.run | bash
# Add pyenv to your shell (restart your shell or add these lines to ~/.bashrc)
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
# Install Python 3.11.13
pyenv install 3.11.13
pyenv global 3.11.13
```
You can also install Node.js and Python directly via your system package manager, but version managers like nvm and pyenv make it easier to match exact versions and switch between them. If you need distro-specific instructions or want to install system-wide, let me know your Linux distribution!
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=49ccc6c5-c63f-4b1b-b7e0-3f0d9a56fa54) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243405
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] I am downloading the current master , what version of python , npm , nvm do i need [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: I am downloading the current master , what version of python , npm , nvm do i need
<!-- Answer -->
If you're being asked to manually set MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS, it's usually because the build process for the mysqlclient Python package can't find the MySQL development headers or libraries on your system.
**Recommended fix:**
On Debian/Ubuntu, install the MySQL development package with:
```sh
sudo apt update
sudo apt install default-libmysqlclient-dev
```
Or, if you see errors with that, try:
```sh
sudo apt install libmariadb-dev-compat
```
This should provide the necessary files so you don't need to set those environment variables manually ([source](https://github.com/apache/superset/discussions/31432), [docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx)).
On RHEL/CentOS/Fedora, use:
```sh
sudo yum install mysql-devel
```
or
```sh
sudo yum install mariadb-connector-c-devel
```
**Manual workaround:**
If you still need to set the variables, first locate your MySQL headers and libraries (for example, `/usr/include/mysql` and `/usr/lib/x86_64-linux-gnu`). Then run:
```sh
export MYSQLCLIENT_CFLAGS="-I/usr/include/mysql"
export MYSQLCLIENT_LDFLAGS="-L/usr/lib/x86_64-linux-gnu"
```
Then install mysqlclient:
```sh
pip install mysqlclient
```
(Replace the paths above with the actual locations on your system.)
**General tip:**
Setting CFLAGS and LDFLAGS is a common workaround for native Python packages when headers/libs aren't found ([docs example](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx)). For most users, installing the correct dev package is all that's needed.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=11b4e289-95b9-41de-a35a-cf58cebfd70f) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34881#discussioncomment-14243794
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org