Errors building website start.fedoraproject.org

Hi.
I am new to the Fedora Project, though I have been using Fedora for years (since Fedora 30).

I am trying to get set up to work on Fedora websites, but have hit an error. It seems to be Python 2.7-related, which shocks me somewhat: hasn’t everything been ported to Python 3?

Anyhow, I followed the following steps:

  1. Set up a Fedora account;
  2. Followed the instructions at How to fix bugs on the Fedora Project website - Fedora Project Wiki :
    • Cloned the Gitgub repo (git clone https://pagure.io/fedora-websites.git), created a new branch off main, and ran make as indicated in Step 7;
    • Result was an error, as shown in the console log below:
14:09: fedora ⦿ git clone https://pagure.io/fedora-websites.git
Cloning into 'fedora-websites'...
remote: Enumerating objects: 19657, done.
remote: Counting objects: 100% (1697/1697), done.
remote: Compressing objects: 100% (482/482), done.
remote: Total 19657 (delta 1467), reused 1289 (delta 1214), pack-reused 17960
Receiving objects: 100% (19657/19657), 82.59 MiB | 1.05 MiB/s, done.
Resolving deltas: 100% (11958/11958), done.

14:11: fedora ⦿ cd fedora-websites/

14:11: fedora-websites ⦿ cd start.fedoraproject.org/

14:13: start.fedoraproject.org ⦿ ll
total 4.0K
drwxr-xr-x. 1 john john  50 Jul 18 14:11 ./
drwxr-xr-x. 1 john john 478 Jul 18 14:11 ../
drwxr-xr-x. 1 john john  32 Jul 18 14:11 build/
drwxr-xr-x. 1 john john  32 Jul 18 14:11 data/
-rw-r--r--. 1 john john 299 Jul 18 14:11 Makefile
drwxr-xr-x. 1 john john  68 Jul 18 14:11 po/
drwxr-xr-x. 1 john john  52 Jul 18 14:11 static/

14:15: start.fedoraproject.org ⦿ git checkout -b john-test
Switched to a new branch 'john-test'

14:15: start.fedoraproject.org ⦿ git branch
* john-test
  main

14:16: start.fedoraproject.org ⦿ make
grep: warning: stray \ before #
python2.7 /mnt/golgi/tech24/dev/fedora/fedora-websites/start.fedoraproject.org/../build.d/build.py -o out -s static -b /
Traceback (most recent call last):
  File "/mnt/golgi/tech24/dev/fedora/fedora-websites/start.fedoraproject.org/../build.d/build.py", line 14, in <module>
    from pkg_resources import get_distribution
ImportError: No module named pkg_resources
make: *** [../Makefile.in:34: static] Error 1

14:17: start.fedoraproject.org ⦿ 

Questions:

  • What is the correct forum for this issue?
  • If this forum is appropriate, what is causing this error and how should I fix or obviate it?
2 Likes

Hi and welcome! This section of the forum is perfect for introductions, but because this is mostly technical I’m going to move it to the Project Discussion category with the websites-and-apps-team tag, which is the right place. :classic_smiley:

2 Likes

From The Water Cooler to Project Discussion

Added websites-and-apps-team and removed introductions, tech-talk

Also, while I am not on the web and apps team, I think the problem is (unfortunately a common one) — you’ve hit an outdated page on the wiki that looks right.

The current team docs are at Fedora Websites & Apps Team :: Fedora Docs, and I think these are the instructions you’re looking for:

Another problem is that most (but not yet all) of the Fedora Websites content has been moved from Pagure to GitLab. Unless you really want the old version of the Fedora Start page, the correct repo would be here: pages/start.vue · develop · fedora / Fedora Websites and Apps / Fedora Websites / fedora-websites-3.0 · GitLab

3 Likes

Hi John,

do you have installed locally the python package setuptools ?

dnf install python3-setuptools or with pip.

Best regards
Damian

As @glb says,https://pagure.io/fedora-websites.git is archived (and still on Python 2 because it’s unused nowadays).

New repo is fedora / Fedora Websites and Apps / Fedora Websites / fedora-websites-3.0 · GitLab

Note that start.fedoraproject.org re-routes you to fedoraproject.org/start, which is simply a page on the new repo. @glb (and other’s?) work on the new start page can be seen at pages/start.vue · develop · fedora / Fedora Websites and Apps / Fedora Websites / fedora-websites-3.0 · GitLab as he says.

Installation and project are now based on Node and a thing called Nuxt, simply follow the steps in the first section of the new readme to get up and running!

1 Like