1

I am using the pyinsane module, and after running sudo pip install pyinsane, I believed that pyinsane was up and running. After testing this example with:

python /home/administrator/Documents/git-repositories/ramrod/code/main.py /home/administrator/Documents/git-repositories/ramrod/code/test.jpeg

I got this:

Traceback (most recent call last):
  File "/home/administrator/Documents/git-repositories/ramrod/code/main.py", line 7, in <module>
import src.abstract as pyinsane
ImportError: No module named src.abstract

Code:

#!/usr/bin/env python

import sys

from PIL import Image

import src.abstract as pyinsane

(There is more code to follow but it is unnecessary to reproduce the issue. All I am looking for is getting rid of this error.)

Blue Ice
  • 7,888
  • 6
  • 32
  • 52

1 Answers1

1

Use import pyinsane.abstract as pyinsane, the src module does not exist.

Padraic Cunningham
  • 176,452
  • 29
  • 245
  • 321