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

Cannot import name 'safe_join' from 'flask' #7

Closed
jsarver opened this issue Oct 2, 2022 · 3 comments
Closed

Cannot import name 'safe_join' from 'flask' #7

jsarver opened this issue Oct 2, 2022 · 3 comments

Comments

@jsarver
Copy link

jsarver commented Oct 2, 2022

Hi, I wanted to give this library a try so installed per your instructions and got the following error when running homepage init

from flask import Flask, abort, render_template, request, safe_join, send_from_directory
ImportError: cannot import name 'safe_join' from 'flask' 

I did some digging and it looks like flask deprecated safe_join in version 2.1. dmlc/GNNLens2#14

@fpgmaas
Copy link
Owner

fpgmaas commented Oct 4, 2022

Strange. I am trying to reproduce your issue, but I fail to do so. I don't see Flask in poetry.lock, nor do I see it in my virtual environment locally. Could you give me a little bit more information about your environment? e.g. the python version and possible the installed versions of the project's dependencies?

@jsarver
Copy link
Author

jsarver commented Oct 4, 2022

Well, this is embarrassing, apparently I installed another python lib call homepage, which also has a homepage init command. I have since uninstalled that lib and yours is working perfectly. Sorry for the confusion.

@jsarver jsarver closed this as completed Oct 4, 2022
@fpgmaas
Copy link
Owner

fpgmaas commented Oct 4, 2022

Haha, no worries! Funny coincidence that that project also contains the homepage init command. Thanks for considering to improve this project by raising the issue anyways!

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

2 participants