Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

AWS - No module named 'fasttext_pybind' #1324

Open
lironesamoun opened this issue Mar 3, 2023 · 2 comments
Open

AWS - No module named 'fasttext_pybind' #1324

lironesamoun opened this issue Mar 3, 2023 · 2 comments

Comments

@lironesamoun
Copy link

Hello,

I try to use fasttext with a lambda function through a layer on AWS.
I struggle a lot with the import. When I run the code, I get this error:

{
  "errorMessage": "Unable to import module 'app': No module named 'fasttext_pybind'",
  "errorType": "Runtime.ImportModuleError",
  "requestId": "e80d4afc-3639-4d57-a564-d3898ce43f39",
  "stackTrace": []
}

All the other imported modules worked well, so it's not a problem of links or whatever. It's really about fasttext.

I have an Apple M1 (Ventura 13.1) along with Python 3.9.16 and PIP for packages dependencies. On AWS, it's also Python 3.9.
I have installed wheel, fasttext-wheel and pybind11.

I tried as well to build and compiled fasttext on a Docker Ubuntu Image so that I take the installed packaged and put it on AWS. I still have the same error.

I don't know what to do more and I'm stuck.

Any insights ?

Thank a lot

@ZJaume
Copy link

ZJaume commented May 3, 2023

FastText now seems to fail with the newest PIP (23.1) with a similar error. Downgrading to 22.1 and lower seems to work. Haven't tried in AWS but maybe it is your problem?

@lironesamoun
Copy link
Author

Did not work by downgrading to 22.1 :(

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

No branches or pull requests

2 participants