Comments (5)
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.
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)
After installation ( pip install git+https://github.com/sixty-north/segpy.git)
Best,
Youli
from segpy.
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.
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.
I ended up using another package which worked for me.
from segpy.
Related Issues (20)
- Fix invalid license change in `segpy-lite` HOT 4
- `_cdp_catalog` can be `None` in `SegYReader2D.cdp_numbers`. HOT 5
- `header()` strategy produces unusable binary reel headers HOT 11
- Investigate using AFL to generate SEG-Y files for testing
- Sporadic health-check failures for `test_regular_mapping` HOT 1
- Small error in segpy-numpy
- Confusion about dimensionality detection heuristic HOT 3
- Python <= 3.4 compatibility
- Use plugins and named extensions for trace headers HOT 3
- segy 3d read error HOT 12
- Use our exit-codes modules for exit codes
- how to get data HOT 3
- How to read latitude/longitude or xcoordinate/ycoordinate information?? HOT 17
- Unable to read shot_gather.sgy file with error: ValueError: Assigned value 43690 for num_samples HOT 1
- How to process the massive data? HOT 1
- How to read minimum and maximum values of time (ms) from .sgy files using segpy or any other seismic reader library?
- Read illegal trace lengths? HOT 5
- cannot get the trace header HOT 1
- Mapping, Sequence and Iterable are not referenced
- TraceHeaderRev0 is not compatible with CatalogSubFormat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from segpy.