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

Closed
Coderx7 opened this issue Jul 18, 2020 · 3 comments
Closed

ModuleNotFoundError: No module named 'posix' #4

Coderx7 opened this issue Jul 18, 2020 · 3 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

@andhus
Copy link
Owner

andhus commented Aug 3, 2024

Should be fixed by #22. Let me know if there are any issues!

@andhus andhus closed this as completed Aug 3, 2024
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

4 participants