Running hubs on Windows/Macs

38 views
Skip to first unread message

Joonas himmanen

unread,
Apr 8, 2020, 5:01:17 PM4/8/20
to Rhythm Badges
Hello,
I have been setting up the badges for our University but due to the current situation we are unable to use them.
In one of our meetings someone suggested that we could use the badges in our homes for the audio data. This would mean that the computer each one uses would have to act as the hub as getting that many raspberry pi's is not really feasible. In my opinion this is not a great idea as there are better ways to get audio data but for now we will try this.
In order to achieve this, what would you suggest? The problem is that it has to be somewhat simple to create each hub as some of the users have even less know-how than me (I am rather new to Python, Docker etc so what I am asking might be obvious for some but not so obvious for me).

Oren Lederman

unread,
Apr 8, 2020, 6:58:31 PM4/8/20
to Joonas himmanen, Rhythm Badges
Hi Joonas, 

Running the hub in Mac might be doable, but I haven't tried it in a while. I think that my students got it to work before, but I don't have a Mac so I can't really help with that.

As for windows... I don't think it would work. If I remember correctly, the hub needs some kernel drivers that do not exist there. 


Oren

--
You received this message because you are subscribed to the Google Groups "Rhythm Badges" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhythm-badge...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rhythm-badges/f1c1f31b-f6b6-4616-96f6-e5556f1dd2d1%40googlegroups.com.

Joonas himmanen

unread,
Apr 13, 2020, 5:52:44 PM4/13/20
to Rhythm Badges
I was afraid of that. I assume it would work through a Raspberry Pi emulator on Windows?

Joonas himmanen

unread,
Apr 14, 2020, 2:55:10 AM4/14/20
to Rhythm Badges
I also have a problem when trying to run "docker-compose -f dev.yml run django python manage.py migrate"
I get an error that I just can't figure out:

ImportError: /usr/local/lib/python2.7/site-packages/psycopg2/.libs/./libresolv-2-c4c53def.5.so: symbol __res_maybe_init version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Postgres is unavailable - sleeping



I assumed it had to do with wrong version of psycopg but nothing seems to help

Oren Lederman

unread,
Apr 17, 2020, 11:30:42 AM4/17/20
to Joonas himmanen, Rhythm Badges
I really don't know. Might have something to do with the raspi emulator. Plus, some of this code is several years old, so there might be dependencies issues.
Have you tried running this on a linux machine? 

--
You received this message because you are subscribed to the Google Groups "Rhythm Badges" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhythm-badge...@googlegroups.com.

Joonas himmanen

unread,
Apr 17, 2020, 11:37:06 AM4/17/20
to Rhythm Badges
Haven't tried the emulator yet so this is on Ubuntu. I will try a clean install just in case I have wrong versions of files or something

Oren Lederman

unread,
Apr 17, 2020, 11:57:40 AM4/17/20
to Joonas himmanen, Rhythm Badges
I only had time for a quick read, but it does appears to be a dependency issue. 
Try changing the pyscopg2 version in requirements/base.txt to the following, and then rebuild:
pyscopg2==2.7.3.2

On Fri, Apr 17, 2020 at 8:37 AM Joonas himmanen <jope...@hotmail.com> wrote:
Haven't tried the emulator yet so this is on Ubuntu. I will try a clean install just in case I have wrong versions of files or something

--
You received this message because you are subscribed to the Google Groups "Rhythm Badges" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhythm-badge...@googlegroups.com.

Joonas himmanen

unread,
Apr 17, 2020, 12:49:04 PM4/17/20
to Rhythm Badges
Half way there as that did fix the psycopg2 error but I still get the "Postgres is unavailable - sleeping" message.



perjantai 17. huhtikuuta 2020 18.57.40 UTC+3 Oren Lederman kirjoitti:
I only had time for a quick read, but it does appears to be a dependency issue. 
Try changing the pyscopg2 version in requirements/base.txt to the following, and then rebuild:
pyscopg2==2.7.3.2

On Fri, Apr 17, 2020 at 8:37 AM Joonas himmanen <jope...@hotmail.com> wrote:
Haven't tried the emulator yet so this is on Ubuntu. I will try a clean install just in case I have wrong versions of files or something

--
You received this message because you are subscribed to the Google Groups "Rhythm Badges" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhythm...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages