Jump to content

chreestopher

Active Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by chreestopher

  1. I was able to get pip instaled, but it was a pain, and i even got pip + a virtual env installed onto my sdcard, but after reflashing the firmware, the virtual env on the sd card broke... as for installing pip, I first used ez-setup.py to install setuptools , then i used get-pip.py with prefix=/sd/python.... or it might have been dest=/sd/python. I had to do this on a fresh pineapple to avoid running out of space, and also I believe i had to manually create a couple directories inside of /sd/python/.../site-packages, which the pip install told me the paths were not there or had improper permissions, so i just manually created them and then it worked. Also, I had a partition on the sd for swap space, not sure if that helped or not, but figured i would mention it. After this, I was able to use virtualenv.py /sd/python/env to create a virtual env with pip at /sd/python/env. this did work great, but after a firmware flash i had essentially a virtualenv which i could use with absolute paths, but could not activate and use. I havent gotten back around to setting it up again, because of the fear of losing my working autossh ... (my relay is a windows machine, and i have to use a separate ssh server and client, so its always a pain getting my keys right, using bitvise ssh server, and openssh from cygwin as a client (couldnt get the cygwin provided ssh server to work)) Let me know if you have any success with this method please. Darren, Seb, I would really love to see a opkg python-pip for the pineapple that makes it easy to get pip installed onto the sd card, or even a way to easily move python onto the sd card entirely I tried using symlinks but it was pretty much a total disaster, not sure why, most likely because im a complete n00b....
  2. on this topic, has anyone figured out how to get pip installed onto SD card, and default your site-packages to the SD card, I was able to do it after several frustrating days, only to find out the pip package i wanted to install (pysnmp) would not install (I guess pyasn1 doesnt like mips?) and then after reflashing firmware, I completely forgot how I was able to install pip... so now I just have to use the python builtins or distutils, but with such low onboard storage, cant really do much until i figure out how to move my python site-packages to the SD... I loathe installing python environments
  3. http://www.weiyun.com/disk/index-en.html has a promotion going where new users get a free 10TB of cloud storage, granted, they are a chinese company.
  4. I just wanted to add to this post , I have a tmobile ZTE mf96 (also refered to as Sonic 2.0) , when I plug it into my pineapple, it shows up as eth1, and just needs me to udhcpc -i eth1 in order to work. However, sometimes the device requires me to login to its management page and click connect in order for it to get internet access. But I would definitely consider this as working "out of the box" and you guys should add it to the wiki as a known out of box working via usb tethering.
  5. I had a really tough time getting pip installed on the pineapple, which I think i have sorted, but now I am having trouble installing some packages, where others work just fine. One that I am really interested in getting installed is PySNMP. Whenever i try to install it, it crashes out while installing the dependency pyasn1 Collecting pyasn1 Exception: Traceback (most recent call last): File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/basecommand.py", line 232, in main status = self.run(options, args) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/commands/install.py", line 339, in run requirement_set.prepare_files(finder) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/req/req_set.py", line 333, in prepare_files upgrade=self.upgrade, File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/index.py", line 305, in find_requirement page = self._get_page(main_index_url, req) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/index.py", line 783, in _get_page return HTMLPage.get_page(link, req, session=self.session) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/index.py", line 872, in get_page "Cache-Control": "max-age=600", File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/requests/sessions.py", line 473, in get return self.request('GET', url, **kwargs) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/download.py", line 365, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/requests/sessions.py", line 461, in request resp = self.send(prep, **send_kwargs) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/requests/sessions.py", line 573, in send r = adapter.send(request, **kwargs) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/cachecontrol/adapter.py", line 36, in send cached_response = self.controller.cached_request(request) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/cachecontrol/controller.py", line 100, in cached_request resp = self.serializer.loads(request, self.cache.get(cache_url)) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/cachecontrol/serialize.py", line 62, in loads return getattr(self, "_loads_v{0}".format(ver))(request, data) File "/sd/python/env/lib/python2.7/site-packages/pip-6.0.6-py2.7.egg/pip/_vendor/cachecontrol/serialize.py", line 76, in _loads_v1 cached = pickle.loads(data) EOFError Any advise would be great, especially if any of you have been able to install pyasn1 on the pineapple mark 5, and extra especially if you have been able to install PySNMP or any other SNMP library... Im really surprised I havent seen much talk about snmp relating to the pineapple, seems like a great route to get some recon info.... Even if you can just help me figure out what this traceback is telling me, id really appreciate any input...
  6. you ever lost any time to a greek question mark in place of a semi colon in a csharp app? .... thats the worst thing ever..., thats one way to force people to not just copy paste lol...
  7. regarding the API documentation, I have been experimenting with creating infusions, and using the code example for noficiations, I cant seem to get it to work, even directly copying the example and editing with my infusion's name doesnt seem to work ... I would really appreciate it if someone could help me figure out why its not working... edit, referring to the javascript api. edit2: I think i figured out the problem .... function refreshSmall(); { refreshSmallTile(ExampleInfusion); notify('You used the Refresh button!'); } should be function refreshSmall() { refreshSmallTile(ExampleInfusion); notify('You used the Refresh button!'); } I made the change and got it to work...
  8. where is the documentation? the link brings me to a 404 nvm, found it ... for anyone else looking : http://wiki.wifipineapple.com/#!api.md
  9. I have installed this infusion on my mk5 and the large tile formatting is messed up and the buttons dont function... I cant get the large tile to load correctly, I would be glad to try to help get it fixed, I did find the cli executable and have been able to configure and test functionality with cli , but still cant seem to get the commands to work, or the device to even reply to my texts. great idea though and i cant wait till its fixed! woopsie, should have checked the end of the thread first...
  10. it was actually a loose adapter on the wall plug... i had to pop it off with a flat head screwdriver and then properly insert it and its working fine now...
  11. rugged, I am getting the same error, I ssh into the pineapple and can start and stop the gps logger via the sh scripts, but i get a CSRF error when I try to use the buttons from the tile... Im sure this is a simple fix, I just dont know how to fix it, would be great to get it working via the web ui though, so I dont have to ssh in to start and stop
  12. appears to have been a problem with the walwart power adapter... hooked up the pineapple juice and its working fine... ill just have to figure out whats going on with the power adapter, as i would prefer to only run on battery when i need to.
  13. Just recieved my pineapple mk5, configured internet sharing with my wireless as internet facing, setup ip info in my ethernet connection , windows 7 computer, plugin pineapple to computer, plugin pineapple to power, my ethernet adapter flickers between network cable unplugged and identifying... for the first 30 seconds or so of the boot process, after which the pineapple has green and blue leds on steady, and ethernet adapter on computer shows network cable unplugged... when i recieved the pineapple dip switch configuration was 11111, so i left it that way since there were no instructions regarding dip switch config for first boot. I have since tried placing the dips in 10011, and 11110, rebooting, waiting 10 minutes each time, still "Network cable unplugged" on my ethernet adapter... What can I try to do to fix this? is this a common issue? I tried searching but couldnt find any info regarding computer displaying network cable unplugged when connected to pineapple. Any help would be greatly apreciated
×
×
  • Create New...