vtsuperdarn / davitpy

DEPRECATED The DaViT Python project
http://vtsuperdarn.github.com/davitpy/
GNU General Public License v3.0
37 stars 59 forks source link

Installing most recent master branch, models unavailable #180

Closed cmeeren closed 8 years ago

cmeeren commented 9 years ago

Hi guys, I just installed the most recent master branch and followed the readme. When I run from davitpy import utils, I get the following:

>>> from davitpy import utils
Loaded davitpyrc file from DaViTpy installation directory. Path: /home/christer/code/davitpy/davitpy
/home/christer/code/davitpy/davitpy/pydarn/dmapio/__init__.pyc -> dmapio:  No module named dmapio
/home/christer/code/davitpy/davitpy/models/__init__.pyc -> models.tsyganenko:  No module named tsygFort
/home/christer/code/davitpy/davitpy/models/igrf/__init__.pyc -> igrf:  No module named igrf
/home/christer/code/davitpy/davitpy/models/aacgm/__init__.py -> aacgm:  No module named aacgm
/home/christer/code/davitpy/davitpy/models/aacgm/__init__.py -> aacgm:  No module named aacgm
/home/christer/code/davitpy/davitpy/models/aacgm/__init__.py -> aacgm:  No module named aacgm
/home/christer/code/davitpy/davitpy/models/msis/__init__.pyc -> models.msis:  No module named msisFort

Did I miss something?

Also, when I run the SuperDARN Data Plotting.ipynb notebook, the line pydarn.plotting.rti.plotRti(sTime, radar, eTime=eTime, bmnum=beam, figure=fig) prints (among other things) cannot import name readDmapRec.


I just rebooted and now I can't even import davitpy (No module named davitpy).

ksterne commented 9 years ago

Hi @cmeeren,

I just tried to switch over to the new master myself today and it seems as though we missed something here. The setup.py file was left with the old directory structure. So, I just put in a hotfix to correct that as well as update the version number for the davitpy package. Can you try things again with the hotfix I just put in?

I also "updated" the release/tag point for 0.4 here for this new master. I maybe went a little far in removing the old release/tag point, but since that had an obvious bug in it...I didn't want it hanging around.

ksterne commented 9 years ago

Actually, I'm not confident that that "fix" actually fixes anything. It seems as though now I'm not seeing any of the pydarn packages being loaded....I'll keep the 0.4 tag, but the source_dirs should be just davitpy...I think.

asreimer commented 9 years ago

@ksterne if you look at the develop branch (which installs perfectly fine!) the edit you made to the source_dirs variable isn't present...

I think you should roll back that patch you did in master until we've figured out exactly what is causing this install problem.

asreimer commented 9 years ago

Oh, just saw your post @ksterne. Also, I can confirm that your fix actually breaks the davitpy install (a good example of why we try not to deviate from the branch and pull model).

I'm looking in to @cmeeren's problem right now too.

ksterne commented 9 years ago

Looks like we crossed here. I've rolled it back and updated the release/tag here as well. I noticed the problem after the fact as the print of the sources at the end was giving nothing.

So the problem I'm hunting down is the setup.py file isn't finishing. I'm getting an error whenever I run the sudo python setup.py install of:

writing davitpy.egg-info/PKG-INFO writing top-level names to davitpy.egg-info/top_level.txt writing dependency_links to davitpy.egg-info/dependency_links.txt file davitpy.py (for module davitpy) not found error: package directory 'gme' does not exist

So it's like it's finding the init.py files but not updating the directory structure to look down into davitpy/davitpy/ and is just looking at the top davitpy/ that I'm running the setup.py command from...

I'll try to give this a look sometime soon. Sorry to cause more headaches here.

asreimer commented 9 years ago

Interesting. Let's try to nail down the parameters a bit more here. @cmeeren what did you do to install davitpy? Also, what system are you running this on? For example, here's what I do:

I'm running Ubuntu 14.04 (but this also works on Fedora 22): 1) change to the master branch in the same directory as setup.py is in and run: git pull origin master 2) delete the build and davitpy.egg-info directories 3) python setup.py install --user 4) open a new terminal (NOT in the davitpy directory) and run python 5) import davitpy

asreimer commented 9 years ago

@ksterne no worries about the fix. It's awesome to have you developing this software! You should see some of the mistakes I made before on here :P!

asreimer commented 9 years ago

I just installed davitpy system-wide using sudo python setup.py install and I'm not having issues running davitpy...

