Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'posix' #4

Open
Coderx7 opened this issue Jul 18, 2020 · 2 comments
Open

ModuleNotFoundError: No module named 'posix' #4

Coderx7 opened this issue Jul 18, 2020 · 2 comments

Comments

@Coderx7
Copy link

Coderx7 commented Jul 18, 2020

Hi,
I'm having issues running dirhash in python3.7. upon trying to hash a directory, I get this error message:

Traceback (most recent call last):
  File "C:\Users\User\Anaconda3\Lib\site-packages\scantree\compat.py", line 20, in <module>
    from posix import DirEntry
ModuleNotFoundError: No module named 'posix'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "d:\Codes\ols\python\test_beds\testbed_stuff.py", line 12, in <module>
    from dirhash import dirhash
  File "C:\Users\User\Anaconda3\Lib\site-packages\dirhash\__init__.py", line 13, in <module>
    from scantree import (
  File "C:\Users\User\Anaconda3\Lib\site-packages\scantree\__init__.py", line 3, in <module>
    from ._path import (
  File "C:\Users\User\Anaconda3\Lib\site-packages\scantree\_path.py", line 7, in <module>
    from .compat import (
  File "C:\Users\User\Anaconda3\Lib\site-packages\scantree\compat.py", line 22, in <module>
    from scandir import scandir as _scandir
ModuleNotFoundError: No module named 'scandir'

Is this compatible with windows10?
Whats the issue here?

@racinmat
Copy link

racinmat commented Mar 8, 2024

This happened to me too.
While it worked on windows with version 0.0.1, the version 0.0.2 breaks.
Would be great to remove the platform specific code or implement windows alternative.

@frichtarik
Copy link
Contributor

i believe this PR #11 broke the functionality
once #21 is merged, we'll fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants