#linuxcnc-devel | Logs for 2013-11-17

[00:28:02] <KGB-linuxcnc> 03Sebastian Kuzminsky 05master 442c364 06linuxcnc 10docs/src/Submakefile 10docs/src/index.tmpl Merge remote-tracking branch 'origin/v2.5_branch' * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=442c364
[12:21:57] <ju-emb> does python has any special wishes to access a file?
[12:22:01] <ju-emb> I/O error(2): No such file or directory
[12:22:03] <ju-emb> Cannot read ADC input: ['/sys/devices/ocp.2/44e0d000.tscadc/tiadc/iio:device0/in_voltage1_raw']
[12:22:11] <ju-emb> -rw-r--r-- 1 root root 4096 Nov 17 05:44 /sys/devices/ocp.2/44e0d000.tscadc/tiadc/iio:device0/in_voltage1_raw
[12:22:54] <ju-emb> last line is the output from ls -l on that file
[12:25:22] <ju-emb> cat /sys/devices/ocp.2/44e0d000.tscadc/tiadc/iio:device0/in_voltage1_raw
[12:25:24] <ju-emb> 3350
[12:31:18] <micges> ju-emb: pastebin.com that part of code
[13:39:21] <ju-emb> http://pastebin.com/8SSAnWh4
[13:41:00] <ju-emb> sorry, that's not the right code
[13:42:43] <ju-emb> that's the right one
[13:42:46] <ju-emb> http://pastebin.com/FM40Tjzn
[13:46:32] <mhaberler> ju-emb: have a look at https://github.com/cdsteinkuehler/linuxcnc/blob/MachineKit-ubc/configs/ARM/BeagleBone/BeBoPr-Bridge/ReadTemp.py
[13:47:00] <mhaberler> no need to rediscover ;
[13:47:05] <mhaberler> just copy ;)
[13:47:59] <ju-emb> there I took the code from, but I like to eliminate that fancy math and replace it with some more flexible
[13:48:42] <jepler> Cannot read ADC input: ['/sys/devices/ocp.2/44e0d000.tscadc/tiadc/iio:device0/in_voltage1_raw']
[13:48:56] <jepler> once you understand why this message has brackets and apostrophes in it, you'll be able to correct your code
[13:49:12] <jepler> why are you calling str() on line 6?
[13:49:39] <jepler> >>> glob.glob("/etc/motd")
[13:49:39] <jepler> ['/etc/motd']
[13:49:54] <jepler> the result of glob is a list, which you inappropriately convert to a string with str, giving you a string that starts with an open bracket
[13:51:30] <ju-emb> I just get started with python and some stuff there is still mystery for me.
[13:57:10] <ju-emb> jepler: that was the hint, now it runs
[13:57:12] <ju-emb> thank's
[16:12:03] <cradek> andypugh: did you see my comment http://sourceforge.net/p/emc/bugs/339/#e85f
[16:12:55] <andypugh> Err, no. I probably don't get notifications
[16:14:15] <andypugh> Ah, looking at it, yes, I did see that. Then I forgot all about that issue.
[16:20:57] <andypugh> I am afraid my brain is full tonight, I am trying to pick the tool-table work back up, which first requires me to find where I put all the code.
[16:21:16] <andypugh> And remind myself what I was doing.
[16:22:28] <cradek> I know how you feel. my brain seems to fill up faster and faster.
[17:32:10] <KGB-linuxcnc> 03Sebastian Kuzminsky 05master 3def129 06linuxcnc 10(10 files) docs: rebrand manpages * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=3def129