cmeeren commented 9 years ago

I am using the Anaconda scientific Python distribution, Ubuntu 15.10 (I think). For installing davitpy, I followed the readme, but after running the script to install dependencies (before running setup.py) I manually installed/updated the relevant python packages in my anaconda distribution also. I then ran sudo python setup.py install. I then got the errors when running Python from Spyder IDE (part of the Anaconda distribution) in the Python or IPython consoles.

asreimer commented 9 years ago

@cmeeren can you try running an ipython session (or just python) from a terminal and then try importing davitpy from there instead? This will tell us if there is any voodoo magic might be happening under the hood of Anaconda and/or the Spider IDE. I don't use anaconda, but if someone else does maybe then can see if they are having issues?

Another thing to try is uninstalling all instances of davitpy (you can use pip uninstall davitpy and check your .local/lib/python2.7/site-packages/ directory for any installations). Then try reinstalling.

cmeeren commented 9 years ago

I found one error at least... davitpy seems to be installed to the python in /usr/bin/python, not the anaconda installation. Which is weird, since anaconda is the default one (when I run python in a terminal it runs python from ~/anaconda/bin/python).

I tried to install using the --user option. Without sudo, this is what I got - note the "permission denied" at the bottom:

christer@flisa-ubuntu:~/code/davitpy$ python setup.py install --user
make: Entering directory '/home/christer/code/davitpy/davitpy/models/raydarn'
mpif90 -w -g -O2 -fbacktrace -fno-automatic -c MPIutils.f90 -o MPIutils.o
MPIutils.f90:6.5:

 use MPI
     1
Fatal Error: Cannot read module file 'mpi.mod' opened at (1), because it was created by a different version of GNU Fortran
Makefile:42: recipe for target 'MPIutils.o' failed
make: *** [MPIutils.o] Error 1
make: Leaving directory '/home/christer/code/davitpy/davitpy/models/raydarn'
running install
running bdist_egg
running egg_info
running build_src
build_src
building py_modules sources
building extension "dmapio" sources
building extension "aacgm" sources
building extension "tsygFort" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
  adding 'build/src.linux-x86_64-2.7/davitpy/models/tsyganenko/tsygFort-f2pywrappers.f' to sources.
building extension "hwm07" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "msisFort" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
  adding 'build/src.linux-x86_64-2.7/davitpy/models/msis/msisFort-f2pywrappers.f' to sources.
building extension "igrf" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "iri" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
  adding 'build/src.linux-x86_64-2.7/davitpy/models/iri/iri-f2pywrappers.f' to sources.
building data_files sources
Not existing data file: davitpy/models/raydarn/rtFort
Not existing data file: davitpy/models/raydarn/mpiutils.mod
build_src: building npy-pkg config files
writing davitpy.egg-info/PKG-INFO
error: [Errno 13] Permission denied: 'davitpy.egg-info/PKG-INFO'

With sudo things were slightly better, but I still get Fatal Error: Cannot read module file 'mpi.mod' opened at (1), because it was created by a different version of GNU Fortran:

christer@flisa-ubuntu:~/code/davitpy$ sudo python setup.py install --user
make: Entering directory '/home/christer/code/davitpy/davitpy/models/raydarn'
mpif90 -w -g -O2 -fbacktrace -fno-automatic -c MPIutils.f90 -o MPIutils.o
MPIutils.f90:6.5:

 use MPI
     1
Fatal Error: Cannot read module file 'mpi.mod' opened at (1), because it was created by a different version of GNU Fortran
Makefile:42: recipe for target 'MPIutils.o' failed
make: *** [MPIutils.o] Error 1
make: Leaving directory '/home/christer/code/davitpy/davitpy/models/raydarn'
running install
running bdist_egg
running egg_info
running build_src
build_src
building py_modules sources
building extension "dmapio" sources
building extension "aacgm" sources
building extension "tsygFort" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
  adding 'build/src.linux-x86_64-2.7/davitpy/models/tsyganenko/tsygFort-f2pywrappers.f' to sources.
building extension "hwm07" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "msisFort" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
  adding 'build/src.linux-x86_64-2.7/davitpy/models/msis/msisFort-f2pywrappers.f' to sources.
building extension "igrf" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "iri" sources
f2py options: []
  adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
  adding 'build/src.linux-x86_64-2.7' to include_dirs.
  adding 'build/src.linux-x86_64-2.7/davitpy/models/iri/iri-f2pywrappers.f' to sources.
