Tiny Core Base > Raspberry Pi
How can I get an apscheduler extension?
Terry_J_C:
--- Quote from: bmarkus on August 21, 2016, 04:15:33 AM ---You are right, it is not easy to understand asyncio at first and need some time spent with experimenting. But once you understand, you will like it for sure :)
--- End quote ---
I won't give up; I just need a glimmer to show up and I'll probably get the idea eventually ;D
--- Quote from: bmarkus on August 21, 2016, 04:15:33 AM ---I will check modules you are missing and if no complication add them to repo.
is your code written in 2.7 or 3.x?
--- End quote ---
I wasn't sure, since I simply modified a grab from the Internet. However, I suspect that it is currently syntactically compatible with either, since both Idle 2 and Idle 3 don't complain when I 'Check Module'. However I do get an error when I try to run it in Idle 3, (can't find module apscheduler), so I guess I should say 2.7. BTW. That is running my code on my Kubuntu system; I haven't done anything with it on the Pi yet, even in Raspbian.
If you can add the apscheduler module, it would be much appreciated.
bill thomson:
Hello Terry,
To get APscheduler running, first install pip:
wget https://bootstrap.pypa.io/get-pip.py
make it executable: chmod 755 get-pip.py
run it: sudo -H ./get-pip.py (I used Python 2.7.12 - i.e. I couldn't get it to work using MicroPython)
Once pip is installed, install APscheduler: (NB: the app name is case sensitive)
sudo pip install APscheduler
pip list to verify installation/version
Regards,
Bill Thomson
bill thomson:
Terry,
I forgot to mention this in my last post...
Add these two lines to /opt/.filetool
usr/local/bin
usr/local/lib/python2.7/site-packages
Then do a backup.
It's not as clean/quick as an actual extension, but boot time doesn't seem to be affected a great deal.
(backup time is a bit longer, though)
Rich:
Hi bill thomson
--- Quote ---Add these two lines to /opt/.filetool
--- End quote ---
Actually it's /opt/.filetool.lst
--- Quote ---usr/local/bin
--- End quote ---
No, do not backup usr/local/bin. Only backup the files you need, not the entire subdirectory.
bmarkus:
--- Quote from: Rich on September 18, 2016, 12:33:53 AM ---Hi bill thomson
--- Quote ---Add these two lines to /opt/.filetool
--- End quote ---
Actually it's /opt/.filetool.lst
--- Quote ---usr/local/bin
--- End quote ---
No, do not backup usr/local/bin. Only backup the files you need, not the entire subdirectory.
--- End quote ---
Nor the site-packages, it may contain other packages from tcz's.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version