Code Monkey home page Code Monkey logo

Comments (5)

cflavio avatar cflavio commented on July 21, 2024

Hi! Actually, I've never tried to build it on a Raspberry: I apologize for the troubles you're experiencing.

First of all, since you're using Python 3, please use the master branch. I've ported the project to Python 3 only in the master branch: I'll merge master into testing and stable as soon as it becomes stabler. :)

Unfortunately, I can't replicate your issue on my system(s). So, if it doesn't annoy you (otherwise, ignore the following part), I would ask you for more information. Please, could you apply the following patch to the submodule yyagl?

index b719134..520fee8 100644
--- a/build/build.py
+++ b/build/build.py
@@ -9,6 +9,13 @@ def exec_cmd(cmd):
 
 
 def __branch():
+    elements = [
+        exec_cmd('git symbolic-ref HEAD'),
+        exec_cmd('git symbolic-ref HEAD').split('/'),
+        exec_cmd('git symbolic-ref HEAD').split('/')[-1],
+        exec_cmd('git symbolic-ref HEAD').split('/')[-1].strip()]
+    for elm in elements:
+        print(elm, type(elm))
     return exec_cmd('git symbolic-ref HEAD').split('/')[-1].strip()


The error happens in the code that retrieves the current branch's name: I presume that you've a different behaviour on your system. The patch prints some information about the relevant code, here's what happens on my system:

user@host:~/path/to/yorg$ scons lang=1
...
('refs/heads/master\n\n', <type 'str'>)
(['refs', 'heads', 'master\n\n'], <type 'list'>)
('master\n\n', <type 'str'>)
('master', <type 'str'>)
('refs/heads/master\n\n', <type 'str'>)
(['refs', 'heads', 'master\n\n'], <type 'list'>)
('master\n\n', <type 'str'>)
('master', <type 'str'>)

(I've submitted scons lang=1 since it's faster than other build targets). What do you get on your system?

Thank you very much! ^_^

from yorg.

tcdude avatar tcdude commented on July 21, 2024

Here is the output on the Raspberry:

scons: Reading SConscript files ...
b'refs/heads/master\n'
b'' <class 'str'>
["b'refs", 'heads', "master\\n'\nb''"] <class 'list'>
master\n'
b'' <class 'str'>
master\n'
b'' <class 'str'>
b'refs/heads/master\n'
b'' <class 'str'>
["b'refs", 'heads', "master\\n'\nb''"] <class 'list'>
master\n'
b'' <class 'str'>
master\n'
b'' <class 'str'>

hope it helps, but don't fret over it. FWIW I was just trying to see how much Panda the RPi could handle and thought of trying Yorg to see how well it works.

from yorg.

cflavio avatar cflavio commented on July 21, 2024

Hi! Actually, the behaviour is really different, and I can't replicate the issue. :(
I am going to try it on a RPi as soon as I can get it.
Thanks!

from yorg.

tcdude avatar tcdude commented on July 21, 2024

Just a wild guess, but it could maybe have something to do with the Python version that comes with Raspbian. Have you tried this with a Python 3.5 installation on a PC before?

from yorg.

cflavio avatar cflavio commented on July 21, 2024

Hi! Actually, I thought that SCons used virtualenv's Python (which is Py3 on my setup), but it is not true: SCons uses system's Python instead (with default settings). So, actually I was building it with Py2. I should've fixed that, let me know if there are other issues. Thank you so much for reporting that! ^_^

from yorg.

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.