daniels
New Member
Posts: 4
Raspberry Pi: Yes
|
Post by daniels on May 22, 2017 20:24:50 GMT -8
Just printed the case and have connected all the parts (love the fact that you used grove connectors everywhere!) and had it put together in less than an hour including flashing the SD card for a clean slate on my pi. However after following the guide to get all of the software installed, I have installed I2C and see the same output as the demo describes, however I get the following error when running the testAll.py script so of course wanted to stop there before damaging anything.  I've also done a fresh git pull just to make sure I didn't miss anything, but it's all up to date.
|
|
|
Post by SDL on May 23, 2017 6:59:25 GMT -8
Daniels,
First of all, you won't damage anything if you continue!
I see what your problem is right off the bat. From the README.md:
sudo apt-get install python-pip sudo pip install pil
sudo pip install --upgrade setuptools pip
This should do it!
BP
|
|
daniels
New Member
Posts: 4
Raspberry Pi: Yes
|
Post by daniels on May 26, 2017 14:48:37 GMT -8
I followed the readme.md to the letter, and have the same result after running them again:  ------------------------- Edit ------------------------- I've gone so far as to re-flash the SD card (using raspbian 4-10-17 lite on a headless setup) and started over on the readme.md file on github, followed it to the letter, with the same results.  So still not working when following the guide. Thoughts? Should I not be doing this on the lite version of raspbian?
|
|
|
Post by SDL on May 27, 2017 12:51:24 GMT -8
Daniels,
Phhhttt. I think this mistake is on me. I typed uninstall and not install. Try this:
sudo apt-get install python-pip sudo apt-get install python-pil (updated June 3, 2017 - with correct install command)
Boy, I wonder how many other people I screwed up with this. Sorry about that. No beer for me.
BP
|
|
daniels
New Member
Posts: 4
Raspberry Pi: Yes
|
Post by daniels on May 28, 2017 13:58:19 GMT -8
No worries I do that all the time! However to be a further thorn in your side.... I an now returned with "No distributions at all found for pil" Perhaps it's under a different name?  And the output from the log: [email protected]:~/SDL_Pi_SmartPlantPi $ sudo su
[email protected]:/home/pi/SDL_Pi_SmartPlantPi# cat /root/.pip/pip.log
------------------------------------------------------------
/usr/bin/pip run on Sun May 28 14:56:39 2017
Downloading/unpacking pil
Getting page https://pypi.python.org/simple/pil/
URLs to search for versions for pil:
* https://pypi.python.org/simple/pil/
Analyzing links from page https://pypi.python.org/simple/pil/
Could not find any downloads that satisfy the requirement pil
Cleaning up...
No distributions at all found for pil
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pil
[email protected]:/home/pi/SDL_Pi_SmartPlantPi#
I've also tried just sudo easy_install pillow which succeeds, but the testAll.py still errors out, and of course I'm not sure it's the right package being installed either.
|
|
|
Post by SDL on May 30, 2017 9:23:47 GMT -8
Daniels,
I'm going to have to wait until I get to a Raspberry Pi to figure this out. I'll be back from traveling on Thursday and will check this out.
Please ping me then!
BP
|
|
rad
New Member
Posts: 5
|
Post by rad on Jun 1, 2017 17:01:54 GMT -8
Daniels,
I think you need to install python-pil
sudo apt-get install python-pil
-- rad
|
|
|
Post by SDL on Jun 3, 2017 5:13:22 GMT -8
Thank you Rad for your suggestion. When I finally asked John about it he didn't remember what he had done!
I will update the README.md and documentation.
Best,
SDL
|
|
daniels
New Member
Posts: 4
Raspberry Pi: Yes
|
Post by daniels on Jun 10, 2017 13:55:11 GMT -8
Thanks I'd love to get this up and running as I've been 3d printing up a storm since I got my printer, and would love to tie this in with a 3dponics setup, can't wait to see it all finally come together!
Also, I'm open to helping work through a fresh install step by step if John or anyone else would like to reproduce!
|
|
|
Post by SDL on Jun 11, 2017 10:50:11 GMT -8
Daniels,
When you used Rad's suggest, did it work?
Happy to see your step by step! We really appreciate the effort.
Best, BP
|
|
|
Post by lemassykoi on Aug 6, 2017 14:26:17 GMT -8
Hi I just received my Smart Plant Pi Kit, so I set-up a new Raspberry Pi 3 to use it. I follow all the steps, carefully, and here is what I'm getting when trying to start "sudo python testAll.py" : [email protected]:~/SDL_Pi_SmartPlantPi 11:40 $ sudo python testAll.py Traceback (most recent call last): File "testAll.py", line 32, in <module> import Scroll_SSD1306 File "/home/pi/SDL_Pi_SmartPlantPi/Scroll_SSD1306.py", line 29, in <module> font = ImageFont.truetype('/usr/share/fonts/truetype/roboto/Roboto-Regular.ttf', 10) File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 240, in truetype return FreeTypeFont(font, size, index, encoding) File "/usr/lib/python2.7/dist-packages/PIL/ImageFont.py", line 137, in __init__ self.font = core.getfont(font, size, index, encoding) IOError: cannot open resource Kernel : Linux SmartPlantPi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux Any idea please ? Thanks
|
|
|
Post by SDL on Aug 6, 2017 14:32:21 GMT -8
Just in the office for a few minutes, but I think I see what you did.
Looks like you have not installed PIL. Try this (from the README.md)
sudo apt-get install python-pip sudo pip install pil
sudo pip install --upgrade setuptools pip
That should help!
BP
|
|
|
Post by lemassykoi on Aug 6, 2017 17:29:48 GMT -8
thanks for answer, but yes, I installed everything (so python-pip and python-pil are installed), as it is written in the readme from github.
|
|
|
Post by lemassykoi on Aug 6, 2017 17:37:08 GMT -8
|
|
|
Post by lemassykoi on Aug 6, 2017 18:21:26 GMT -8
ok, I found it : sudo aptitude install fonts-roboto and then, it's ok. I suggest to add this package to readme 
|
|