building data_files sources
Not existing data file: davitpy/models/raydarn/rtFort
Not existing data file: davitpy/models/raydarn/mpiutils.mod
build_src: building npy-pkg config files
writing davitpy.egg-info/PKG-INFO
writing top-level names to davitpy.egg-info/top_level.txt
writing dependency_links to davitpy.egg-info/dependency_links.txt
file davitpy.py (for module davitpy) not found
reading manifest file 'davitpy.egg-info/SOURCES.txt'
writing manifest file 'davitpy.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
file davitpy.py (for module davitpy) not found
file davitpy.py (for module davitpy) not found
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/davitpy
creating build/bdist.linux-x86_64/egg/davitpy/utils
copying build/lib.linux-x86_64-2.7/davitpy/utils/timeUtils.py -> build/bdist.linux-x86_64/egg/davitpy/utils
copying build/lib.linux-x86_64-2.7/davitpy/utils/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/utils
copying build/lib.linux-x86_64-2.7/davitpy/utils/coordUtils.py -> build/bdist.linux-x86_64/egg/davitpy/utils
copying build/lib.linux-x86_64-2.7/davitpy/utils/calcSun.py -> build/bdist.linux-x86_64/egg/davitpy/utils
copying build/lib.linux-x86_64-2.7/davitpy/utils/plotUtils.py -> build/bdist.linux-x86_64/egg/davitpy/utils
copying build/lib.linux-x86_64-2.7/davitpy/utils/geoPack.py -> build/bdist.linux-x86_64/egg/davitpy/utils
creating build/bdist.linux-x86_64/egg/davitpy/gme
creating build/bdist.linux-x86_64/egg/davitpy/gme/isr
copying build/lib.linux-x86_64-2.7/davitpy/gme/isr/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/gme/isr
copying build/lib.linux-x86_64-2.7/davitpy/gme/isr/mho.py -> build/bdist.linux-x86_64/egg/davitpy/gme/isr
creating build/bdist.linux-x86_64/egg/davitpy/gme/ind
copying build/lib.linux-x86_64-2.7/davitpy/gme/ind/kp.py -> build/bdist.linux-x86_64/egg/davitpy/gme/ind
copying build/lib.linux-x86_64-2.7/davitpy/gme/ind/omni.py -> build/bdist.linux-x86_64/egg/davitpy/gme/ind
copying build/lib.linux-x86_64-2.7/davitpy/gme/ind/symasy.py -> build/bdist.linux-x86_64/egg/davitpy/gme/ind
copying build/lib.linux-x86_64-2.7/davitpy/gme/ind/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/gme/ind
copying build/lib.linux-x86_64-2.7/davitpy/gme/ind/ae.py -> build/bdist.linux-x86_64/egg/davitpy/gme/ind
copying build/lib.linux-x86_64-2.7/davitpy/gme/ind/dst.py -> build/bdist.linux-x86_64/egg/davitpy/gme/ind
copying build/lib.linux-x86_64-2.7/davitpy/gme/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/gme
creating build/bdist.linux-x86_64/egg/davitpy/gme/base
copying build/lib.linux-x86_64-2.7/davitpy/gme/base/fillGmedb.py -> build/bdist.linux-x86_64/egg/davitpy/gme/base
copying build/lib.linux-x86_64-2.7/davitpy/gme/base/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/gme/base
copying build/lib.linux-x86_64-2.7/davitpy/gme/base/gmeBase.py -> build/bdist.linux-x86_64/egg/davitpy/gme/base
creating build/bdist.linux-x86_64/egg/davitpy/gme/sat
copying build/lib.linux-x86_64-2.7/davitpy/gme/sat/goes.py -> build/bdist.linux-x86_64/egg/davitpy/gme/sat
copying build/lib.linux-x86_64-2.7/davitpy/gme/sat/poes.py -> build/bdist.linux-x86_64/egg/davitpy/gme/sat
copying build/lib.linux-x86_64-2.7/davitpy/gme/sat/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/gme/sat
copying build/lib.linux-x86_64-2.7/davitpy/gme/sat/rbsp.py -> build/bdist.linux-x86_64/egg/davitpy/gme/sat
creating build/bdist.linux-x86_64/egg/davitpy/gme/plotting
copying build/lib.linux-x86_64-2.7/davitpy/gme/plotting/gmeplot.py -> build/bdist.linux-x86_64/egg/davitpy/gme/plotting
copying build/lib.linux-x86_64-2.7/davitpy/gme/plotting/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/gme/plotting
copying build/lib.linux-x86_64-2.7/davitpy/__init__.py -> build/bdist.linux-x86_64/egg/davitpy
creating build/bdist.linux-x86_64/egg/davitpy/models
creating build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi20.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir15.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/igrf2010s.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/apf107.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1975.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1990.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir20.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir22.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi11.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ig_rz_SEC.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi14.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir18.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf2000.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir12.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir13.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi18.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1945.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi15.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/igrf2010.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1965.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir14.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi19.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi12.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1995.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir21.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf2005.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir11.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1980.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ig_rz.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1955.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi22.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi17.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1970.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir19.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1985.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ig_rz_IPS.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1960.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi21.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/dgrf1950.dat -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi13.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir17.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ursi16.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
copying build/lib.linux-x86_64-2.7/davitpy/models/iri/ccir16.asc -> build/bdist.linux-x86_64/egg/davitpy/models/iri
creating build/bdist.linux-x86_64/egg/davitpy/models/msis
copying build/lib.linux-x86_64-2.7/davitpy/models/msis/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models/msis
creating build/bdist.linux-x86_64/egg/davitpy/models/tsyganenko
copying build/lib.linux-x86_64-2.7/davitpy/models/tsyganenko/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models/tsyganenko
copying build/lib.linux-x86_64-2.7/davitpy/models/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models
creating build/bdist.linux-x86_64/egg/davitpy/models/raydarn
copying build/lib.linux-x86_64-2.7/davitpy/models/raydarn/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models/raydarn
copying build/lib.linux-x86_64-2.7/davitpy/models/raydarn/rt.py -> build/bdist.linux-x86_64/egg/davitpy/models/raydarn
creating build/bdist.linux-x86_64/egg/davitpy/models/aacgm
copying build/lib.linux-x86_64-2.7/davitpy/models/aacgm/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models/aacgm
creating build/bdist.linux-x86_64/egg/davitpy/models/hwm
copying build/lib.linux-x86_64-2.7/davitpy/models/hwm/dwm07b_104i.dat -> build/bdist.linux-x86_64/egg/davitpy/models/hwm
copying build/lib.linux-x86_64-2.7/davitpy/models/hwm/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models/hwm
copying build/lib.linux-x86_64-2.7/davitpy/models/hwm/apexgrid.dat -> build/bdist.linux-x86_64/egg/davitpy/models/hwm
copying build/lib.linux-x86_64-2.7/davitpy/models/hwm/hwm071308e.dat -> build/bdist.linux-x86_64/egg/davitpy/models/hwm
creating build/bdist.linux-x86_64/egg/davitpy/models/igrf
copying build/lib.linux-x86_64-2.7/davitpy/models/igrf/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/models/igrf
creating build/bdist.linux-x86_64/egg/davitpy/pydarn
creating build/bdist.linux-x86_64/egg/davitpy/pydarn/dmapio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/dmapio/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/dmapio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn
creating build/bdist.linux-x86_64/egg/davitpy/pydarn/proc
creating build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/signal/sigproc.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/signal/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/signal/xcor.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/signal/signalCommon.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/signal/compare.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/signal/signal.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc
creating build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/music
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/music/music.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/music
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/proc/music/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/music
creating build/bdist.linux-x86_64/egg/davitpy/pydarn/radar
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/radar/radFov.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/radar
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/radar/radStruct.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/radar
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/radar/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/radar
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/radar/radInfoIo.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/radar
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/radar/radUtils.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/radar
creating build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/dbUtils.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/radDataTypes.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/radDataRead.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/sdDataTypes.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/sdDataRead.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/fetchUtils.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/fitexfilter.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/sdio/DataTypes.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio
creating build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/iqPlot.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/fan.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/__init__.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/mapOverlay.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/plotMapGrd.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/musicPlot.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/rti.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/printRec.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/pydarn/plotting/acfPlot.py -> build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting
copying build/lib.linux-x86_64-2.7/davitpy/rcsetup.py -> build/bdist.linux-x86_64/egg/davitpy
copying build/lib.linux-x86_64-2.7/igrf.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-2.7/tsygFort.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-2.7/hwm07.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-2.7/dmapio.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-2.7/iri.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-2.7/msisFort.so -> build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-2.7/aacgm.so -> build/bdist.linux-x86_64/egg
byte-compiling build/bdist.linux-x86_64/egg/davitpy/utils/timeUtils.py to timeUtils.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/utils/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/utils/coordUtils.py to coordUtils.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/utils/calcSun.py to calcSun.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/utils/plotUtils.py to plotUtils.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/utils/geoPack.py to geoPack.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/isr/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/isr/mho.py to mho.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/ind/kp.py to kp.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/ind/omni.py to omni.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/ind/symasy.py to symasy.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/ind/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/ind/ae.py to ae.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/ind/dst.py to dst.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/base/fillGmedb.py to fillGmedb.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/base/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/base/gmeBase.py to gmeBase.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/sat/goes.py to goes.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/sat/poes.py to poes.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/sat/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/sat/rbsp.py to rbsp.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/plotting/gmeplot.py to gmeplot.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/gme/plotting/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/iri/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/msis/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/tsyganenko/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/raydarn/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/raydarn/rt.py to rt.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/aacgm/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/hwm/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/models/igrf/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/dmapio/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal/sigproc.py to sigproc.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal/xcor.py to xcor.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal/signalCommon.py to signalCommon.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal/compare.py to compare.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/signal/signal.py to signal.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/music/music.py to music.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/proc/music/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/radar/radFov.py to radFov.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/radar/radStruct.py to radStruct.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/radar/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/radar/radInfoIo.py to radInfoIo.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/radar/radUtils.py to radUtils.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/dbUtils.py to dbUtils.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/radDataTypes.py to radDataTypes.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/radDataRead.py to radDataRead.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/sdDataTypes.py to sdDataTypes.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/sdDataRead.py to sdDataRead.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/fetchUtils.py to fetchUtils.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/fitexfilter.py to fitexfilter.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/sdio/DataTypes.py to DataTypes.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/iqPlot.py to iqPlot.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/fan.py to fan.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/mapOverlay.py to mapOverlay.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/plotMapGrd.py to plotMapGrd.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/musicPlot.py to musicPlot.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/rti.py to rti.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/printRec.py to printRec.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/pydarn/plotting/acfPlot.py to acfPlot.pyc
byte-compiling build/bdist.linux-x86_64/egg/davitpy/rcsetup.py to rcsetup.pyc
creating stub loader for dmapio.so
creating stub loader for aacgm.so
creating stub loader for tsygFort.so
creating stub loader for hwm07.so
creating stub loader for msisFort.so
creating stub loader for igrf.so
creating stub loader for iri.so
byte-compiling build/bdist.linux-x86_64/egg/dmapio.py to dmapio.pyc
byte-compiling build/bdist.linux-x86_64/egg/aacgm.py to aacgm.pyc
byte-compiling build/bdist.linux-x86_64/egg/tsygFort.py to tsygFort.pyc
byte-compiling build/bdist.linux-x86_64/egg/hwm07.py to hwm07.pyc
byte-compiling build/bdist.linux-x86_64/egg/msisFort.py to msisFort.pyc
byte-compiling build/bdist.linux-x86_64/egg/igrf.py to igrf.pyc
byte-compiling build/bdist.linux-x86_64/egg/iri.py to iri.pyc
installing package data to build/bdist.linux-x86_64/egg
running install_data
creating build/bdist.linux-x86_64/egg/tables
creating build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs2010.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs1995.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs1990.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs1980.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs2000.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs1975.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs1985.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying tables/aacgm/aacgm_coeffs2005.asc -> build/bdist.linux-x86_64/egg/tables/aacgm
copying davitpy/davitpyrc -> build/bdist.linux-x86_64/egg/davitpy
copying davitpy/models/raydarn/constants.mod -> build/bdist.linux-x86_64/egg/davitpy/models/raydarn
running install_clib
customize UnixCCompiler
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying davitpy.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying davitpy.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying davitpy.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying davitpy.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying davitpy.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/davitpy-0.2-py2.7-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing davitpy-0.2-py2.7-linux-x86_64.egg
creating /home/christer/.local/lib/python2.7/site-packages/davitpy-0.2-py2.7-linux-x86_64.egg
Extracting davitpy-0.2-py2.7-linux-x86_64.egg to /home/christer/.local/lib/python2.7/site-packages
Adding davitpy 0.2 to easy-install.pth file

