Closed LilyFoote closed 5 months ago
It looks like something related to python-magic
and I read from its README you have to:
# You'll need DLLs for libmagic. @julian-r maintains a pypi package with the DLLs, you can fetch it with:
pip install python-magic-bin
This said, AFAIK you are the first Windows user and I am not 100% sure it'll work anyway because of another binary dependency: httptools
.
I am kinda thinking out-loud here: the need for the first dependency is definitely something we could somehow overcome. It'll be a bit more complex for the second one, but probably not impossible. I believe we'll be able to find HTTP parsers implemented in pure Python, even as part of the standard library. The thing is: I'd definitely need someone else help for adding Windows support. The latest Windows version I used was XP.
Thanks! Installing that dependency has done the trick!
There doesn't appear to be any other changes needed for my tests to pass on Windows.
Does it mean that was the only necessary step to make it work with Windows? Should I close this issue?
We could add the extra package as a conditional dependency for Windows users, though I think that should really live upstream.
Yeah, it should be responsibility of the module. It should install what's needed to work on every platform, definitely not Mocket's responsibility. I'm open to merge a PR with the change, anyway.
I opened the PR upstream: https://github.com/ahupp/python-magic/pull/332
I'm seeing a
Windows fatal exception: access violation
in CI after replacinghttpretty
withmocket
. Full traceback: