Giter VIP home page Giter VIP logo

Comments (8)

srevinsaju avatar srevinsaju commented on May 21, 2024 1

@Strubbl, thanks for the info! Me too, I am neither a python expert, a grade 11 student.
So I learnt a bit today though :).

Seems like I have to update the README.md and reference this issue. Thanks 😊

from guiscrcpy.

Strubbl avatar Strubbl commented on May 21, 2024

Which is your default python version?
You can find out with python --version

your issue looks like it's python2

from guiscrcpy.

linuxundich avatar linuxundich commented on May 21, 2024

Yeah, Python2...

$ python --version
Python 2.7.16

from guiscrcpy.

Strubbl avatar Strubbl commented on May 21, 2024

guiscrcpy needs python3. I do not know if it can be required by the AUR package somehow.

$ cat /usr/bin/guiscrcpy 
#!/bin/bash
python /opt/guiscrcpy/__main__.py

So, if you have python3 installed and start guiscrcrpy with python3 /opt/guiscrcpy/__main__.py, it should work.

from guiscrcpy.

linuxundich avatar linuxundich commented on May 21, 2024

Thanks for your help! I had a Python2-Binary in my $PATH. Don't remember why, but I deleted it and rebuilt the program. It "works" now... in other words: it crashes, but with another error. I'll open another issue

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 21, 2024

Why does the binary file not work, even though you have python 2, python3 lib.so libraries are also embedded, so that you can run this anywhere.
(I) did you try 19.04 v or 18.04 v . Guiscrcpy is packaged to support older OSes (those released before Ubuntu 19.04) are released as 18.04, please check that. @logix2, gave an issue (Binary not working in Ubuntu)

(II) can you give the output while running binary?

@Strubbl, how did you understand it's a python2 output, hatsoff to your skills, I am a newbie :)

from guiscrcpy.

linuxundich avatar linuxundich commented on May 21, 2024

@Strubbl The second time I started guiscrcpy everything works. Will play with your tool for a while 👍

from guiscrcpy.

Strubbl avatar Strubbl commented on May 21, 2024

The binary file did not work, because it calls python only - no specific version. Due to the changed linuxundich's $PATH variable the python command pointed to a python2 binary.

Usually in a default Archlinux installation, python shall point to python3, e.g.:

$ type python
python is /usr/bin/python
$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Jul 16 09:12 /usr/bin/python -> python3*

I am no python expert, but i googled, and saw the FileNotFoundError was not part of python2.

from guiscrcpy.

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.