Skip to content

Allow import of relative files in main.py #124

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

Closed
Afirium opened this issue Jul 30, 2023 · 3 comments
Closed

Allow import of relative files in main.py #124

Afirium opened this issue Jul 30, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Afirium
Copy link

Afirium commented Jul 30, 2023

Local module import still doesn't work.
I am using the recommended python version 3.11 and the latest firebase-functions-python==0.1.1

[fix: add cwd to sys.path for functions yaml] #12

@russellwheatley russellwheatley added the bug Something isn't working label Aug 4, 2023
@russellwheatley
Copy link
Member

Thanks for reporting, will take a look at this 👍

@russellwheatley
Copy link
Member

russellwheatley commented Aug 7, 2023

Hey @Afirium, could you provide a repro repository for me to clone, please? I'm wondering if this is because of how you've setup your project. Thanks.

FYI; have you looked through these instructions on setting up cloud function python dependencies: https://cloud.google.com/functions/docs/writing/specifying-dependencies-python#packaging_local_dependencies

@Afirium
Copy link
Author

Afirium commented Aug 7, 2023

Hey @russellwheatley,
Just rechecked that function, and it turns out I didn't notice I was using a different venv that had an older version of the package. Everything works with the new version. Thanks!

@Afirium Afirium closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants