Giter Club home page Giter Club logo

Comments (7)

rachel-sunrui avatar rachel-sunrui commented on June 2, 2024 1

from scandir.

benhoyt avatar benhoyt commented on June 2, 2024

Hmm, that's strange. It looks like the _scandir.c module is being compiled (as the import works as _scandir is not None) but it doesn't have the DirEntry attribute, which is added here. Can you do import _scandir and then dir(_scandir) and send me what attributes it reports? Also, what is the values of sys.platform?

from scandir.

darkvertex avatar darkvertex commented on June 2, 2024

Sure, here you go:

> python
Python 2.7.13 (default, Apr  3 2017, 18:26:10)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.platform
'linux2'
>>> import _scandir
>>> dir(_scandir)
['__doc__', '__file__', '__name__', '__package__', 'scandir']

Indeed, it appears to be missing "DirEntry" in there. Weird!

from scandir.

darkvertex avatar darkvertex commented on June 2, 2024

Dammit, just looked at it with a coworker and discovered an old .so of scandir-1.5.0 that had snuck into my environment. It's working now.

Sorry about that. I'm closing this ticket.

from scandir.

benhoyt avatar benhoyt commented on June 2, 2024

Good to hear, thanks!

from scandir.

rachel-sunrui avatar rachel-sunrui commented on June 2, 2024

Hi,

I encountered this issue too. It happened when I tried to "from scipy.io import savemat". There are not many solutions for this on the Internet, do you mind going into more details about how did you solve the problem? Thank you.

Best regards,
Rachel

from scandir.

darkvertex avatar darkvertex commented on June 2, 2024

I guess just import _scandir;print _scandir and see where it's coming from. Make sure it's a recent version.

from scandir.

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.