Nikola build on new demo site failed

7 views
Skip to first unread message

Long Nguyen Xuan

unread,
Apr 2, 2021, 10:51:21 PMApr 2
to nikola-discuss
Hi all, 
I'm new to nikola and today when I tried my first site with `nikola init --demo my-1st-site` then cd to my-1st-site folder and `nikola build`, it throw below error, 
Tried with Google but nothing help, 
Can you please help me fix it? 


λ  nikola build
Scanning posts........done!
.  render_taxonomies:output\archive.html
.  render_taxonomies:output\categories\index.html
.  render_sources:output\pages\path-handlers.rst
.  render_sources:output\pages\dr-nikolas-vendetta.rst
.  render_sources:output\pages\creating-a-theme.rst
.  render_sources:output\pages\charts.rst
.  render_sources:output\pages\social_buttons.rst
.  render_sources:output\pages\listings-demo.rst
.  render_sources:output\pages\about-nikola.rst
.  render_sources:output\pages\bootstrap-demo.rst
.  render_sources:output\pages\extending.rst
.  render_sources:output\pages\internals.rst
.  render_sources:output\pages\handbook.rst
.  render_sources:output\pages\quickref.rst
.  render_sources:output\pages\quickstart.rst
.  render_sources:output\posts\welcome-to-nikola.rst
.  render_sources:output\pages\theming.rst
.  scale_images:output\images\frontispiece.jpg
.  scale_images:output\images\illus_001.jpg
.  render_posts:timeline_changes
.  render_posts:cache\pages\path_handlers.html
.  render_posts:cache\pages\dr-nikolas-vendetta.html
[2021-04-03 09:43:36] WARNING: Nikola: In order to use the typogrify filter, you must install the "typogrify" Python package.
.  render_posts:cache\pages\creating-a-theme.html
.  render_posts:cache\pages\charts.html
[2021-04-03 09:43:37] WARNING: Nikola: In order to use the Chart directive, you must install the "pygal" Python package.
.  render_posts:cache\pages\social_buttons.html
.  render_posts:cache\pages\listings-demo.html
.  render_posts:cache\pages\1.html
.  render_posts:cache\pages\bootstrap-demo.html
.  render_posts:cache\pages\extending.html
.  render_posts:cache\pages\internals.html
.  render_posts:cache\pages\manual.html
TaskError - taskid:render_posts:cache\pages\manual.html
PythonAction Error
Traceback (most recent call last):
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\doit\action.py", line 437, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\nikola\post.py", line 728, in compile
    self.compile_html(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\nikola\plugins\compile\rest\__init__.py", line 151, in compile
    output, error_level, deps, shortcode_deps = self.compile_string(data, source, is_two_file, post, lang)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\nikola\plugins\compile\rest\__init__.py", line 134, in compile_string
    output, error_level, deps, _ = rst2html(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\nikola\plugins\compile\rest\__init__.py", line 382, in rst2html
    pub.publish(enable_exit_status=enable_exit_status)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\core.py", line 217, in publish
    self.document = self.reader.read(self.source, self.parser,
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\readers\__init__.py", line 71, in read
    self.parse()
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\readers\__init__.py", line 77, in parse
    self.parser.parse(self.input, document)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\__init__.py", line 191, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 170, in run
    results = StateMachineWS.run(self, input_lines, input_offset,
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 2769, in underline
    self.section(title, source, style, lineno - 1, messages)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 327, in section
    self.new_subsection(title, lineno, messages)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 393, in new_subsection
    newabsoffset = self.nested_parse(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 281, in nested_parse
    state_machine.run(block, input_offset, memo=self.memo,
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 196, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\statemachine.py", line 241, in run
    context, next_state, result = self.check_line(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\statemachine.py", line 459, in check_line
    return method(match, context, next_state)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 2342, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 2354, in explicit_construct
    return method(self, expmatch)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 2096, in directive
    return self.run_directive(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\docutils\parsers\rst\states.py", line 2146, in run_directive
    result = directive_instance.run()
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\nikola\plugins\compile\rest\gist.py", line 71, in run
    rawGist = (self.get_raw_gist(gistID))
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\nikola\plugins\compile\rest\gist.py", line 52, in get_raw_gist
    return requests.get(url).text
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
    self._prepare_proxy(conn)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
    conn.connect()
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\urllib3\connection.py", line 359, in connect
    conn = self._connect_tls_proxy(hostname, conn)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\urllib3\connection.py", line 500, in _connect_tls_proxy
    return ssl_wrap_socket(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\site-packages\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "c:\users\longnx\appdata\local\programs\python\python39\lib\ssl.py", line 997, in _create
    raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

########################################
render_posts:cache\pages\manual.html <stdout>:

Chris Warrick

unread,
Apr 3, 2021, 9:13:17 AMApr 3
to Nikola—Discuss
On Sat, 3 Apr 2021 at 04:51, Long Nguyen Xuan <lon...@gmail.com> wrote:
>
> Hi all,
> I'm new to nikola and today when I tried my first site with `nikola init --demo my-1st-site` then cd to my-1st-site folder and `nikola build`, it throw below error,
> Tried with Google but nothing help,
> Can you please help me fix it?
>
>
> λ nikola build
> Scanning posts........done!
> . render_posts:cache\pages\manual.html
> TaskError - taskid:render_posts:cache\pages\manual.html
> PythonAction Error
> Traceback (most recent call last):
> [snip]
> File "c:\users\longnx\appdata\local\programs\python\python39\lib\ssl.py", line 500, in wrap_socket
> return self.sslsocket_class._create(
> File "c:\users\longnx\appdata\local\programs\python\python39\lib\ssl.py", line 997, in _create
> raise ValueError("check_hostname requires server_hostname")
> ValueError: check_hostname requires server_hostname
>
> ########################################
> render_posts:cache\pages\manual.html <stdout>:

The demo site includes the manual, which has a demo of the gist
directive — and that requires making a request to gist.github.com. The
connection attempt failed, perhaps due to your employer/ISP/etc
messing with your traffic, or due to issues at GitHub. Try running
`nikola build` again, and if it fails with the same error, you can
just delete pages/manual.rst and avoid the network request altogether.

--
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

Long Nguyen Xuan

unread,
Apr 10, 2021, 5:25:49 AMApr 10
to nikola-discuss
thank you very much.
Sorry for my late reply, I mised the mail from Google about your reply. 
Reply all
Reply to author
Forward
0 new messages