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-unsubscr...@superset.apache.org

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


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

Reply via email to