You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "butuzov (via GitHub)" <gi...@apache.org> on 2024/02/13 14:41:20 UTC
[PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
butuzov opened a new pull request, #27103:
URL: https://github.com/apache/superset/pull/27103
Resolves #27102
### SUMMARY
This PR fixes bug described at #27102
### TESTING INSTRUCTIONS
```
superset fab
```
### ADDITIONAL INFORMATION
- [x] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] Migration is atomic, supports rollback & is backwards-compatible
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "weikhor (via GitHub)" <gi...@apache.org>.
weikhor commented on PR #27103:
URL: https://github.com/apache/superset/pull/27103#issuecomment-1942065097
@butuzov
```

```
Can try to downgrade flask-cors==3.0.10 to avoid python dependencies issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "butuzov (via GitHub)" <gi...@apache.org>.
butuzov commented on PR #27103:
URL: https://github.com/apache/superset/pull/27103#issuecomment-1943225189
Thank you @michael-s-molina @dpgaspar for noticing this issue, somehow I miss dependency is optional.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "dpgaspar (via GitHub)" <gi...@apache.org>.
dpgaspar commented on PR #27103:
URL: https://github.com/apache/superset/pull/27103#issuecomment-1943370424
> Thank you @michael-s-molina @dpgaspar for noticing this issue, somehow I miss dependency is optional.
No problem, appreciate the attitude of finding an issue and making a PR for it!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "dpgaspar (via GitHub)" <gi...@apache.org>.
dpgaspar commented on code in PR #27103:
URL: https://github.com/apache/superset/pull/27103#discussion_r1488435193
##########
setup.py:
##########
@@ -86,6 +86,7 @@ def get_git_sha() -> str:
"flask-appbuilder>=4.3.11, <5.0.0",
"flask-caching>=2.1.0, <3",
"flask-compress>=1.13, <2.0",
+ "flask-cors>=4.0.0",
Review Comment:
flask-cors is considered an extra requirement
https://github.com/apache/superset/blob/master/setup.py#L148
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "weikhor (via GitHub)" <gi...@apache.org>.
weikhor commented on PR #27103:
URL: https://github.com/apache/superset/pull/27103#issuecomment-1942067441
@butuzov
```

```
Can try to downgrade flask-cors==3.0.10 to avoid python dependencies issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #27103:
URL: https://github.com/apache/superset/pull/27103#issuecomment-1943753381
> No problem, appreciate the attitude of finding an issue and making a PR for it!
+1!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "weikhor (via GitHub)" <gi...@apache.org>.
weikhor commented on code in PR #27103:
URL: https://github.com/apache/superset/pull/27103#discussion_r1488307158
##########
setup.py:
##########
@@ -86,6 +86,7 @@ def get_git_sha() -> str:
"flask-appbuilder>=4.3.11, <5.0.0",
"flask-caching>=2.1.0, <3",
"flask-compress>=1.13, <2.0",
+ "flask-cors>=4.0.0",
Review Comment:
@butuzov
```

```
Can try to downgrade flask-cors==3.0.10 to avoid python dependencies issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "john-bodley (via GitHub)" <gi...@apache.org>.
john-bodley commented on code in PR #27103:
URL: https://github.com/apache/superset/pull/27103#discussion_r1488337208
##########
setup.py:
##########
@@ -86,6 +86,7 @@ def get_git_sha() -> str:
"flask-appbuilder>=4.3.11, <5.0.0",
"flask-caching>=2.1.0, <3",
"flask-compress>=1.13, <2.0",
+ "flask-cors>=4.0.0",
Review Comment:
@weikhor you'll also likely have to recompile the frozen dependencies used for CI using `pip-compile-multi`. Please refer to `CONTRIBUTING.md`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #27103:
URL: https://github.com/apache/superset/pull/27103#issuecomment-1942711354
Closing this as @dpgaspar pointed out, `cors` is an extra dependency and should be installed by admins that wish to use the feature 😉
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina closed pull request #27103: fix(initialize): ModuleNotFoundError: No module named 'flask_cors'
URL: https://github.com/apache/superset/pull/27103
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(initialize): ModuleNotFoundError: No module named 'flask_cors' [superset]
Posted by "john-bodley (via GitHub)" <gi...@apache.org>.
john-bodley commented on code in PR #27103:
URL: https://github.com/apache/superset/pull/27103#discussion_r1488337208
##########
setup.py:
##########
@@ -86,6 +86,7 @@ def get_git_sha() -> str:
"flask-appbuilder>=4.3.11, <5.0.0",
"flask-caching>=2.1.0, <3",
"flask-compress>=1.13, <2.0",
+ "flask-cors>=4.0.0",
Review Comment:
@weikhor you'll also likely have to recompile the frozen dependencies used for CI using `pip-compile-multi`. Please refer to `CONTRIBUTING.md`.
BTW there's already a dependency for CORS [here](https://github.com/apache/superset/blob/a912fafb6d592703c5b66f59be180220329ab9c4/setup.py#L148) as an optional dependency. Note we don't need both.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org