Coder Social home page Coder Social logo

Comments (11)

keurfonluu avatar keurfonluu commented on June 5, 2024

Hello @marscfeng,

A quick search on Google indicates that it seems to be a common problem on macOS. Unfortunately, I cannot reproduce this error as I don't have macOS. The package has only been tested on Windows and Unix systems.

A first guess may be that the Python you used to install the package is different from the version your interpreter is invoking. How did you install the package evodcinv?

from evodcinv.

marscfeng avatar marscfeng commented on June 5, 2024

Indeed. I have multiple python installed (python2.7/ python3.6), as well as anaconda. When i tried to install EvoDCinv with pip install evodcinv, it threw out some errors:

RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework. See the Python documentation for more information on installing Python as a framework on Mac OS X. Please either reinstall Python as a framework, or try one of the other backends. If you are using (Ana)Conda please install python.app and replace the use of 'python' with 'pythonw'. See 'Working with Matplotlib on OSX' in the Matplotlib FAQ for more information.

So i downloaded the package and conda install python.app. Finally, i tried pythonw setup.py install and the installation worked out.
But when i run pythonw(or python) example_dc.py, the Import Error about symbol not found occurs.

from evodcinv.

marscfeng avatar marscfeng commented on June 5, 2024

But i successfully run this code on Anaconda>Spyder. I wander why pythonw example_dc.py does not work.

from evodcinv.

keurfonluu avatar keurfonluu commented on June 5, 2024

What does the command which pythonw (or which python) returns?

from evodcinv.

marscfeng avatar marscfeng commented on June 5, 2024
$ which pythonw(or python there're the same)
~/anaconda/bin/pythonw

from evodcinv.

keurfonluu avatar keurfonluu commented on June 5, 2024

It seems your Anaconda installation is broken, somehow. You can try pip install . instead of python setup.py install (first make sure that which pip returns Anaconda's one).

from evodcinv.

marscfeng avatar marscfeng commented on June 5, 2024

broken? I am sorry about my last reply, which python returns ~/anaconda/bin/python not pythonw. And which pip indeed return Anaconda's pip. Anyway at least Spyder could run your package successfully. I do not want to wast your time for some untouched reasons. I am phd student who works on near-surface section. I check the true model you gave under /data, it looks wired (i mean uncommon for my section). Can i have your phd thesis to satisfy my curiosity?

from evodcinv.

keurfonluu avatar keurfonluu commented on June 5, 2024

Are you using surface waves for geotechnical or geophysical problems? The true model I used as an example for this package presents a thin rapid layer, which is usually encountered in geophysical problems. I used this code to invert real dispersion curves obtained by ambient noise correlation. The paper is currently under review.

My PhD thesis is currently not available as I am not graduated yet...

from evodcinv.

marscfeng avatar marscfeng commented on June 5, 2024

Great! Yes, I work on passive & active seismic survey, mainly surface wave, for geophysical problems. It would be proved to be a good literature and i guess this package could also be able to solve LVL inversion problem. Good luck! Which Journal is that you submitted you paper? I would like to keep an eye on it.

from evodcinv.

keurfonluu avatar keurfonluu commented on June 5, 2024

Actually, my research focuses on numerical optimization of inverse problems in geophysics. I worked on the inversion of dispersion curves as one of my colleague in my lab works on surface waves. The paper has been submitted to Geophysical Journal International, and the main authors are Marc Peruzzetto and Alexandre Kazantsev (@alexandrekazantsev).

If you have any question about how to use the package, don't hesitate to contact me again :)

from evodcinv.

marscfeng avatar marscfeng commented on June 5, 2024

thanks!

from evodcinv.

Related Issues (11)

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.