JezerM / web-greeter

A modern, visually appealing greeter for LightDM.
https://web-greeter-page.vercel.app
GNU General Public License v3.0
211 stars 12 forks source link

Can't not make install due to file error #14

Closed metropolis-nostalgia closed 2 years ago

metropolis-nostalgia commented 2 years ago

Environment

Bug description

make install exit with an error This is its output:

root@debian:~/web-greeter# make install
./build/utils.sh clean
./build/utils.sh build-init
./build/utils.sh build /usr
Building web-greeter with cx_freeze...
setup.py log inside /root/web-greeter/build/setup_log
mv: cannot stat '/root/web-greeter/build/web-greeter/dist/*': No such file or directory
make: *** [Makefile:65: build] Error 1

Steps to reproduce

Steps to reproduce the behaviour:

git clone https://github.com/JezerM/web-greeter.git
cd web-greeter
sudo pip install -r requirements.txt
sudo make install

Expected behavior

make install will exit with a successful message and web greeter will work.

Screenshots

make error (I edit my XFCE theme)

JezerM commented 2 years ago

Hmm, that's really weird. It shouldn't say /root/web-greeter/..., which shell are you using?

JezerM commented 2 years ago

The log should be something like this:

$ make install
./build/utils.sh clean
./build/utils.sh build-init
./build/utils.sh build /usr
Building web-greeter with cx_freeze...
setup.py log inside /home/jezer/Documentos/LightDM/web-greeter/build/setup_log
./build/utils.sh prepare-install /usr
sudo ./build/utils.sh install / /usr
SUCCESS!
WildEgo commented 2 years ago

I too am having the same problem.

web-greeter on  master via 🐍 v3.9.7 
❯ make install
./build/utils.sh clean
./build/utils.sh build-init
./build/utils.sh build /usr
Building web-greeter with cx_freeze...
setup.py log inside /home/ego/web-greeter/build/setup_log
mv: cannot stat '/home/ego/web-greeter/build/web-greeter/dist/*': No such file or directory
make: *** [Makefile:65: build] Error 1

I personally use fish but the same problem happens when I use bash.

JezerM commented 2 years ago

I found that set -F disables globbing (expand /*), so you could try to use set +F before running it.

Here is a little example of set -F and set +F: (The spanish error says: mv: cannot stat 'web-greeter/*': No such file or directory)

Screenshot_2021-10-24-01_1366x768

WildEgo commented 2 years ago

I found that set -F disables globbing (expand /*), so you could try to use set +F before running it.

Here is a little example of set -F and set +F: (The spanish error says: mv: cannot stat 'web-greeter/*': No such file or directory)

Screenshot_2021-10-24-01_1366x768

I'll try that out I'll edit this post with results

Result: Seems like I can't run set +F since it's not a recognizable variable name

JezerM commented 2 years ago

Oh, sure, for ZSH, use set +F to enable globbing. For Bash, use set +f to enable it.

JezerM commented 2 years ago

Actually, show the cx_freeze log inside ./build/setup_log and check if there is any error.

JezerM commented 2 years ago

I changed the installation method because it was causing lots of errors, so now it should work, I guess :D

Use sudo make install and it should be enough. Use sudo make install_freeze if you wanna use cx_freeze to build web-greeter.

WildEgo commented 2 years ago

I changed the installation method because it was causing lots of errors, so now it should work, I guess :D

Use sudo make install and it should be enough. Use sudo make install_freeze if you wanna use cx_freeze to build web-greeter.

I'll give it a try as soon as I have some more free time, I can now test it on bare metal since I've moved to Linux as my daily driver

WildEgo commented 2 years ago

Ok so I managed to install it and it feels pretty amazing, only thing is that I need zip and I honestly fully had forgotten to install it personally just add it on the Dependencies tab so other people don't find the same problem.

metropolis-nostalgia commented 2 years ago

First, I am using the Bash shell prompt, as root (I don't have sudo). Second, I found a way to use my GTK theme as the greeter theme without error, so I don't need a web-greeter theme. Feels free to reopen it in case another user found this problem again.