Giter Site home page Giter Site logo

Comments (4)

vitsalis avatar vitsalis commented on June 4, 2024

Hi @QingYiSun, I've seen this error before on some packages, and I have gathered that this is a random error depending on the distribution that one uses (source). Appreciate your input as I keep looking for workarounds.

from pycg.

AllenSun1024 avatar AllenSun1024 commented on June 4, 2024

Thanks for your hard work~

from pycg.

Vancir avatar Vancir commented on June 4, 2024

Most likely because your code is running on Apple M1. Consider changing to the Linux platform.

from pycg.

tacaswell avatar tacaswell commented on June 4, 2024

I am also seeing this on linux (Arch with Python 3.11.3).

The source of the error is: https://github.com/python/cpython/blob/9e6590b0978876de14587f528a09632b8879c369/Objects/unicodeobject.c#L6031-L6038

pycg fails, but I can use ast.parse directly with the file in question.

Are you doing something that is modifying the normal import machinery?

from pycg.

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.