Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nikola auto failing #3776

Open
mcavigelli opened this issue May 23, 2024 · 2 comments
Open

nikola auto failing #3776

mcavigelli opened this issue May 23, 2024 · 2 comments
Labels

Comments

@mcavigelli
Copy link

mcavigelli commented May 23, 2024

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 mcavigelli added the bug label May 23, 2024
@evgeni
Copy link
Contributor

evgeni commented May 24, 2024

This (well, the linux part) was fixed in #3775 but not released yet

@mcavigelli
Copy link
Author

I did not check closed issues before submitting this one, sorry.

Looking forward to test in on Linux in a new release.

Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants