craft command throws SSL and URLopen errors
See original GitHub issuefound a few issues in the craft command “new” ,
The first issue is that it’s not handling python3 and python2 correctly. There should be no from .commands import NewCommand it should be from masonite_cli.commands import NewCommand
Next, the exception handling for urllib is also wrong. It should look something like this instead:
try:
# Python3 logic
except ImportError:
# Python2 logic
except Exception as e:
raise e
great first issue. This fix should be inside the masoniteframework/craft repo. Please comment if you want to fix this issue
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Masonite - craft new command throws module 'urllib' has no ...
I'm trying to use the Masonite framework and I just installed the masonite-cli package and whenever I run craft new , an Attribute...
Read more >SSLError(SSLError(SSLError("bad handshake: Error([('SSL ...
SOLVED. The problem was that the environment variable REQUESTS_CA_BUNDLE was not set in the Anaconda Prompt shell profile, or any other command shell...
Read more >urllib.error — Exception classes raised by urllib.request ...
The urllib. error module defines the exception classes for exceptions raised by urllib. request .
Read more >MacOs / SSL: CERTIFICATE_VERIFY_FAILED error when ...
Hello - i have the following issue when using fake-useragent in an executeable program on MacOS -When i run the py-program on my...
Read more >CERTIFICATE_VERIFY_FAILED error - python - Ask Ubuntu
Python Django error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I updated masonite just never pushed to the repo. Will do it tonight
Sorry lol. I had a few minutes and decided to just finish this issue. Hey be sure to get into the slack channel 😃 http://slack.masoniteproject.com