Vladi Geschrieben January 12, 2017 at 19:53 Geschrieben January 12, 2017 at 19:53 Hello! I have problem with installing Brick Viewer 2.3.6 on my Centos 6.8 i686 box. The brick daemon was compiled fine, only the init script not fully compatibil with red hat like system. Anyway, it starts, run and stop. Here is the terminal out: [root@t60 ~]# service brickd start /etc/init.d/brickd: line 44: log_daemon_msg: command not found /etc/init.d/brickd: line 46: log_end_msg: command not found [root@t60 ~]# ps aux | grep brickd root 4901 0.0 0.0 2432 752 ? S 20:46 0:00 /usr/bin/brickd --daemon root 4904 0.0 0.0 4444 776 pts/3 S+ 20:46 0:00 grep brickd [root@t60 ~]# service brickd stop /etc/init.d/brickd: line 49: log_daemon_msg: command not found /etc/init.d/brickd: line 51: log_end_msg: command not found [root@t60 ~]# ps aux | grep brickd root 4927 0.0 0.0 4444 776 pts/3 S+ 20:46 0:00 grep brickd [root@t60 ~]# But I cant compile the brick viewer. I think, i have all the dependeces. I have 2.6 python installed. Here the output: [oleg@t60 src]$ python build_all_ui.py building /home/oleg/brick/brickv-2.3.6/src/brickv building /home/oleg/brick/brickv-2.3.6/src/brickv/data_logger building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/servo building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/dc building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/oled_64x48 building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/gps building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/led_strip building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/load_cell building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/silent_stepper building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/io4 building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/stepper building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/master building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/industrial_quad_relay building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/rgb_led building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/industrial_digital_in_4 building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/remote_switch building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/io16 building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/dual_button building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/industrial_analog_out building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/voltage_current building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/oled_128x64 building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/nfc_rfid building /home/oleg/brick/brickv-2.3.6/src/brickv/plugin_system/plugins/red Adding RED Brick scripts: sh: pyminifier: parancs nem található ----> Could not minify scripts, please install https://github.com/liftoff/pyminifier if you want to make a release version. ----> I will use the non-minified versions for now. 0) settings_network_wireless_scan 1) program_logs_list 2) export ETC 43) settings_fs_expand 44) gcc_versions Generating mobile internet serviceprovider data: [*] Downloading provider database [*] Processing provider dict [*] Processing country dict ----> Error occurred: _ElementInterface instance has no attribute 'iter' [oleg@t60 src]$ Any help would be nice. Zitieren
photron Geschrieben January 13, 2017 at 10:06 Geschrieben January 13, 2017 at 10:06 log_daemon_msg and log_end_msg seem to be Debian specify. Please test the attached version of the init script, that only the LSB defined init script helper functions. The brickv problem: the iter function was added Python 2.7. Change line 87 in src/brickv/plugin_system/plugins/red/build_serviceproviders.py from for entry_country in root_country.iter('iso_3166_entry'): to for entry_country in root_country.getiterator('iso_3166_entry'): to avoid this problem.brickd Zitieren
Vladi Geschrieben January 13, 2017 at 20:23 Autor Geschrieben January 13, 2017 at 20:23 Thaks photron! Both working now. Full story: put your init script here: /etc/init.d set file permissions: root:root and 775 [root@t60 init.d]# service brickd start Starting Brick Daemon: brickd. [root@t60 init.d]# service brickd status brickd is running [ OK ] [root@t60 init.d]# service brickd stop Stopping Brick Daemon: brickd. Second: I inserted the line, compiled fine. But I also needed a few dependences: yum install python-setuptools easy_install pyserial yum install python-importlib Thanks again man! Zitieren
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.