GithubHelp home page GithubHelp logo

Exception on Windows PowerShell7 about pls HOT 4 CLOSED

pls-rs avatar pls-rs commented on July 19, 2024
Exception on Windows PowerShell7

from pls.

Comments (4)

fcrespo82 avatar fcrespo82 commented on July 19, 2024 1

Sorry for the late reply. I've just tested with 1.11.0 and it does fix this problem.

Thanks for the great tool!

from pls.

dhruvkb avatar dhruvkb commented on July 19, 2024

I had tried this with Powershell and it worked okay for me. Since it was unable to determine node type, could you check if you have any special types of files in the folder?

I don't have a Windows machine. Will need to try this on Powershell to reproduce the error.

from pls.

fcrespo82 avatar fcrespo82 commented on July 19, 2024

Hi @dhruvkb. Thanks for the response.

I was able to pinpoint a culprit in the folder I was testing.

Current dir: C:/Users/fernando

Meus Documentos
Traceback (most recent call last):
  File "c:\Users\fernando\OneDrive\Área de Trabalho\tests.py", line 7, in <module>
    print(item.stat())
  File "C:\Users\fernando\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 1095, in stat
    return self._accessor.stat(self, follow_symlinks=follow_symlinks)
FileNotFoundError: [WinError 2] O sistema não pode encontrar o arquivo especificado: 'C:\\Users\\fernando\\Meus Documentos'

If I try to open explorer and navigate to it, I get an error too.

image

From what I was able to identify, this error comes from a missing junction (differs slightly from a symlink https://superuser.com/a/1291446/736809) due to moving the original folder off to a OneDrive subfolder.

This error is unrelated to your program, and it is a bug in my folder structure, nevertheless, I think it would be good to treat it gracefully and put like node type = unkown instead of throwing the error.

What do you think?

Anyway, thanks for helping me find the

from pls.

dhruvkb avatar dhruvkb commented on July 19, 2024

I just pushed commit 031d6f5 to replace exception with UNKNOWN type. Can you check if that fixes the problem?

from pls.

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.