Cannot start Masonite project. Get CERTIFICATE_VERIFY_FAILED error - python-3.x

Trying to create first Masonite project.
When running [project start .] I get an SSLError [SSL:CERTIFICATE_VERIFY_FAILED].
Unable to find resolution.
OpenSSL is installed.
Any suggestions?
Thanks
Python 3.8
CentOS 7

Related

Unable to install nodejs on ubuntu 22 some files are common as the error describes and i dont know how to solve this?

it was working nice previously but when i tried to update node.js with 18 version then error occurred
error while installing

pyqtdeploy: Fails when configuring qt

I'm trying to compile a pyqt5 application following the pyqtdeploy documentation but no success.
When running build-demo.py, it produces an error when qt is been configured.
I have downloaded all the correct and required tarballs for demo.
Also, if i compile qt separately, it works just fine following this https://www.ics.com/blog/how-compile-qt-source-code-linux.
Running this,
python3 build-demo.py --verbose
I get the following error:
pyqtdeploy-sysroot: Execution failed: returned exit code 3
I wonder if I am missing any command configure options or libraries.
Any help will be greatly Appreciated
I'm using python 3 on ubuntu 18

PyCharm will not perform a requests module update to the newest version

I am having difficulty running a piece of requests code in my IDE PyCharm. The code is very basic and will work on my system for every website except one. Here is the code I am running:
import requests
initialURL = 'http://www.acastipharma.com/'
r = requests.get(initialURL)
When I run this code I get an error message that terminates with
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.acastipharma.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)'),))
I first thought this was an SSL problem, but if I run the requests command with the verify=False switch I still get the same error. This leads me to believe that the problem is not an SSL problem. I tried running the same code from a different IDE and the error did not occur which led me to believe the problem lies with my IDE PyCharm. I tried using a different project interpreter in PyCharm and the error also did not occur. I realized that the two different PyCharm project interpreters used different versions of requests and every PyCharm project interpreter I use that has the most recent version of requests the code will work but if the PyCharm project interpreter uses an older version of requests the error appears. Unfortunately PyCharm for some reason will not allow me to update the requests module in the PyCharm project interpreter I am using. Here is the error message I get from PyCharm when I attempt to update requests:
Could not find a version that satisfies the requirement requests==2.19.1 (from versions: )
No matching distribution found for requests==2.19.1
PyCharm then suggests that I run the upgrade command from terminal:
pip install -U requests==2.19.1
Here is what PyCharm suggests:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at '/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5'.
When I run this from terminal I get this:
Requirement already up-to-date: requests==2.19.1 in ./anaconda/lib/python3.5/site-packages (2.19.1)
It seems likely that the upgrade from terminal is occurring to the wrong directory, it is trying to update
./anaconda/lib/python3.5/site-packages
when I need it to update
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5
Does anybody know how to specify the correct directory for the update when I run the pip install -U requests==2.19.1 command at terminal. Any assistance on how to get requests properly upgraded, whether from within PyCharm or at terminal, would be appreciated.
It turns out the problem was two-fold. The first problem was the version of OpenSSL that the project interpreter I was using was deprecated. I also had two versions of Python 3.5 on my system and whenever I would attempt to update a package (ie. OpenSSL) the version of python that was not used by my project interpreter would update rather than the version of Python 3.5 I was using for the project interpreter. I ended up installing Python 3.7 and creating a project interpreter based on Python 3.7. By having only one version of 3.7 on my system I was able to update the OpenSSL package specifically associated with 3.7 and the problem went away.

Erlang SDK - IntelliJ - Centos 7

I am trying to make an OpenIMS server with this tutorial:http://www.openimscore.org/documentation/installation-guide/
I am using CentOS 7, got erlang installed by verifying command "erl" in terminal
Then I tried following this tutorial to start my own coding: https://www.jetbrains.com/help/idea/2017.1/getting-started-with-erlang.html
but I cannot run the erlang project by IntelliJ because of the error: "can't find include lib "diameter/include/diameter_gen_base_cxdx.hrl".
I found nothing inside the folder "/usr/local/lib/erlang".
I think the problem is about missing Erlang-SDK installed for IntelliJ
Does anyone know how to configure the Erlang SDK for IntelliJ on Centos 7 please?
Any suggestion would be highly appreciated !!

nodejs: node-gyp rebuild - Access is denied

I am trying to install nodetime module to profile my nodejs app..
When i run > npm install nodetime
the files are downloaded. but when node-gyp rebuild runs.
I get the following error.
Command failed: CreateProcessW: Access is denied
The same thing happens, when i try to download v8-profiler.
Nodejs ver: 0.8.15
node-gyp: 0.7.1
I have tried this on both my dev machine that runs window 7 and on windows server 2008 where this app will be hosted..
Any help is appreciated. Please let me know if more explanation is required
Update:
Sorry I had ignored this post for a while.. Had a chat with someone I assume is the author of nodetime and here are the things required for nodetime to run on Windows.
Python version 2.7
If on windows the PATH environment variable for python should include python.exe Eg: C:\Python27\Python.exe
It requires CPP compilers that come with Visual C++ Express edition and Windows 7 64-bit SDK (SDK compiler is required for 64-bit version of nodejs).
Hope this helps.
Try just set PATH=C:\Python27;%PATH%
DO NOT set PYTHON variable (check that its not set on your machine).
I had incorrectly set the PYTHON variable some time ago - which then caused me this headache for ages until I managed to figure out what was wrong.

Resources