Code Monkey home page Code Monkey logo

Comments (13)

Yky avatar Yky commented on August 19, 2024

You probably don't have build_map.py in /dustcloud/

You can copy /home/pi/dustcloud/dustcloud/build_map.py to /dustcloud/

Then the module should be found.

from dustcloud.

SirWesthoff avatar SirWesthoff commented on August 19, 2024

Now i got This....

Traceback (most recent call last):
File "/dustcloud/server.py", line 33, in
from build_map import build_map
File "/dustcloud/build_map.py", line 17, in
from PIL import Image, ImageDraw, ImageChops
ImportError: No module named 'PIL'

from dustcloud.

Yky avatar Yky commented on August 19, 2024

You need to install pillow with pip.

from dustcloud.

SirWesthoff avatar SirWesthoff commented on August 19, 2024

Traceback (most recent call last):
File "/dustcloud/server.py", line 33, in
from build_map import build_map
File "/dustcloud/build_map.py", line 17, in
from PIL import Image, ImageDraw, ImageChops
File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 58, in
from . import _imaging as core
ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory

from dustcloud.

Yky avatar Yky commented on August 19, 2024

How did you install pillow?

from dustcloud.

SirWesthoff avatar SirWesthoff commented on August 19, 2024

pip3 install pillow

from dustcloud.

Yky avatar Yky commented on August 19, 2024

A quick google gives this answer: https://stackoverflow.com/questions/48012582/pillow-libopenjp2-so-7-cannot-open-shared-object-file-no-such-file-or-directo

sudo apt-get install libopenjp2-7-dev

I didn't this problem after installing pillow, so no guarantee this helps.

from dustcloud.

SirWesthoff avatar SirWesthoff commented on August 19, 2024

no that didn't worked out... I will give it a new try tomorrow.

from dustcloud.

Yky avatar Yky commented on August 19, 2024

Are you using a virtualenv?

from dustcloud.

SirWesthoff avatar SirWesthoff commented on August 19, 2024

No

from dustcloud.

Yky avatar Yky commented on August 19, 2024

Try that then.

from dustcloud.

SteveClement avatar SteveClement commented on August 19, 2024

There is something odd going on with pillow on raspi…

Also, libopenjp2-7-dev seems to not exist anymore in the stock raspian sources…

I will dig around a little, I have the same issue with another project:

(myPiMotion) pi@cam: ~/code/1984YourRack $ ./src/myPiMotion.py
Traceback (most recent call last):
  File "./src/myPiMotion.py", line 8, in <module>
    from PIL import Image
  File "/home/pi/code/1984YourRack/myPiMotion/lib/python3.5/site-packages/PIL/Image.py", line 60, in <module>
    from . import _imaging as core
ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory

from dustcloud.

kbfifi avatar kbfifi commented on August 19, 2024

For what it's worth: I I also had the "ImportError: No module named 'PIL'" prob.
pip install image
fixed it for me. I'm running from Odroid C2 with DietPi

from dustcloud.

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.