Installed /home/christer/.local/lib/python2.7/site-packages/davitpy-0.2-py2.7-linux-x86_64.egg
Processing dependencies for davitpy==0.2
Finished processing dependencies for davitpy==0.2
Sources ['davitpy', 'davitpy.utils', 'davitpy.gme', 'davitpy.gme.isr', 'davitpy.gme.ind', 'davitpy.gme.base', 'davitpy.gme.sat', 'davitpy.gme.plotting', 'davitpy.models', 'davitpy.models.iri', 'davitpy.models.msis', 'davitpy.models.tsyganenko', 'davitpy.models.raydarn', 'davitpy.models.aacgm', 'davitpy.models.hwm', 'davitpy.models.igrf', 'davitpy.pydarn', 'davitpy.pydarn.dmapio', 'davitpy.pydarn.proc', 'davitpy.pydarn.proc.signal', 'davitpy.pydarn.proc.music', 'davitpy.pydarn.radar', 'davitpy.pydarn.sdio', 'davitpy.pydarn.plotting']

Now the davitpy module is visible from anaconda, but I get some errors in the rc setup when importing:

christer@flisa-ubuntu:~/code/davitpy$ python
Python 2.7.10 |Anaconda 2.1.0 (64-bit)| (default, Oct 19 2015, 18:04:42) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import davitpy
Loaded davitpyrc file from DaViTpy installation directory. Path: davitpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "davitpy/__init__.py", line 569, in <module>
    rcParams = rc_params()
  File "davitpy/__init__.py", line 469, in rc_params
    return rc_params_from_file(fname, fail_on_error)
  File "davitpy/__init__.py", line 557, in rc_params_from_file
    if key not in _all_deprecated])
  File "davitpy/__init__.py", line 353, in __init__
    self[k] = v
  File "davitpy/__init__.py", line 367, in __setitem__
    cval = self.validate[key](val)
  File "davitpy/rcsetup.py", line 56, in validate_path_exists
    raise RuntimeError('"%s" should be a path but it does not exist' % s)
