-
Notifications
You must be signed in to change notification settings - Fork 179
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
Import error: No module named 'ffcv._libffcv' #329
Comments
Update: it looks like an issue with either finding the .pyd file or its dependencies. Modifying libffcv.py in the following way is a workaround: Old
New
The Note that to then do any file writing on windows, the DatasetWriter class needs to be wrapped in I've created some datasets now but haven't tried using them, so it could still be broken! |
Hi @thom-OrigamiLabs ! Thanks for looking into this - unfortunately our time is a bit too limited to have official support for Windows, but if you figure it out happy to merge a PR into the next version. |
Hi, I have encountered the same Import Error on the Linux server I am using, so I guess this is not only a Windows problem. On my local machine, everything works fine. The specs are:
On the server machine, I got the Import Error. The specs are:
On both machines, I have installed ffcv like:
Then, from python console:
I tried the workaround proposed by @thom-OrigamiLabs but it is not working in my case. Note: I guess that this may be related to issue #136 |
@andrewilyas thanks for the response and the library, I'll look to make a proper fix and submit a PR when I get the chance. @SerezD I think that might be a coincedentally placed different error - mine was about not finding the newly compiled libffcv library, whereas libGL should be a system library AFAIK. You could try the solutions suggested here, particularly the following:
|
Hi,
I'm trying to use FFCV on Windows 11 but I'm failing on initial import:
I've followed the instructions for Windows and have the file _libffcv.cp310-win_amd64.pyd in my site-packages\ffcv if that's relevant. This is in a fresh conda env with only mosiacml also installed.
Thanks,
Thom
The text was updated successfully, but these errors were encountered: