question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

craft command throws SSL and URLopen errors

See original GitHub issue

found 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
josephmancusocommented, Jun 21, 2018

I updated masonite just never pushed to the repo. Will do it tonight

0reactions
josephmancusocommented, Jun 22, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found