RuntimeError: "" should be a path but it does not exist
cmeeren commented 9 years ago

Hum. I rebooted and the following code runs successfully:

import datetime as dt
import matplotlib.pyplot as plt
from davitpy import utils

ax = plt.subplot(111)

# initiate map
mapObj = utils.plotUtils.mapObj(datetime=dt.datetime(2013, 11, 3, 19, 0),
                                lat_0=75.6, lon_0=112,
                                coords='mag', width=2e6, height=2e6,
                                resolution='l', draw=False, ax=ax)

mapObj.fillcontinents(color='.8')
mapObj.drawcoastlines(linewidth=0.5, zorder=4)
mapObj.drawparallels(range(0, 90, 5), color='.6', labels=[1, 0, 0, 0])
mapObj.drawmeridians(range(0, 360, 15), color='.6', labels=[0, 0, 0, 1], latmax=85)

plt.show()

figure_1

asreimer commented 9 years ago

Yup, seems like some kind of anaconda voodoo.

The fatal error you are getting is for the raydarn fortran code. You will find that raytracing probably doesn't work in your davitpy installation. I think the fatal error is being caused either by not having the right version of mpi installed (must be mpich not openmpi) or you still have the old .mod files in the models/raydarn folder (try removing them if they exist).

I suspect if you cloned a completely new version of the davitpy repository and then installed it you may not have any issues with even raydarn. Perhaps another thing to try.

