Giter Club home page Giter Club logo

Comments (2)

jdeolive avatar jdeolive commented on September 28, 2024

Strange indeed. Can you humour me by running the following commands:

  1. export CLASSPATH=geoscript-classpath
  2. jython
  3. import sys
  4. print sys.path
  5. import geoscript

As for adding the geotools jars dynamically to sys.path after jython startup that is known not to work. There are a couple of issues with it, mainly how geotools handles extension lookups. It is something i am working on though.

from geoscript-py.

ranchodeluxe avatar ranchodeluxe commented on September 28, 2024

Here you go:

gerg ## export CLASSPATH=geoscript-classpath
gerg ## jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path
['', '/usr/lib/jython/Lib/site-packages/setuptools-0.6c11-py2.5.egg', '/usr/lib/jython/Lib/site-packages/geoscript-0.6-py2.5.egg', '/usr/lib/jython/Lib', 'classpath', 'pyclasspath/', '/usr/lib/jython/Lib/site-packages']
import geoscript
Error: Could not find GeoTools libraries on classpath.
gerg ##

Also, for comparison:

gerg ## export JYTHON_HOME=/usr/lib/jython
gerg ## export PATH=$JYTHON_HOME/bin:$PATH
gerg ## geoscript
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path
['', '/usr/lib/jython/Lib/site-packages/setuptools-0.6c11-py2.5.egg', '/usr/lib/jython/Lib/site-packages/geoscript-0.6-py2.5.egg', '/usr/lib/jython/Lib', 'classpath', 'pyclasspath/', '/usr/lib/jython/Lib/site-packages']
gerg ##
gerg ##
gerg ## jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path
['', '/usr/lib/jython/Lib/site-packages/setuptools-0.6c11-py2.5.egg', '/usr/lib/jython/Lib/site-packages/geoscript-0.6-py2.5.egg', '/usr/lib/jython/Lib', 'classpath', 'pyclasspath/', '/usr/lib/jython/Lib/site-packages']
gerg ##
gerg ##
gerg ## export CLASSPATH=geoscript-classpath
gerg ## jython
Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
import sys
sys.path
['', '/usr/lib/jython/Lib/site-packages/setuptools-0.6c11-py2.5.egg', '/usr/lib/jython/Lib/site-packages/geoscript-0.6-py2.5.egg', '/usr/lib/jython/Lib', 'classpath', 'pyclasspath/', '/usr/lib/jython/Lib/site-packages']
import geoscript
Error: Could not find GeoTools libraries on classpath.

from geoscript-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.