jep.JepException: <class 'ModuleNotFoundError'>: No module named 'jep'

622 views
Skip to first unread message

Alejandro Kapit

unread,
Mar 20, 2018, 10:54:15 AM3/20/18
to Jep Project
It looks like suddenly I cannot continue running python stuff from Java... I still cannot see what's the source of the issue.

What should I check?

I'm using python 3.6, installed jep accordingly some time ago, 
I also have this env vars: 

export LD_LIBRARY_PATH=/usr/local/lib/python3.6/dist-packages/jep
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libpython3.6m.so"

Everything was working until yesterday.

Any suggestion? Ideas?

Thanks in advance

Alejandro Kapit

unread,
Mar 20, 2018, 11:00:22 AM3/20/18
to Jep Project
Also btw, Same code works perfectly on my mac, the problem is in the server (ubuntu), but nothing was done in the server... so it's pretty strange.

Nathan Jensen

unread,
Mar 20, 2018, 11:21:13 AM3/20/18
to Jep Project
That error message implies it can't see the jep directory under site-packages. Try setting LD_LIBRARY_PATH to the directory containing libpython, e.g. /usr/lib/x86_64-linux-gnu.

--
You received this message because you are subscribed to the Google Groups "Jep Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jep-project+unsubscribe@googlegroups.com.
To post to this group, send email to jep-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jep-project/00b51aa1-c6d0-4895-9555-76945b2ffe77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ben Steffensmeier

unread,
Mar 20, 2018, 11:46:05 AM3/20/18
to Jep Project
It looks like jep installed in dist-packages rather than site packages which seems a bit odd but should work as long as your PYTHONPATH is setup correctly. You might try the steps in the answer to this stack overflow post.

Ben

Alejandro Kapit

unread,
Mar 20, 2018, 12:45:15 PM3/20/18
to Jep Project
The problem with PYTHONPATH is that I get other errors, and this post doesn't recommend setting that variable: https://askubuntu.com/questions/640010/fatal-python-error-py-initialize-unable-to-get-the-locale-encoding-syntaxe

I'm confused, i'm also using virtualenv on my server, nothing changed in the config, the only thing might happened is that pip was upgraded. 

Alejandro Kapit

unread,
Mar 20, 2018, 12:55:32 PM3/20/18
to Jep Project
I fixed the issue by reinstalling Jep with pip --upgrade --force-reinstall jep

I'm just a bit confused where those errors came from. Maybe an issue with the virtualenv or anything like that. Just weird. No env-vars changed.

Thanks anyways!

Alejandro Kapit

unread,
Mar 20, 2018, 1:01:01 PM3/20/18
to Jep Project
Looks like I might use docker soon :)
Reply all
Reply to author
Forward
0 new messages