Dat anaconda voodoo tho. If you can tease out the exact reasons for the issues you had maybe something could be added to the davitpy readme about anaconda.

Happy to hear things are mostly working now!

asreimer commented 9 years ago

Oh, and the permission denied thing you had while not using sudo is because of a file permissions problem you have somewhere (proabably a file was created as root and it can't be overwritten without being root).

cmeeren commented 9 years ago

I fixed the permission thing, you were right.

Re-installing from a clean repo did not fix the MPI fatal error. I do have mpich (latest version).

I vaguely remember having similar problems (MPI and fortran compiler version mismatch) back when I first tried davitpy a couple of years ago.

aburrell commented 9 years ago

It’s probably the same thing again. We should put a warning about this in the install directions.

On 12 Nov 2015, at 08:53, Christer van der Meeren notifications@github.com wrote:

I fixed the permission thing, you were right.

Re-installing from a clean repo did not fix the MPI fatal error. I do have mpich (latest version).

I vaguely remember having similar problems (MPI and fortran compiler version mismatch) back when I first tried davitpy a couple of years ago.

— Reply to this email directly or view it on GitHub https://github.com/vtsuperdarn/davitpy/issues/180#issuecomment-156036652.

asreimer commented 8 years ago

@cmeeren did you resolve your MPI problem?

cmeeren commented 8 years ago

Nope. But the parts I need are working. :)