Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

No such file or directory #117

Open
legendlife opened this issue Jul 20, 2023 · 7 comments
Open

No such file or directory #117

legendlife opened this issue Jul 20, 2023 · 7 comments

Comments

@legendlife
Copy link

Hi, I used aur to install lyrebird, The app isn't oppening. Output via the terminal:

python3: can't open file '/home/username/app.py': [Errno 2] No such file or directory
@ghost
Copy link

ghost commented Jul 20, 2023

Please could you enter lyrebird into the terminal and post the complete contents.

@legendlife
Copy link
Author

Please could you enter lyrebird into the terminal and post the complete contents.

that's the output :)

@legendlife
Copy link
Author

@harrego

/sbin/lyrebird: line 6: cd: /sbin/../share/lyrebird: No such file or directory
python3: can't open file '/home/username/app.py': [Errno 2] No such file or directory

this is the output

@ghost
Copy link

ghost commented Aug 17, 2023

Please could you post the full output? E.g.

Desktop $ lyrebird
Traceback (most recent call last):
  File "/home/harry/Desktop/lyrebird-gtk4/app.py", line 21, in <module>
    app.run(sys.argv)

@soufrabi
Copy link

I believe since it is enough to just add the binary to /usr/bin/lyrebird no need to put anything at /bin/lyrebird

$ /bin/lyrebird
/bin/lyrebird: 6: cd: can't cd to /bin/../share/lyrebird
python3: can't open file '/home/andy/Downloads/app.py': [Errno 2] No such file or directory

@soufrabi
Copy link

soufrabi commented Nov 30, 2023

The problem is in the code

#!/bin/sh

DIR="$(dirname $0)"
# If not in dev environment then set entry point to share location
if [ ! -d "$DIR/app/" ]; then
    cd "$DIR/../share/lyrebird"
fi
exec python3 -B app.py

It makes sense for this file to be in /usr/share/lyrebird
if it is in /bin/lyrebird it won't find anything useful in /share

@legendlife
Copy link
Author

legendlife commented Dec 1, 2023

The problem is in the code

#!/bin/sh

DIR="$(dirname $0)"
# If not in dev environment then set entry point to share location
if [ ! -d "$DIR/app/" ]; then
    cd "$DIR/../share/lyrebird"
fi
exec python3 -B app.py

It makes sense for this file to be in /usr/share/lyrebird if it is in /bin/lyrebird it won't find anything useful in /share

seems like the issue to me. @harrego

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

No branches or pull requests

2 participants