You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Madhavi Nadig (JIRA)" <ji...@apache.org> on 2014/12/09 22:10:12 UTC
[jira] [Created] (PIG-4353) Python script with embedded PIG fails
throws ImportError: No module named org.apache.pig.scripting
Madhavi Nadig created PIG-4353:
----------------------------------
Summary: Python script with embedded PIG fails throws ImportError: No module named org.apache.pig.scripting
Key: PIG-4353
URL: https://issues.apache.org/jira/browse/PIG-4353
Project: Pig
Issue Type: Bug
Affects Versions: 0.13.1
Reporter: Madhavi Nadig
Python script with embedded pig fails to import org.apache.pig.scripting.
{code}
$ python myjob.py
Traceback (most recent call last):
File "myjob.py", line 12, in <module>
from org.apache.pig.scripting import *
ImportError: No module named org.apache.pig.scripting
{code}
Have tried to import the bundled jython jar explicitly with
{code}
import sys
sys.path.append('/home/mnadig/jython/jython.jar')
from org.apache.pig.scripting import *
{code}
Still get the same error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)