#jython IRC Log

Index

IRC Log for 2016-06-28

Timestamps are in GMT/BST.

[0:39] * verterok` is now known as verterok
[5:00] * stewori (~stefan@5.146.131.127) Quit (Quit: Leaving.)
[7:07] * qwebirc48359 (b8031407@gateway/web/freenode/ip.184.3.20.7) has joined #jython
[7:09] <qwebirc48359> Hi, I've been having trouble using SymPy (a completely python library) in Jython. I can import it just fine in Python but when I use import in Jython it won't work. Any help is appreciated!
[7:15] <agronholm> any details are appreciated
[7:15] <agronholm> like why you can't import it
[7:18] <qwebirc48359> I run jython in the command line and it says that there is an import error because the sympy module does not exist. I looked at the files in the python installation vs the jython installation and found that the python site-packages has the sympy library while jython does not.
[7:18] <qwebirc48359> But I don't know how to get the sympy package into the jython installation.
[7:31] <deepy> Have you installed it? https://github.com/sympy/sympy
[7:32] <agronholm> qwebirc48359: sounds like you never installed it to jython
[7:32] <qwebirc48359> Yes, I am currently using it with Python on the command line.
[7:32] <agronholm> instead you installed it on the mainstream python installation
[7:33] <qwebirc48359> How do I install it to jython?
[7:33] <agronholm> use jython's pip command
[7:33] <qwebirc48359> from its bin folder?
[7:33] <agronholm> yes
[7:34] <qwebirc48359> whenever I try that I get a super long error message that ends with: AttributeError: 'module' object has no attribute 'geteuid'
[7:36] <agronholm> traceback?
[7:36] <agronholm> which version of jython are you using?
[7:36] <qwebirc48359> jython 2.7.0
[7:37] <agronholm> pastebin the traceback
[7:38] <qwebirc48359> Traceback (most recent call last): File "C:\jython2.7.0\Lib\runpy.py", line 161, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\jython2.7.0\Lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\jython2.7.0\bin\pip.exe\__main__.py", line 5, in <module> File "C:\jython2.7.0\Lib\site-packages\pip\__init__.py", line 10, in <module> from pip.util import get_installed_distr
[7:38] <agronholm> pastebin, not paste on ir
[7:38] <qwebirc48359> sorry it looks so horrible
[7:38] <agronholm> irc
[7:38] <agronholm> http://bpaste.net
[7:38] <qwebirc48359> pasted
[7:38] <agronholm> and the url?
[7:39] <qwebirc48359> sorry https://bpaste.net/show/e21a4f52278b
[7:39] <agronholm> that makes absolutely no sense
[7:39] <agronholm> the os module does have the geteuid function
[7:40] <qwebirc48359> should I use a previous version and see if that works?
[7:40] <agronholm> I am installing it myself now
[7:41] <agronholm> I ran into another problem
[7:41] <agronholm> RuntimeException: java.lang.RuntimeException: Method code too large!
[7:41] <agronholm> this is unfortunately not readily fixable
[7:41] <qwebirc48359> I have no idea then
[7:41] <qwebirc48359> thanks for the help though
[7:42] <agronholm> this error I got means a function was too large for jython
[7:42] <agronholm> jython has limitations on function size due to JVM restrictions
[7:43] <qwebirc48359> Did you get that when you tried to execute the jython executable?
[7:43] <agronholm> ah...also jython on Windows has no os.geteuid()
[7:43] <agronholm> you can try upgrading your pip
[7:44] <agronholm> jython -m pip install -U pip
[7:44] <agronholm> you'll get the same error as I did then after trying to install sympy again
[7:45] <qwebirc48359> yeah it won't even update it because I get the same 'geteuid' error
[7:45] <agronholm> :(
[7:45] <qwebirc48359> I really appreciate the help though! I thought I was doing something wrong.
[7:56] * qwebirc48359 (b8031407@gateway/web/freenode/ip.184.3.20.7) Quit (Quit: Page closed)
[13:02] * TomA (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) has joined #jython
[13:04] * TomA_ (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) has joined #jython
[13:08] * TomA (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) Quit (Ping timeout: 252 seconds)
[16:01] * xemdetia (xemdetia@nat/ibm/x-kxbjnzqdqmwetlje) has joined #jython
[20:48] * pizzaman1 (~pm@wireless1x-168-122-9-133.bu.edu) Quit (Ping timeout: 244 seconds)
[20:49] * pizzaman (~pm@mary008-0301-dhcp-153.bu.edu) has joined #jython
[21:18] * TomA_ (~TomA@c-68-32-46-223.hsd1.mi.comcast.net) Quit (Remote host closed the connection)
[21:30] * maxpowa (maxpowa@2604:4300:a:132::dead:c0de) Quit (Ping timeout: 250 seconds)
[21:36] * maxpowa (maxpowa@brought.to.you.by.maxpowa.us) has joined #jython
[21:45] * xemdetia (xemdetia@nat/ibm/x-kxbjnzqdqmwetlje) Quit (Ping timeout: 252 seconds)
[22:07] * stewori (~stefan@ip-95-223-159-149.hsi16.unitymediagroup.de) has joined #jython

Index

These logs were automatically created by JythonLogBot on irc.freenode.net using a slightly modified version of the Java IRC LogBot.