Giter Club home page Giter Club logo

Comments (4)

jwcooper avatar jwcooper commented on August 27, 2024

I believe you can just run this command to install the latest distribute:

easy_install -U distribute

from adafruit-beaglebone-io-python.

maindrive avatar maindrive commented on August 27, 2024

I still get errors!
 
ubuntu@arm:$ sudo easy_install -U distributeSearching for distributeReading http://pypi.python.org/simple/distribute/Best match: distribute 0.7.3Downloading https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7b180af57af8a0cc0cf5b4aProcessing distribute-0.7.3.zipWriting /tmp/easy_install-IPNmto/distribute-0.7.3/setup.cfgRunning distribute-0.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IPNmto/distribute-0.7.3/egg-dist-tmp-q9KyUEwarning: install_lib: 'build/lib.linux-armv7l-2.7' does not exist -- no Python modules to install
Adding distribute 0.7.3 to easy-install.pth file
Installed /usr/local/lib/python2.7/dist-packages/distribute-0.7.3-py2.7.eggProcessing dependencies for distributeSearching for setuptools>=0.7Reading http://pypi.python.org/simple/setuptools/Reading http://peak.telecommunity.com/snapshots/Reading https://pypi.python.org/pypi/setuptoolsBest match: setuptools 2.0Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz#md5=887cdf417bc5d25326c66bb98c0dd160Processing setuptools-2.0.tar.gzWriting /tmp/easy_install-Mn0NBJ/setuptools-2.0/setup.cfgRunning setuptools-2.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Mn0NBJ/setuptools-2.0/egg-dist-tmp-nzeurQAdding setuptools 2.0 to easy-install.pth fileInstalling easy_install script to /usr/local/binInstalling easy_install-2.7 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/setuptools-2.0-py2.7.eggFinished processing dependencies for distributeubuntu@arm:
$ sudo pip install Adafruit_BBIODownloading/unpacking Adafruit-BBIO  Downloading Adafruit_BBIO-0.0.19.tar.gz  Running setup.py egg_info for package Adafruit-BBIO
Installing collected packages: Adafruit-BBIO  Running setup.py install for Adafruit-BBIO    building 'Adafruit_BBIO.GPIO' extension    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_gpio.c -o bu                    ild/temp.linux-armv7l-2.7/source/py_gpio.o    source/py_gpio.c:36:18: warning: ‘bb_revision’ defined but not used [-Wunused-variable]     static PyObject bb_revision;                      ^    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/event_gpio.c -o                     build/temp.linux-armv7l-2.7/source/event_gpio.o    source/event_gpio.c: In function ‘gpio_export’:    source/event_gpio.c:87:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]         write(fd, str_gpio, len);              ^    source/event_gpio.c: In function ‘gpio_unexport’:    source/event_gpio.c:195:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]         write(fd, str_gpio, len);              ^    source/event_gpio.c: In function ‘gpio_set_direction’:    source/event_gpio.c:235:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]             write(fd, direction, strlen(direction));                  ^    source/event_gpio.c: In function ‘gpio_get_direction’:    source/event_gpio.c:251:9: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]         read(fd, &direction, sizeof(direction) - 1);             ^    source/event_gpio.c: In function ‘gpio_set_value’:    source/event_gpio.c:279:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]         write(fd, vstr, strlen(vstr));              ^    source/event_gpio.c: In function ‘gpio_get_value’:    source/event_gpio.c:296:9: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]         read(fd, &ch, sizeof(ch));             ^    source/event_gpio.c: In function ‘gpio_set_edge’:    source/event_gpio.c:317:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]             write(fd, stredge[edge], strlen(stredge[edge]) + 1);                  ^    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/constants.c -o                     build/temp.linux-armv7l-2.7/source/constants.o    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o bui                    ld/temp.linux-armv7l-2.7/source/common.o    source/common.c: In function ‘load_device_tree’:    source/common.c:360:5: warning: format not a string literal and no format arguments [-Wformat-security]         fprintf(file, name);         ^    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wa                    ll -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/source/py_gpi                    o.o build/temp.linux-armv7l-2.7/source/event_gpio.o build/temp.linux-armv7l-2.7/source/constants.o build/temp.linux-armv7l-2.7/source/common.o -o build/lib.linux-ar                    mv7l-2.7/Adafruit_BBIO/GPIO.so    building 'Adafruit_BBIO.PWM' extension    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_pwm.c -o bui                    ld/temp.linux-armv7l-2.7/source/py_pwm.o    source/py_pwm.c:29:12: warning: ‘init_module’ defined but not used [-Wunused-function]     static int init_module(void)                ^    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/c_pwm.c -o buil                    d/temp.linux-armv7l-2.7/source/c_pwm.o    source/c_pwm.c: In function ‘pwm_set_frequency’:    source/c_pwm.c:101:14: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]             write(pwm->period_fd, buffer, len);                  ^    source/c_pwm.c: In function ‘pwm_set_polarity’:    source/c_pwm.c:119:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]         write(pwm->polarity_fd, buffer, len);              ^    source/c_pwm.c: In function ‘pwm_set_duty_cycle’:    source/c_pwm.c:141:10: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]         write(pwm->duty_fd, buffer, len);              ^    source/c_pwm.c: In function ‘pwm_start’:    source/c_pwm.c:205:17: warning: array subscript is above array bounds [-Warray-bounds]         new_pwm->key[KEYLEN+1] = '\0'; / terminate string */                     ^    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/constants.c -o                     build/temp.linux-armv7l-2.7/source/constants.o    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o bui                    ld/temp.linux-armv7l-2.7/source/common.o    source/common.c: In function ‘load_device_tree’:    source/common.c:360:5: warning: format not a string literal and no format arguments [-Wformat-security]         fprintf(file, name);         ^    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wa                    ll -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/source/py_pwm                    .o build/temp.linux-armv7l-2.7/source/c_pwm.o build/temp.linux-armv7l-2.7/source/constants.o build/temp.linux-armv7l-2.7/source/common.o -o build/lib.linux-armv7l-2                    .7/Adafruit_BBIO/PWM.so    building 'Adafruit_BBIO.ADC' extension    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_adc.c -o bui                    ld/temp.linux-armv7l-2.7/source/py_adc.o    source/py_adc.c:30:18: warning: ‘py_cleanup’ defined but not used [-Wunused-function]     static PyObject *py_cleanup(PyObject *self, PyObject *args)                      ^    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/c_adc.c -o buil                    d/temp.linux-armv7l-2.7/source/c_adc.o    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/constants.c -o                     build/temp.linux-armv7l-2.7/source/constants.o    arm-linux-gnueabihf-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o bui                    ld/temp.linux-armv7l-2.7/source/common.o    source/common.c: In function ‘load_device_tree’:    source/common.c:360:5: warning: format not a string literal and no format arguments [-Wformat-security]         fprintf(file, name);         ^    arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wa                    ll -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-armv7l-2.7/source/py_adc                    .o build/temp.linux-armv7l-2.7/source/c_adc.o build/temp.linux-armv7l-2.7/source/constants.o build/temp.linux-armv7l-2.7/source/common.o -o build/lib.linux-armv7l-2                    .7/Adafruit_BBIO/ADC.so 
 

