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

Unable to install on fedora 41 #435

Closed
alexanderi96 opened this issue Nov 17, 2024 · 6 comments
Closed

Unable to install on fedora 41 #435

alexanderi96 opened this issue Nov 17, 2024 · 6 comments

Comments

@alexanderi96
Copy link

Hi! Having some problems with the fedora.sh install script on my system. After the browser selection, the script:

  • Skips the config overwrite warning prompt (doesn't wait for y/N input)
  • Rushes through the file operations
  • Ends with several errors like:
    • "No such file or directory: .../nwg-displays"
    • "Error loading json: ... settings-hyprland"

This doesn't seem like the intended behavior given the warning prompt and the errors.

Running on Fedora 41.

here is the log:

[stego@thickpad ~]$ wget https://raw.github.com/nwg-piotr/nwg-shell/main/install/fedora.sh && chmod u+x fedora.sh && ./fedora.sh && rm fedora.sh
fedora.sh            100% [======================================================================================================================>]     596     --.-KB/s
                          [Files: 1  Bytes: 596  [586 B/s] Redirects: 1  Todo: 0  Errors: 0                                                       ]
Enabling nwg-shell Copr
 https://copr.fedorainfracloud.org/api_3/rpmrepo/tofik/nwg-shell/fedora-41/                                                      100% |   1.9 KiB/s |   1.4 KiB |  00m01s
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Maintainer of the enabled Copr repository decided to make
it dependent on other repositories. Such repositories are
usually necessary for successful installation of RPMs from
the main Copr repository (they provide runtime dependencies).

Be aware that the note about quality and bug-reporting
above applies here too, Fedora Project doesn't control the
content. Please review the list:

  1. [coprdep:copr.fedorainfracloud.org:erikreider:SwayNotificationCenter]
     baseurl=https://download.copr.fedorainfracloud.org/results/erikreider/SwayNotificationCenter/fedora-$releasever-$basearch/

  2. [coprdep:copr.fedorainfracloud.org:mochaa:gtk-session-lock]
     baseurl=https://download.copr.fedorainfracloud.org/results/mochaa/gtk-session-lock/fedora-$releasever-$basearch/

  3. [coprdep:copr.fedorainfracloud.org:tofik:sway]
     baseurl=https://download.copr.fedorainfracloud.org/results/tofik/sway/fedora-$releasever-$basearch/

These repositories are being enabled together with the main
repository.


You're about to select components, that need to be preinstalled for the key bindings to work.
None of above is a shell dependency, and you're free to change them any time later.

1) thunar
2) caja
3) dolphin
4) nautilus
5) nemo
6) pcmanfm
Select file manager: 4

1) mousepad
2) emacs
3) gedit
4) geany
5) kate
6) vim
Select text editor: 6

1) chromium
2) epiphany
3) falkon
4) firefox
5) konqueror
6) midori
7) qutebrowser
8) seamonkey
9) surf
Select web browser: 4

Installing selection: nautilus vim firefox
Updating and loading repositories:
 Copr copr.fedorainfracloud.org/tofik/nwg-shell runtime dependency #2 - mochaa/gtk-session-lock                                  100% |   1.6 KiB/s |   1.5 KiB |  00m01s
 Copr repo for nwg-shell owned by tofik                                                                                          100% |   6.5 KiB/s |   1.5 KiB |  00m00s
 Copr copr.fedorainfracloud.org/tofik/nwg-shell runtime dependency #1 - erikreider/SwayNotificationCenter                        100% |   3.5 KiB/s |   1.5 KiB |  00m00s
 Copr copr.fedorainfracloud.org/tofik/nwg-shell runtime dependency #3 - tofik/sway                                               100% |   2.8 KiB/s |   1.5 KiB |  00m01s
Repositories loaded.
Package "nautilus-47.0-1.fc41.x86_64" is already installed.
Package "vim-enhanced-2:9.1.866-1.fc41.x86_64" is already installed.
Package "firefox-132.0.1-2.fc41.x86_64" is already installed.

