Questions tagged [pycall]

54 questions
1
vote
0 answers

warnings.warn when generating the p-h diagram with Coolprop 6.4.1

When running the script I show: using PyCall pyimport("sys").executable @pyimport CoolProp.CoolProp as CP @pyimport CoolProp.Plots as CPP #=UNIT_SYSTEMS = {'EUR': , 'KSI':
HerClau
  • 161
  • 2
  • 15
1
vote
0 answers

Pressure-temperature diagram in CoolProp 6.4.1

How to show the Refrigerants R-410A Pressure-temperature diagram in all its details with CoolProp 6.4.1. Not at the level of detail shown in the figure. With some : Constant pressure lines-isobars, Pressure lines, Temperature lines, Constant…
HerClau
  • 161
  • 2
  • 15
1
vote
0 answers

Ensure outputs from PyCall are stored as PyObject

I'm brand new to Julia so forgive any ignorance. I'm hoping to be able to use Doc2Vec from Python's gensim module in Julia. However, i am running up against an issue where the names from the TaggedDocument python object are not surviving the…
WEVERETT
  • 87
  • 4
1
vote
1 answer

Is it able to compile Julia script using PyCall.pyimport?

I have to compile a Julia script and use opencv-python in it. If it is feasible, how to compile? What should I use? >PackageCompiler?
1
vote
1 answer

Does Julia's column-major order have any impact while calling CVXPY through PyCall?

I'm using CVXPY through Julia, a language where multidimentional arrays are stored in memory using column-major order. However CVXPY is written in Python and accepts Numpy style arrays (which are row-major by default) to be used as constants. I want…
fire-bee
  • 111
  • 1
  • 3
1
vote
0 answers

Error when using animation.py on Julia 1.5.2

I use the first example of this link to make a videos. On my previous Julia version before I changed computer, which was I think version 1.2, this worked fine. Now, everything works fine, until the last…
ChrlTsr
  • 149
  • 1
  • 7
1
vote
1 answer

Why julia consume time for importing after they already give me an output?

I am studying deep learning with julia, and wrote these code. using LinearAlgebra using Plots using Flux.Data using PyCall @pyimport pickle @pyimport numpy as np using ScikitLearn @sk_import datasets: fetch_openml println("import fin") And I get…
1
vote
0 answers

Error finding a library libopenlibm when calling a julia function in python

I am using python 3.7, from an anaconda distribution. I am having problems calling some functions from julia using pyjulia. below is a snipped of my code: import julia from julia import…
1
vote
1 answer

PyJulia build fails; can't find package 'Pkg' in current path during import?

I am trying to build PyJulia on my system but get the following error when trying to install via Python: >>> import julia >>> julia.install() ERROR: LoadError: ArgumentError: Package Pkg not found in current path: - Run `import Pkg; Pkg.add("Pkg")`…
1
vote
0 answers

PyError using PyCall in Julia

I am using PyCall to call Python in Julia. My environment is set to my Anaconda distribution (xxx in the following) and PyCall builds correctly. If I use using PyCall np = pyimport("numpy") I get ERROR: LoadError: PyError…
clearseplex
  • 679
  • 1
  • 7
  • 22
1
vote
1 answer

Why am I getting no method matching Complex(::Sym)?

I am having one function to be executed, it has been compiled but for the execution it shows me a MethodError, here is the function For this function I'm using SymPy function op_mat(op) op = op.as_poly(domain="C") op_a =…
Marouane1994
  • 534
  • 3
  • 11
1
vote
1 answer

PyCall does not build - Fails at "Downloading miniconda installer"

Using Windows 10, Julia 1.1.1 (2019-05-16). I've searched around online for various solutions, and have even resorted to totally removing Julia and reinstalling it, only to make no progress. Conda builds inside of Julia perfectly fine. I'm calling…
user3303504
  • 525
  • 3
  • 20
1
vote
0 answers

How to pass Python Object from Julia to Python method?

I'm still really new to Julia and am trying to find small things to do to help me learn but I am currently stuck. I want to create a web-scraper in Julia using Selenium. WebDriver.jl doesn't seem to have been updated to work with Julia 1.0+ and my…
Matt Camp
  • 1,448
  • 3
  • 17
  • 38
1
vote
0 answers

Rails: Pycall can't import CountVectorizer from 'sklearn.feature_extraction.text'

I am having an issue (undefined method module_eval when trying to import CountVectorizer from sklearn.feature_extraction.text. My code: pyfrom :'sklearn.feature_extraction.text', import: :CountVectorizer Am I missing something, or is this library…
1
vote
2 answers

Python:Pycall Validation Error while Calling

I have Asterisk 13.20 set up and running fine on Ubuntu 16.04,calls are going well through a Softphone(Zoiper), I came across a Library in Python "Pycall" which lets you make calls through a Python Script.So I tried testing a snippet from the site…
user9315259