-------- Original Message --------Subject: Re: [adafruit-beaglebone-io-python] ubuntu installAdafruit_BBIO error (#50)From: Justin Cooper [email protected]: Mon, December 09, 2013 10:14 pmTo: adafruit/adafruit-beaglebone-io-pythonadafruit-beaglebone-io-python@noreply.github.comCc: maindrive [email protected] believe you can just run this command to install the latest distribute:easy_install -U distribute

—Reply to this email directly or view it on GitHub.

from adafruit-beaglebone-io-python.

jwcooper avatar jwcooper commented on August 27, 2024

Have you followed all of the steps from the readme?

https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/README.rst

Look for the Ubuntu section using pip.

from adafruit-beaglebone-io-python.

maindrive avatar maindrive commented on August 27, 2024

Yes, I have, both the auto and manual install and using the easy_install -U distribute  and with out.
 
Linux version 3.8.13-bone30 (root@imx6q-sabrelite-1gb-1) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu8) )
 
 

-------- Original Message --------Subject: Re: [adafruit-beaglebone-io-python] ubuntu installAdafruit_BBIO error (#50)From: Justin Cooper [email protected]: Tue, December 10, 2013 8:36 amTo: adafruit/adafruit-beaglebone-io-pythonadafruit-beaglebone-io-python@noreply.github.comCc: maindrive [email protected] you followed all of the steps from the readme?
https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/README.rst
Look for the Ubuntu section using pip.
—Reply to this email directly or view it on GitHub.

from adafruit-beaglebone-io-python.

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.