I'm trying to use the Masonite framework and I just installed the masonite-cli package and whenever I run craft new, an Attribute Error - module 'urllib' has no attribute 'urlopen' is thrown. My base Python version is 2.7 but I have 3.6 installed.
Masonite - craft new command throws module 'urllib' has no attribute 'urlopen' error
177 Views Asked by Joseph Mancuso At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in FRAMEWORKS
- MonoDB JS libraries
- adding framework to Xcode 7
- does semantic ui framework support rtl languages?
- Underscore _.findWhere not finding element in array when it exists
- Architecture for creating a JavaScript framework
- iOS 8+ framework with nested embedded framework
- How to design tree in meteor framework?
- Yii2 : Cannot Show Data in Widget GridView
- CakePHP find WHERE NOT EQUAL
- Yii 1.1.3 framework. Make and existing image to be uploaded like
- iOS framework resource files
- Migrate web application to PHP Framework
- yii2 error when trying to install all generats files
- Getting Framework related warning in Xcode 7.0
- Ember js default bundle
Related Questions in MASONITE
- What is equivalent of login_required() in Masonite?
- How to serve robots.txt from Masonite
- deploy Masonite framework on windows IIS
- Validating a form in Masonite
- Can a Masonite route accept a parameter anywhere other than the end of a URL?
- AttributeError: 'NoneType' object has no attribute 'list_middleware' in masonite\routes\Route.py", line 166
- Masonite - AttributeError > 'str' object has no attribute 'filename'
- Masonite - What is the difference between "name" and "prefix" when making route groups
- Command 'key' is not defined when running craft install
- masonite 'Post' object has no attribute 'controller'
- Masonite - TypeError: Can't convert 'Undefined' object to str implicitly
- Masonite - TypeError > encoding without a string argument
- Masonite - Corrupted Content error on redirection to '/'
- Masonite - craft new command throws module 'urllib' has no attribute 'urlopen' error
- Masonite throw Invalid secret key error, even after secret key is created
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Although this error is a little ambiguous, this is may seem like it is being thrown because of an incorrect Python version but the base craft commands are designed to be run on Python 2 and Python 3.
With that being said, this error is likely because of an SSL certificate error since Python 3.6 doesn't come with certificates. You can read more about fixing this error here: urllib and "SSL: CERTIFICATE_VERIFY_FAILED" Error
but the solution to this is to just run:
/Applications/Python\ 3.6/Install\ Certificates.command