Ask Your Question
0

PySDE: How to import this Python package?

asked 2013-06-18 16:56:53 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi, how can I add PySDE [https://github.com/hobu/pysde/blob/ma...] to Sage? I use version 5.9 Win64 VBox.

I want to run: """ add required Python packages """ from pysde import * from sympy import * """ Variables acclaimed """ x,dx=symbols('x dx') r,G,e,d=symbols('r G epsilon delta') """ Solve Kolmogorov Forward Equation """ l=sde.KolmogorovFE_Spdf(r(G-x),ex(1-x),0,1) sol=l.subs({e:rd})

pprint(sol)

Thanks! Roland

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-06-18 21:31:37 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

have you tried the following:

1) 2) f

  1. download the pysde-master.zip from github
  2. in command line change directory to the download folder

    cd /path/to/download/folder

  3. in command line unzip the file

    unzip pysde-master.zip

  4. in command line run the following

    /path/to/sage/folder/sage/local/bin/python pysde-master/python/setup.py install

hopefully this helps!

edit flag offensive delete link more

Comments

Hi, Thanks for yor swift reply! I got an error when applying step 4: sde_wrap.cpp does not exist.. :(

Rolandb gravatar imageRolandb ( 2013-06-19 05:10:33 +0100 )edit

I install packages by executing sage -sh and the cd to directory with setup.py file. Then execute python ./setup.py install Having troubles with markdown/html, but hopefully you understand the commands executed. N.B.: From the Git page: "This was a 2.0 attempt at a project for manipulating ArcSDE's C API directly with Python. What's here is an unfinished attempt at a proper SWIG bindings for the API modeled on GDAL's SWIG bindings layout. I'm pretty sure nothing really works, but it should be a good starting point for someone looking to make it happen."

rickhg12hs gravatar imagerickhg12hs ( 2013-06-19 05:23:56 +0100 )edit

@Rolandb Do you have ArcSDE's C API library?

torrho gravatar imagetorrho ( 2013-06-19 10:50:53 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-06-18 16:56:53 +0100

Seen: 813 times

Last updated: Jun 18 '13