Tecnativa / doodba-scaffolding

Officially supported scaffolding template for your Doodba projects
Other
11 stars 38 forks source link

Init VSCODE workspace after cloning doodba-scaffolding #52

Closed njeudy closed 5 years ago

njeudy commented 5 years ago

Hello,

I see some VSCODE integration in this repo, but did not find how to initiate VSCODE workspace when just cloning doodba-scaffolding repo.

Can you just write stage i need to initiate it ?

Note: I try to execute .vscode/doodbasetup.py but hang with this traceback:

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request self._send_request(method, url, body, headers, encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect server_hostname=server_hostname) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 814, in init self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1068, in do_handshake self._sslobj.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./doodbasetup.py", line 57, in path.join(DEST, path.basename(config)), File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 248, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen return opener.open(url, data, timeout) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open response = self._open(req, data) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open '_open', req) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain result = func(*args) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1361, in https_open context=self._context, check_hostname=self._check_hostname) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)>

My System: MACOS

Will try on linux and windows then :)

Thanks,

yajo commented 5 years ago

The scaffolding ships with some preconfigured tasks for vscode. You have to run the task "Set up VSCode development environment" from the IDE itself.

njeudy commented 5 years ago

Ok I did it, and same error.

On MACOS I need to lauch;

sudo /Applications/Python\ 3.6/Install\ Certificates.command

and it's ok now :)

yajo commented 5 years ago

Ok I had no idea about Mac 😅

Thanks for the tip.

El lun., 4 nov. 2019 14:10, Nicolas JEUDY notifications@github.com escribió:

Ok I did it, and same error.

On MACOS I need to lauch;

sudo /Applications/Python\ 3.6/Install\ Certificates.command

and it's ok now :)

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/Tecnativa/doodba-scaffolding/issues/52?email_source=notifications&email_token=AAHNXDLRV6VKPWZVYUZAU33QSAUNHA5CNFSM4JISZKDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEC7LWWY#issuecomment-549370715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHNXDK2LOGIUA3H52BDDMLQSAUNHANCNFSM4JISZKDA .

pedrobaeza commented 5 years ago

Maybe we can include that in the README.

yajo commented 5 years ago

Reading the log and the solution, it seems like it's more a thing of Python and Mac. You should know how to install Python and configure it on your system, I guess... :thinking: