Git Product home page Git Product logo

Comments (7)

harrego avatar harrego commented on May 28, 2024

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

from lyrebird.

legendlife avatar legendlife commented on May 28, 2024

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

that's the output :)

from lyrebird.

legendlife avatar legendlife commented on May 28, 2024

@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

from lyrebird.

harrego avatar harrego commented on May 28, 2024

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)

from lyrebird.

soufrabi avatar soufrabi commented on May 28, 2024

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

from lyrebird.

soufrabi avatar soufrabi commented on May 28, 2024

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

from lyrebird.

legendlife avatar legendlife commented on May 28, 2024

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

from lyrebird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.