Nothing to do.
Installing nwg-shell
Updating and loading repositories:
Repositories loaded.
Package "nwg-shell-0.5.39-1.fc41.noarch" is already installed.

Nothing to do.
Installing initial configuration

*******************************************************************
    This script installs/overwrites configs and style sheets       
          for sway, Hyprland and nwg-shell components.             
  The only backup that will be made is the main sway config file.  
   This script should be used on a fresh Arch Linux installation.  
            If you're running it on your existing setup,           
                 you're doing it at your own risk.                 
*******************************************************************

Proceed? y/N Copying files to '/home/stego/.config/foot'
 foot.ini
Copying files to '/home/stego/.config/gtk-3.0'
 gtk.css
Copying files to '/home/stego/.config/gtklock'
 preset-0.css
 preset-1.css
 preset-2.css
 preset-3.css
Copying files to '/home/stego/.config/nwg-displays'
Failure: [Errno 2] No such file or directory: '/usr/lib/python3.13/site-packages/nwg_shell/skel/config/nwg-displays'
Copying files to '/home/stego/.config/nwg-dock'
 preset-0.css
 preset-1.css
 preset-2.css
 preset-3.css
Copying files to '/home/stego/.config/nwg-drawer'
 preset-0.css
 preset-1.css
 preset-2.css
 preset-3.css
Copying files to '/home/stego/.config/nwg-look'
 config
Copying files to '/home/stego/.config/nwg-panel'
 common-settings.json
 menu-start.css
 preset-0
 preset-0.css
 preset-1
 preset-1.css
 preset-2
 preset-2.css
 preset-3
 preset-3.css
Copying files to '/home/stego/.config/sway'
 autostart
 config
 outputs
 variables
 workspaces
Copying files to '/home/stego/.config/swaync'
 config.json
 preset-0.css
 preset-1.css
 preset-2.css
 preset-3.css
 style.css
Copying files to '/home/stego/.local/share/nwg-look'
 gsettings
Copying files to '/home/stego/.local/share/nwg-shell-config'
 settings
Error loading json: [Errno 2] No such file or directory: '/home/stego/.local/share/nwg-shell-config/settings-hyprland'
Copying default background

That's all. You may run sway or Hyprland now.

@nwg-piotr
Copy link
Owner

Possibly the author of this script has an idea, @t0fik ?

@alexanderi96
Copy link
Author

alexanderi96 commented Nov 18, 2024

Also I forgot to mention that it just obliterated my .config/hypr folder without mentioning it as far as I'm aware

@nwg-piotr
Copy link
Owner

If it comes to the nwg-displays config file, it's missing, together with its folder. It shouldn't stop the program from working, but I'll fix it tonight, anyway.

I have no idea why the settings-hyprland file is missing. Need to do some check on my testing laptop at home.

@t0fik
Copy link
Contributor

t0fik commented Nov 18, 2024

@nwg-piotr I'm not the author of the script. install/fedora.sh only installs packages and executes nwg-shell-installer -a, which might be source of the problem. I've pushed PR #438 to address this

@nwg-piotr
Copy link
Owner

nwg-piotr commented Nov 18, 2024

Thank you, @t0fik.

This error:

Failure: [Errno 2] No such file or directory: '/usr/lib/python3.13/site-packages/nwg_shell/skel/config/nwg-displays'

has a real cause: the source folder is missing from package_data{}. I'll add it in a minute, but the error has no consequences, as nwg-displays creates missing configuration on first run.

The second error:

Error loading json: [Errno 2] No such file or directory: '/home/stego/.local/share/nwg-shell-config/settings-hyprland'

only appears when you run the installer w/o the -hypr argument, and should not stop anything from working (I'll fix it one way or another of course).

@nwg-piotr
Copy link
Owner

It should be all right now.

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

No branches or pull requests

3 participants