You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/01/27 05:13:50 UTC

[GitHub] [incubator-superset] Mabloq opened a new issue #9027: new commit on superset_config.py trys to import superset.typing but module not found

Mabloq opened a new issue #9027: new commit on superset_config.py trys to import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027
 
 
   ### Environment
   **OS:** Fedora 31
   **superset:** Superset 0.35.2
   **node:** v12.14.1
   **npm:** 6.13.4
   **python:** Python 3.7.6
   
   ### Reproduce
   - conda create env
   - conda activate env
   - pip install --upgrade setuptools pip
   - pip install apache-superset
   - I delete ~/.superset/superset.db 
   - add superset_config.py file  to ~/.superset/ 
   - edit SQLALCHEMY connection string to connect to mysql db
   - superset db upgrade
   - flask fab create-admin
   - fill out info
   
   ### Expected results
   
   - Admin user successfully created
   
   ### Actual results
   
   ERROR:root:Found but failed to import local superset_config
   Traceback (most recent call last):
     File "/home/###/.conda/envs/superset/lib/python3.7/site-packages/superset/config.py", line 701, in <module>
       from superset_config import *  # pylint: disable=import-error
     File "/home/###/.superset/superset_config.py", line 37, in <module>
       from superset.typing import CacheConfig
   ModuleNotFoundError: No module named 'superset.typing'
   Usage: flask fab create-admin [OPTIONS]
   
   Error: While importing "superset", an ImportError was raised:
   
   Traceback (most recent call last):
     File "/home/###/.conda/envs/superset/lib/python3.7/site-packages/flask/cli.py", line 240, in locate_app
       __import__(module_name)
     File "/home/###/.conda/envs/superset/lib/python3.7/site-packages/superset/__init__.py", line 34, in <module>
       from superset import config
     File "/home/###/.conda/envs/superset/lib/python3.7/site-packages/superset/config.py", line 701, in <module>
       from superset_config import *  # pylint: disable=import-error
     File "/home/###/.superset/superset_config.py", line 37, in <module>
       from superset.typing import CacheConfig
   ModuleNotFoundError: No module named 'superset.typing'
   
   ### Additional Comments
   I am putting superset_config.py in ~/.superset. Is that wrong? Its seems to be reading config file from conda sitepackages instead. In the docs you say to make sure this config file is in your Python Path. What does that mean?
   
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] Mabloq commented on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found

Posted by GitBox <gi...@apache.org>.
Mabloq commented on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027#issuecomment-598989717
 
 
   Hey yeah yeah I will post something tn, currently corona shopping for my life. The gist is you have to add superset to you r python path of your virtual environment. Are you using venv or conda?
   
   Get Outlook for Android<https://aka.ms/ghei36>
   ________________________________
   From: i2cute <no...@github.com>
   Sent: Thursday, March 12, 2020 11:50:09 PM
   To: apache/incubator-superset <in...@noreply.github.com>
   Cc: Matthew Arcila <ar...@outlook.com>; State change <st...@noreply.github.com>
   Subject: Re: [apache/incubator-superset] new commit on superset_config.py trys to import superset.typing but module not found (#9027)
   
   
   hi, may i know how your solve the issue? I also facing the same
   
   —
   You are receiving this because you modified the open/close state.
   Reply to this email directly, view it on GitHub<https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fincubator-superset%2Fissues%2F9027%23issuecomment-598535083&data=02%7C01%7C%7Cdaba867c22214f5bdf3408d7c701a0fa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637196682110343063&sdata=tZDmtqYOzYyT0hZgMLALe65tOQFSTsUvRRYvEdROfXw%3D&reserved=0>, or unsubscribe<https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC3KB3QUBVZPKFPFCY5WKRDRHGUPDANCNFSM4KL3YTVA&data=02%7C01%7C%7Cdaba867c22214f5bdf3408d7c701a0fa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637196682110353054&sdata=se5ZteOvfVwHrcs1XVrStrcBwqurUPYZxjpJEOqHhUw%3D&reserved=0>.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] i2cute removed a comment on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found

Posted by GitBox <gi...@apache.org>.
i2cute removed a comment on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027#issuecomment-598535083
 
 
   hi, may i know how your solve the issue? I also facing the same

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] i2cute commented on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found

Posted by GitBox <gi...@apache.org>.
i2cute commented on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027#issuecomment-598535083
 
 
   hi, may i know how your solve the issue? I also facing the same

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] Mabloq closed issue #9027: new commit on superset_config.py trys to import superset.typing but module not found

Posted by GitBox <gi...@apache.org>.
Mabloq closed issue #9027: new commit on superset_config.py trys to import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] Mabloq commented on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found

Posted by GitBox <gi...@apache.org>.
Mabloq commented on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027#issuecomment-580013459
 
 
   OK I worked things out but I think the Documentation for Installation should be update I will submit pull request soon. 
   
   - Basically I want to show the user how to add path/to/virtual-env/lib/python3.7/site-packages/superset/ to their PYTHON Path
   - This will be helpful because that's where the actual config.py that is used by "superset db upgrade" lives. And that just isnt clear right now by the documentation
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] Mabloq removed a comment on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found

Posted by GitBox <gi...@apache.org>.
Mabloq removed a comment on issue #9027: new commit on superset_config.py trys to import superset.typing but module not found
URL: https://github.com/apache/incubator-superset/issues/9027#issuecomment-598989717
 
 
   Hey yeah yeah I will post something tn, currently corona shopping for my life. The gist is you have to add superset to you r python path of your virtual environment. Are you using venv or conda?
   
   Get Outlook for Android<https://aka.ms/ghei36>
   ________________________________
   From: i2cute <no...@github.com>
   Sent: Thursday, March 12, 2020 11:50:09 PM
   To: apache/incubator-superset <in...@noreply.github.com>
   Cc: Matthew Arcila <ar...@outlook.com>; State change <st...@noreply.github.com>
   Subject: Re: [apache/incubator-superset] new commit on superset_config.py trys to import superset.typing but module not found (#9027)
   
   
   hi, may i know how your solve the issue? I also facing the same
   
   —
   You are receiving this because you modified the open/close state.
   Reply to this email directly, view it on GitHub<https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fincubator-superset%2Fissues%2F9027%23issuecomment-598535083&data=02%7C01%7C%7Cdaba867c22214f5bdf3408d7c701a0fa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637196682110343063&sdata=tZDmtqYOzYyT0hZgMLALe65tOQFSTsUvRRYvEdROfXw%3D&reserved=0>, or unsubscribe<https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAC3KB3QUBVZPKFPFCY5WKRDRHGUPDANCNFSM4KL3YTVA&data=02%7C01%7C%7Cdaba867c22214f5bdf3408d7c701a0fa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637196682110353054&sdata=se5ZteOvfVwHrcs1XVrStrcBwqurUPYZxjpJEOqHhUw%3D&reserved=0>.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org