Code Monkey home page Code Monkey logo

Comments (5)

pareantoine avatar pareantoine commented on July 26, 2024

Hi Youli,

The anaconda navigator will not show SEGPY in the navigator as you did not install it with anaconda.

But, open a terminal and type "conda list".
Segpy should be listed there.

Another test, if you open a python console and type "import numpy", do you get an error returned?

Antoine

from segpy.

youlimao avatar youlimao commented on July 26, 2024

Hi, Antonie

Thanks for your reply!I really appreciate it.

I actually checked the 'conda list' and could not find it segpy package there. I also test it by" import segpy ", but the error says the package not installed.

Please see the screen shots (conda list)
screencapture

After installation ( pip install git+https://github.com/sixty-north/segpy.git)

screencapture2

Best,

Youli

from segpy.

bwulff avatar bwulff commented on July 26, 2024

I'm experiencing problems with the package in Python 3:

$ pip install segpy
Collecting segpy
  Downloading segpy-2.0.0a2-py2.py3-none-any.whl (48kB)
    100% |████████████████████████████████| 51kB 652kB/s 
Installing collected packages: segpy
Successfully installed segpy-2.0.0a2
$ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import segpy
>>> print(segpy.__version__)
2.0.0a2
$ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import segpy
>>> print(segpy.__version__)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'segpy' has no attribute '__version__'

also when I try to run an example

$ python3 timeslice.py waipuku.sgy output.npy 100
Traceback (most recent call last):
  File "timeslice.py", line 35, in <module>
    from segpy.reader import create_reader
ImportError: No module named 'segpy.reader'

Since I get no import error in Python 2 I'm trying to convert the timeslice example to Py2 and see if it works there.

from segpy.

rob-smallshire avatar rob-smallshire commented on July 26, 2024

Segpy is explicitly not compatible with Python 2.

The version of segpy on PyPI is quite old, so to get the latest version you need to install the version here on GitHub. The best way to do this is:

pip install git+https://github.com/sixty-north/segpy.git#egg=segpy

At some point I'll get around to uploading a new version to PyPI.

from segpy.

youlimao avatar youlimao commented on July 26, 2024

I ended up using another package which worked for me.

from segpy.

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.