getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.58k stars 443 forks source link

`nikola` command does not run #3769

Open marsianjohncarter opened 3 months ago

marsianjohncarter commented 3 months ago

Environment

Python Version: 3.11.5

Nikola Version: Installing through pip

Operating System: Ubuntu 24.04

Description:

I installed nikola as it was told here: https://getnikola.com/getting-started.html But when I run the command "nikola":

Illegal instruction (core dumped)

I activated the environment through the command source bin/activate

Kwpolska commented 3 months ago

An illegal instruction is unlikely to be caused by Nikola, it might be caused by Python or some dependency. Please run NIKOLA_DEBUG=1 venv/bin/python --verbose -m nikola so we can try to find a likely cause.

marsianjohncarter commented 3 months ago

@Kwpolska

Running from root folder where nikola-env is located

Command:

NIKOLA_DEBUG=1 venv/bin/python --verbose -m nikola

Ouput:

bash: venv/bin/python: No such file or directory

Command:

 NIKOLA_DEBUG=1 nikola-env/bin/python --verbose -m niko
la

Output:

unknown option --verbose
usage: nikola-env/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
Kwpolska commented 3 months ago

I didn’t remember the specific argument, so I assumed it has a long name, but it doesn’t. Try;

NIKOLA_DEBUG=1 nikola-env/bin/python -v -m nikola