-
-
Notifications
You must be signed in to change notification settings - Fork 42
v1.0 #30
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I can't help for the bigger issue, but to check your installed packages, you would use |
This repo was setup with Julia v0.6 and hasn't been tested with v1.0 yet. These are v1.0 issues so the title was reflected to be about that. |
Thanks for the help, I uninstalled Julia v1.0 and installed v0.6.4, this seemed to fix the majority of the issues, additionally installing the TLS easy fix and Windows management framework. I've tried to follow the initial instructions on the github page, in python i ran: " def f(u,p,t): u0 = 0.5 which gave the error:
|
It's probably best to hold off for a bit and we'll get this v1.0 ready. It might take a bit of work though. |
Similar issue on Linux: >>> import diffeqpy
>>> diffeqpy.install()
ERROR: LoadError: UndefVarError: Pkg not defined
Stacktrace:
[1] top-level scope at none:0
in expression starting at /usr/lib/python3.7/site-packages/diffeqpy/install.jl:1
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.7/site-packages/diffeqpy/__init__.py", line 33, in install
subprocess.check_call(['julia', os.path.join(script_dir, 'install.jl')])
File "/usr/lib/python3.7/subprocess.py", line 328, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['julia', '/usr/lib/python3.7/site-packages/diffeqpy/install.jl']' returned non-zero exit status 1. |
As I can see the question is recurring, let me clarify the situation: simple installation of diffeqpy from PyPI would not work with Julia 1.0 (and 0.7) until new PyJulia is released. If you want to get the update, subscribe to: JuliaPy/pyjulia#198 |
@tkf has the pyjulia v1.0 update completed? I don't exactly know from JuliaPy/pyjulia#198 (comment) |
It's more-or-less ready but there are some remaining tasks: https://github.com/JuliaPy/pyjulia/milestone/1. It's mostly documentation. |
Okay cool. I'm travelling soon but I want to make sure diffeqpy and diffeqr get v1.0 updates soon. I'll give some things a try while on the flights. |
BTW, I experimented Julia/Python interface https://tkf.github.io/PyBase.jl/latest/ to automate things like diffeqpy. It kind of works: https://nbviewer.jupyter.org/gist/tkf/ef78c4b625774414974f9d98fbe57026 but I have to fight a lot with PyCall's aggressive auto-conversion which copies Python values to Julia values and vice versa. At this point, my impression is that working on project like diffeqpy would be painful until PyCall provides "lazier" interface wrapper (i.e., doing lesser copy-based conversion). |
Hi guys, I'm excited to see pyJulia0.2 is released!, Does this mean that diffeqpy will now work with Julia v1.0? |
Unfortunately, diffeqpy itself can't be used at the moment. But you can get an equivalent environment by: from julia import Main
Main.eval("""
using DifferentialEquations
using PyCall
PyCall.PyObject(::typeof(DiffEqBase.solve)) =
PyCall.pyfunctionret(solve,Any,Vararg{PyCall.PyAny})
const inspect = pyimport("inspect")
function DiffEqBase.numargs(f::PyCall.PyObject)
haskey(f,:py_func) ? _f = f[:py_func] : _f = f
if PyCall.pyversion < v"3.0.0"
return length(first(inspect[:getargspec](_f)))
else
return length(first(inspect[:getfullargspec](_f)))
end
end
""")
from julia import DifferentialEquations as de |
Is this fixed? I don't think it is? |
ODE and SDE are probably functional (simple examples work). But the tests for DAE and DDE are broken. |
Hi,
I'm trying to install diffeqpy for my python installation (Winpython w/ python 3.5.4)
Following the instructions:
used pip to install to python with "pip install diffeqpy"
downloaded the julia prgram from https://julialang.org/downloads/
Installed Julia to: "C:\WinPython\python-3.5.4.amd64\Julia-1.0.0"
Added "C:\WinPython\python-3.5.4.amd64\Julia-1.0.0" and "C:\WinPython\python-3.5.4.amd64\Julia-1.0.0\bin" to my path in windows' system variables and user variables
Tried to install "DifferentialEquations.jl" and "PyCall.jl" with
"julia>using Pkg
julia>Pkg.add("DifferentialEquations")
julia>Pkg.add("PyCall")"
Using Python Interpreter I ran
">>> import diffeqpy
but got:
">>> import diffeqpy
"
I'm not sure if this is an issue with my path or something else.
I've tried checking my installations of PyCall and DifferentialEquations within Julia by using:
"julia> using Pkg
julia> Pkg.installed("PyCall")
ERROR: MethodError: no method matching installed(::String)
Closest candidates are:
installed() at C:\cygwin\home\Administrator\buildbot\worker\package_win64\buil
d\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:261
Stacktrace:
[1] top-level scope at none:0
julia>"
I'm sorry if this is a very simple issue or does not belong in this forum but I couldn't find much help out there for this installation.
Apologies for poor formatting on github / understanding of Julia, i just want something better than scipy.
Thanks,
Isaac
The text was updated successfully, but these errors were encountered: