{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/86","repository_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python","labels_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/86/comments","events_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/86/events","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/86","id":121098281,"number":86,"title":"Inconsistent naming of `Adafruit_BBIO` module","user":{"login":"Mausy5043","id":9638943,"avatar_url":"https://avatars.githubusercontent.com/u/9638943?v=3","gravatar_id":"","url":"https://api.github.com/users/Mausy5043","html_url":"https://github.com/Mausy5043","followers_url":"https://api.github.com/users/Mausy5043/followers","following_url":"https://api.github.com/users/Mausy5043/following{/other_user}","gists_url":"https://api.github.com/users/Mausy5043/gists{/gist_id}","starred_url":"https://api.github.com/users/Mausy5043/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mausy5043/subscriptions","organizations_url":"https://api.github.com/users/Mausy5043/orgs","repos_url":"https://api.github.com/users/Mausy5043/repos","events_url":"https://api.github.com/users/Mausy5043/events{/privacy}","received_events_url":"https://api.github.com/users/Mausy5043/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-12-08T21:02:17Z","updated_at":"2016-08-20T02:13:47Z","closed_at":null,"body":"I'm using a BeagleBone Black with pre-installed Debian wheezy.\r\nThe problem I had was that in Python I could not import Adafruit_BBIO:\r\n```\r\n$ python\r\nPython 2.7.3 (default, Mar 14 2014, 17:55:54)\r\n[GCC 4.6.3] on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import Adafruit_BBIO.GPIO as GPIO\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nImportError: No module named Adafruit_BBIO.GPIO\r\n>>> import Adafruit-BBIO.GPIO as GPIO\r\n  File \"<stdin>\", line 1\r\n    import Adafruit-BBIO.GPIO as GPIO\r\n                   ^\r\nSyntaxError: invalid syntax\r\n```\r\nBut `pip` told me it was there:\r\n```\r\n$ sudo pip freeze\r\nAdafruit-BBIO==0.0.30\r\nPyBBIO==0.10\r\nargparse==1.2.1\r\ndistribute==0.7.3\r\ngyp==0.1\r\nnumpy==1.6.2\r\npyserial==2.7\r\nrequests==2.8.1\r\nserbus==1.0.4\r\nsmbus==1.1\r\nurwid==1.0.1\r\nwicd==1.7.2.4\r\nwsgiref==0.1.2\r\n```\r\n**note the minus-sign in the module name i.s.o. an underscore**\r\n\r\nSo, I uninstalled the module...\r\n```\r\n$ sudo pip uninstall Adafruit-BBIO\r\nUninstalling Adafruit-BBIO:\r\nProceed (y/n)? y\r\n  Successfully uninstalled Adafruit-BBIO\r\n```\r\n... and had to `rm -rf /usr/local/lib/python2.7/dist-packages/Adafruit_BBIO` and `sudo rm -rf /usr/local/lib/python2.7/dist-packages/Adafruit_BBIO` to get rid of it.\r\n\r\nThen I re-installed the module:\r\n```\r\n$ sudo pip  install --upgrade Adafruit_BBIO\r\nDownloading/unpacking Adafruit-BBIO\r\n  Downloading Adafruit_BBIO-0.0.30.tar.gz\r\n  Running setup.py egg_info for package Adafruit-BBIO\r\n\r\nInstalling collected packages: Adafruit-BBIO\r\n  Running setup.py install for Adafruit-BBIO\r\n    building 'Adafruit_BBIO.GPIO' extension\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_gpio.c -o build/temp.linux-armv7l-2.7/source/py_gpio.o -Wno-format-security\r\n    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 -Wno-format-security\r\n    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 -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o build/temp.linux-armv7l-2.7/source/common.o -Wno-format-security\r\n    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-armv7l-2.7/source/py_gpio.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-armv7l-2.7/Adafruit_BBIO/GPIO.so\r\n    building 'Adafruit_BBIO.PWM' extension\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_pwm.c -o build/temp.linux-armv7l-2.7/source/py_pwm.o -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/c_pwm.c -o build/temp.linux-armv7l-2.7/source/c_pwm.o -Wno-format-security\r\n    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 -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o build/temp.linux-armv7l-2.7/source/common.o -Wno-format-security\r\n    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro 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\r\n    building 'Adafruit_BBIO.ADC' extension\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_adc.c -o build/temp.linux-armv7l-2.7/source/py_adc.o -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/c_adc.c -o build/temp.linux-armv7l-2.7/source/c_adc.o -Wno-format-security\r\n    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 -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o build/temp.linux-armv7l-2.7/source/common.o -Wno-format-security\r\n    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro 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\r\n    building 'Adafruit_BBIO.SPI' extension\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/spimodule.c -o build/temp.linux-armv7l-2.7/source/spimodule.o -Wno-format-security\r\n    source/spimodule.c:39:0: warning: \"PyLong_Check\" redefined [enabled by default]\r\n    /usr/include/python2.7/longobject.h:14:0: note: this is the location of the previous definition\r\n    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 -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o build/temp.linux-armv7l-2.7/source/common.o -Wno-format-security\r\n    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-armv7l-2.7/source/spimodule.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/SPI.so\r\n    building 'Adafruit_BBIO.UART' extension\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_uart.c -o build/temp.linux-armv7l-2.7/source/py_uart.o -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/c_uart.c -o build/temp.linux-armv7l-2.7/source/c_uart.o -Wno-format-security\r\n    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 -Wno-format-security\r\n    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/common.c -o build/temp.linux-armv7l-2.7/source/common.o -Wno-format-security\r\n    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-armv7l-2.7/source/py_uart.o build/temp.linux-armv7l-2.7/source/c_uart.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/UART.so\r\n\r\nSuccessfully installed Adafruit-BBIO\r\nCleaning up...\r\n```\r\nThings are working fine now. However, notice in the above output that there is an inconsistency in the naming of the module. Both `Adafruit-BBIO` and `Adafruit_BBIO` are used. Could this have caused the \"misspelling\" of the module on my system?"},"comment":{"url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/comments/241172679","html_url":"https://github.com/adafruit/adafruit-beaglebone-io-python/issues/86#issuecomment-241172679","issue_url":"https://api.github.com/repos/adafruit/adafruit-beaglebone-io-python/issues/86","id":241172679,"user":{"login":"pdp7","id":313864,"avatar_url":"https://avatars.githubusercontent.com/u/313864?v=3","gravatar_id":"","url":"https://api.github.com/users/pdp7","html_url":"https://github.com/pdp7","followers_url":"https://api.github.com/users/pdp7/followers","following_url":"https://api.github.com/users/pdp7/following{/other_user}","gists_url":"https://api.github.com/users/pdp7/gists{/gist_id}","starred_url":"https://api.github.com/users/pdp7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdp7/subscriptions","organizations_url":"https://api.github.com/users/pdp7/orgs","repos_url":"https://api.github.com/users/pdp7/repos","events_url":"https://api.github.com/users/pdp7/events{/privacy}","received_events_url":"https://api.github.com/users/pdp7/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T02:13:46Z","updated_at":"2016-08-20T02:13:46Z","body":"@Mausy5043 is this still an issue?  Maybe related to #107?"}}
{"actor":{"display_login":"pdp7"}}