sunnysnowhi commented on issue #9399: Failed to execute 'superset load_examples 
' , ssl.SSLError
URL: 
https://github.com/apache/incubator-superset/issues/9399#issuecomment-615073551
 
 
   I found the solution!
   
   vim 
/opt/superset-venv/lib/python3.6/site-packages/superset/examples/helpers.py
   and change the way of urlopen:
    
   before change:
       content = request.urlopen(f"{BASE_URL}{filepath}?raw=true").read()
   
   after change:
       import ssl
       context = ssl._create_unverified_context()
       content = request.urlopen(f"{BASE_URL}{filepath}?raw=true", 
context=context).read()
   
   
![image](https://user-images.githubusercontent.com/52787424/79539825-a42dee00-80b9-11ea-94c5-9fb92267d39e.png)
   
   The error above disappear,  yeah~

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to