You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "mujohiddin (via GitHub)" <gi...@apache.org> on 2024/11/13 04:56:19 UTC

[I] The 'sqlglot<24,>=23.0.2' distribution was not found and is required by apache-superset [superset]

mujohiddin opened a new issue, #30904:
URL: https://github.com/apache/superset/issues/30904

   ### Bug description
   
   This error occurred while upgrading the superset image from version 3.0.1 to version 4.0.2 how to fix this
   
   ### Screenshots/recordings
   
   ![photo_2024-11-13_09-56-04](https://github.com/user-attachments/assets/a75b1fef-4e9b-4c42-bd71-10c57e3462de)
   
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   This error occurred while upgrading the superset image from version 3.0.1 to version 4.0.2 how to fix this
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] The 'sqlglot<24,>=23.0.2' distribution was not found and is required by apache-superset [superset]

Posted by "mujohiddin (via GitHub)" <gi...@apache.org>.
mujohiddin commented on issue #30904:
URL: https://github.com/apache/superset/issues/30904#issuecomment-2475877734

   @michael-s-molina
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] The 'sqlglot<24,>=23.0.2' distribution was not found and is required by apache-superset [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #30904:
URL: https://github.com/apache/superset/issues/30904#issuecomment-2822083783

   sqlglot is part of pyproject.toml nowdays, and I think things should be all good, though the tooling has changed a bit. I'll close this as inactive, since I don't think others are facing this and it's been silent for a long time, but holler if you're still facing it on current `master` or `5.0.0rc2`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] The 'sqlglot<24,>=23.0.2' distribution was not found and is required by apache-superset [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #30904:  The 'sqlglot<24,>=23.0.2' distribution was not found and is required by apache-superset
URL: https://github.com/apache/superset/issues/30904


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] The 'sqlglot<24,>=23.0.2' distribution was not found and is required by apache-superset [superset]

Posted by "mujohiddin (via GitHub)" <gi...@apache.org>.
mujohiddin commented on issue #30904:
URL: https://github.com/apache/superset/issues/30904#issuecomment-2472385537

   > I couldn't find a specific solution for the 'sqlglot' dependency issue in the context of upgrading from Superset version 3.0.1 to 4.0.2. However, I can suggest a general approach to resolve this kind of dependency issue:
   > 
   > 1. **Check Dependency Versions**: Ensure that the version of 'sqlglot' specified in your environment matches the requirements for Superset 4.0.2. According to the dependencies for version 4.0.2, 'sqlglot' should be `>=25.24.0,<26` [[1]](https://github.com/apache/superset/blob/master/pyproject.toml).
   > 2. **Update Dependencies**: You can manually update the 'sqlglot' package to the required version using pip:
   >    ```shell
   >    pip install 'sqlglot>=25.24.0,<26'
   >    ```
   > 3. **Rebuild Docker Image**: If you are using Docker, make sure to rebuild your Docker image after updating the dependencies:
   >    ```shell
   >    docker compose down
   >    docker compose up --build
   >    ```
   > 4. **Verify Installation**: After updating, verify that the correct version of 'sqlglot' is installed by checking the installed packages:
   >    ```shell
   >    pip show sqlglot
   >    ```
   > 
   > These steps should help resolve the dependency issue you're encountering. If the problem persists, double-check the `pyproject.toml` or `requirements` files for any conflicting version specifications.
   > 
   > _To continue talking to [Dosu](https://dosu.dev), mention @dosu._
   
   RUN apt-get update \
       && apt-get install -y --no-install-recommends \
           libnss3 \
           libdbus-glib-1-2 \
           libgtk-3-0 \
           libx11-xcb1 \
           libasound2 \
           libxtst6 \
           wget tar \
           libldap2-dev \
           pkg-config \
           build-essential \
           curl \
           default-libmysqlclient-dev \
           libsasl2-dev \
           libsasl2-modules-gssapi-mit \
           libpq-dev \
           libecpg-dev \
           libldap2-dev \
       && pip install --upgrade "sqlglot>=23.0.2,<24" \
       && touch superset/static/version_info.json \
       && chown -R superset:superset ./* \
       && rm -rf /var/lib/apt/lists/*
   
   
   I added it as below and it didn't work


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] The 'sqlglot<24,>=23.0.2' distribution was not found and is required by apache-superset [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #30904:
URL: https://github.com/apache/superset/issues/30904#issuecomment-2472380304

   <!-- Answer -->
   I couldn't find a specific solution for the 'sqlglot' dependency issue in the context of upgrading from Superset version 3.0.1 to 4.0.2. However, I can suggest a general approach to resolve this kind of dependency issue:
   
   1. **Check Dependency Versions**: Ensure that the version of 'sqlglot' specified in your environment matches the requirements for Superset 4.0.2. According to the dependencies for version 4.0.2, 'sqlglot' should be `>=25.24.0,<26` <sup>[[1]](https://github.com/apache/superset/blob/master/pyproject.toml)</sup>.
   
   2. **Update Dependencies**: You can manually update the 'sqlglot' package to the required version using pip:
      ```bash
      pip install 'sqlglot>=25.24.0,<26'
      ```
   
   3. **Rebuild Docker Image**: If you are using Docker, make sure to rebuild your Docker image after updating the dependencies:
      ```bash
      docker compose down
      docker compose up --build
      ```
   
   4. **Verify Installation**: After updating, verify that the correct version of 'sqlglot' is installed by checking the installed packages:
      ```bash
      pip show sqlglot
      ```
   
   These steps should help resolve the dependency issue you're encountering. If the problem persists, double-check the `pyproject.toml` or `requirements` files for any conflicting version specifications.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org