**** BEGIN LOGGING AT Fri Aug 02 03:01:07 2019 Aug 02 12:02:30 Hi Aug 02 14:23:17 zmatt: I tried out the file you shared. It seems to be full of bugs as well, I keep getting syntax errors Aug 02 14:24:40 actually, it's more of the _collections_abc.py file that is full of bugs. I imported it from github Aug 02 15:08:56 bRitch022: it worked perfectly here without having to do anything other than "pip3 install spidev" Aug 02 15:09:02 so I have no idea what you're doing Aug 02 15:13:06 also wtf, _collections_abs.py is a core part of python, if you're having trouble with it then either your system is hosed, or if it's a genuine bug then maybe you just need to update python to the latest version (using apt), one thing you should definitely not do it grab such files from github Aug 02 15:13:16 _collections_abc I mean Aug 02 15:17:29 or you're doing something very wrong, but then I have no idea what Aug 02 17:27:09 Hi Aug 02 17:28:10 I just updated and upgraded my BBB wireless and in that, it asked for robotics set up upgrade and I gave 'yes' command Aug 02 17:28:25 now, it seems, my ADC.setup() is not working Aug 02 17:28:35 ugh, librobotcontrol being annoying Aug 02 17:28:48 it probably modified/replaced your /boot/uEnv.txt Aug 02 17:28:53 it is giving following error..ADC.setup() Aug 02 17:28:55 check if it made a backup of that in /boot ? Aug 02 17:29:53 yes, it asked for replacing the /boot/eEnv.txt, but it also said it will keep old file as /boot/uEnv.back.txt Aug 02 17:31:04 okay, so copy that one back ( sudo cp /boot/uEnv.txt.backup /boot/uEnv.txt ) and reboot (sudo reboot) ? Aug 02 17:33:40 btw if you're upgrading from a very old image, you may want to consider just reflashing to the latest image instead of trying to upgrade the system just using apt... apt won't upgrade everything (e.g. bootloader and default config files). the kernel also isn't upgraded automatically (although you can use apt to upgrade that) Aug 02 17:34:31 Ok, Aug 02 17:36:25 btw, I was using crontab -e for scheduling the python code..now, I would want to run the same code with python3 Aug 02 17:36:56 is it possible to change python to python3 in crontab and does it work fine? Aug 02 17:37:50 why wouldn't it? cron just executes commands, it doesn't care what those commands are Aug 02 17:39:13 (another option for scheduling code to run either at startup, periodically, or based on specific triggers, or to create a systemd service (either as user service for the debian user, or as system service) Aug 02 17:39:18 ) Aug 02 17:40:41 yes..after rebooting, ADC.setup() error has gone..may I know, how to set up using debian user please? Aug 02 17:41:22 set up what? a systemd user service? Aug 02 17:41:36 Thanks for the help zmatt.. Aug 02 17:41:49 yes for the systemd user service Aug 02 17:42:04 do you just want to run the service at boot? Aug 02 17:42:48 yeah..that should be fine..but I also need specific triggering stuff too Aug 02 17:42:56 then be more specific Aug 02 17:43:14 zmatt: the reason I went searching for _collections_abc is because I am getting an ImportError: No module named _collections_abs error Aug 02 17:43:22 bRitch022: from what? Aug 02 17:43:47 from the cloud9 IDE where I am running the python spidev .py program Aug 02 17:44:07 oh I don't know anything about cloud9 and how it might break stuff Aug 02 17:44:28 I'll try running it from the console Aug 02 17:45:14 same error Aug 02 17:45:38 can you share the full output (including the command of how you invoked it) via pastebin.com ? Aug 02 17:45:51 if you don't use the cloud9 directory, where do you store the python files you want to run? Aug 02 17:45:59 your home directory is fine Aug 02 17:46:04 or anywhere else you want Aug 02 17:47:54 https://pastebin.com/1PEeVPaY Aug 02 17:48:01 This is with the file in my home directory Aug 02 17:49:33 pathlib is part of python's standard library Aug 02 17:49:59 chi36: don't send private messages, use the channel. and yeah I was making an example, please have patience Aug 02 17:51:10 bRitch022: be sure to invoke it using python3 (or make the script executable with chmod and just run it directly), not with "python" which (for historical backwards-compatibility reqasons) is unfortunately still an alias for the obsolete python2.7 in debian currently Aug 02 17:52:34 Ahhh, ok that worked, it executed Aug 02 17:52:50 So then I need to make sure that the cloud9 IDE is doing the same Aug 02 17:53:00 PS, I'm using cloud9 because it is native to the BBB Aug 02 17:53:17 it is not "native to", it's just installed by default on the iot and lxqt images Aug 02 17:53:21 I've never used it myself Aug 02 17:53:37 (nor do I have it installed, I start with a leaner image and just install stuff I want) Aug 02 17:53:57 Fair enough, I'll get there, lol Aug 02 17:56:47 hi Aug 02 17:57:42 hey chi Aug 02 17:57:51 chi36: here's an example systemd service file: https://pastebin.com/KXVdTNrL for a system service, https://pastebin.com/uqY2DcGs for a user service Aug 02 18:00:28 Thanks zmatt Aug 02 18:01:45 Also, I was searching for installing libraries from windows laptop using Winscp file transfer..is it possible to install library in BBB by dowloading file in windows laptop? Aug 02 18:02:22 what do you mean by "library" ? you mean debian packages? Aug 02 18:02:59 boz, the bbb wireless seem not catching up wifi properly in my area due to weak signal Aug 02 18:03:39 and I have to move other place everytime, when I want to install packages like matplotlib,numpy etc Aug 02 18:04:50 in principle you can download debian packages, copy them to the bbb, and then install them (with sudo dpkg -i) but it's quite tedious since you would have to manually identify any dependencies the package may need, download all the packages you need, and install them _in the correct order_ Aug 02 18:06:14 make sure the antennas are extended like this: https://photos.app.goo.gl/tgXV8iQo3SQCrmdG8 not folded inwards like this: https://cdn.sparkfun.com//assets/parts/1/2/0/7/6/14162-02.jpg Aug 02 18:07:15 (they're rotated inwards like this just for shipping) Aug 02 18:07:19 Ohh..that make sense..let me try once Aug 02 18:30:40 chi36: I've also just updates my systemd service examples (mostly added more comments) Aug 02 18:37:43 Ok.Thanks.. Aug 02 18:38:31 It seems, the BBB wireless after Antennas are rearranged, getting network from other wifi,but not the one I registered Aug 02 18:38:51 some times it is showing in services, but it is not consistent Aug 02 18:48:09 if having the antennas extended doesn't help, then the wifi signal may just be too weak for the BBBW **** ENDING LOGGING AT Sat Aug 03 02:59:57 2019