Giter Site home page Giter Site logo

Comments (8)

laughingman7743 avatar laughingman7743 commented on May 24, 2024

What OS are you using? If ubuntu or debian, you can install python3-distutils with apt.

$ apt-get install python3-distutils

from pyathena.

laughingman7743 avatar laughingman7743 commented on May 24, 2024

https://github.com/pypa/distutils/blob/main/distutils/util.py#L340-L353
Since distutils is deprecated, it is better to port this method.

from pyathena.

alecswan avatar alecswan commented on May 24, 2024

@laughingman7743 , thank you for the quick fix! FYI, I am using Ubuntu and distutils had already been installed before I filed the ticket. Before your fix was in, I simply switched to a Python 3.9 environment as a workaround.

However, I am curious why Python 3.10 tests have been passing in pyathena Github ci/cd all along?

from pyathena.

laughingman7743 avatar laughingman7743 commented on May 24, 2024

I use Ubuntu for testing with GitHubActions, and Python 3.10 seems to work fine. It's curious. 🤔

from pyathena.

alecswan avatar alecswan commented on May 24, 2024

I believe python 3.10.12 is where dateutils is being deprecated. Which minor version is being used in the builds?

from pyathena.

laughingman7743 avatar laughingman7743 commented on May 24, 2024

https://github.com/laughingman7743/PyAthena/actions/runs/5565185738/jobs/10165349235#step:4:39

from pyathena.

alecswan avatar alecswan commented on May 24, 2024

Thanks. I wonder if this could be due to me using Ubuntu on WSL2 and somehow that makes dateutils work from Python 3.9 but not from Python 3.10.12.
Is it worth looking into the following, i.e. poetry is installed with Python 3.10.6?https://github.com/laughingman7743/PyAthena/actions/runs/5565185738/jobs/10165349235#step:3:13

from pyathena.

laughingman7743 avatar laughingman7743 commented on May 24, 2024

It has been fixed in 3.0.6, so you don't have to worry about it anymore.
https://pypi.org/project/pyathena/3.0.6/
As a result, I could also stop using deprecated modules. Thank you.

from pyathena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.