nikola icon indicating copy to clipboard operation
nikola copied to clipboard

nikola auto failing

Open mcavigelli opened this issue 9 months ago • 2 comments

Environment

Tested and seen on two computers. In both cases running nikola in virtual environment.

  • Windows 10, Python 3.11.9, Nikola v8.3.1
  • Linux, Python 3.11.2, Nikola v8.3.1

Description

I am new to nikola, I do not know if this is a regression.

  1. I start a website with nikola auto. 1.1 website starts
  2. I change a file 2.1 nikola tries to reload,
    • Windows: fails to reload (message see below)
    • Linux: reload succeeds, but with error message (see below)

On Windows the message is the following:

[2024-05-23 22:01:47] ERROR: asyncio: Task exception was never retrieved future: <Task finished name='Task-8' coro=<CommandAuto.queue_rebuild() done, defined at C:\Users<some-path-ommitted>\nikola-env\Lib\site-packages\nikola\plugins\command\auto_init_.py:362> exception=FileNotFoundError(2, 'The system cannot find the path specified')> Traceback (most recent call last): File "C:\Users<some-path-ommitted>\nikola-env\Lib\site-packages\nikola\plugins\command\auto_init_.py", line 369, in queue_rebuild is_hidden = os.stat(event_path).st_file_attributes & stat.FILE_ATTRIBUTE_HIDDEN

On Linux the message is the following:

ValueError: no path specified [2024-05-23 22:17:27] ERROR: asyncio: Task exception was never retrieved future: <Task finished name='Task-179' coro=<CommandAuto.reload_page() done, defined at //nikola-env/lib/python3.11/site-packages/nikola/plugins/command/auto/init.py:427> exception=ValueError('no path specified')> Traceback (most recent call last): File "//nikola-env/lib/python3.11/site-packages/nikola/plugins/command/auto/init.py", line 435, in reload_page p = os.path.relpath(event_path, os.path.abspath(self.site.config['OUTPUT_FOLDER'])).replace(os.sep, '/') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 490, in relpath ValueError: no path specified [2024-05-23 22:17:27] ERROR: asyncio: Task exception was never retrieved future: <Task finished name='Task-180' coro=<CommandAuto.reload_page() done, defined at //nikola-env/lib/python3.11/site-packages/nikola/plugins/command/auto/init.py:427> exception=ValueError('no path specified')> Traceback (most recent call last): File "//nikola-env/lib/python3.11/site-packages/nikola/plugins/command/auto/init.py", line 435, in reload_page p = os.path.relpath(event_path, os.path.abspath(self.site.config['OUTPUT_FOLDER'])).replace(os.sep, '/') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 490, in relpath ValueError: no path specified

mcavigelli avatar May 23 '24 20:05 mcavigelli