Hi Obspy users,
I just set up a new system recently for scratch (OSX 10.9.5) and installed Anaconda and the obspy package as described on the website.
I found that my python executed 2 scripts each time I imported the module obspy.
As a small example (enclosed figure):
This only happens when I import Obspy, otherwise the python works fine and only one file is executed once I commend the import line.
I have inserted an error on purpose into the first file and get the following terminal message:
mgallt:Basemap mgal$ python test2.py
Traceback (most recent call last):
File “test2.py”, line 1, in
File “/Users/mgal/anaconda/lib/python2.7/site-packages/obspy-0.10.1-py2.7-macosx-10.5-x86_64.egg/obspy/init.py”, line 36, in
from obspy.core.utcdatetime import UTCDateTime # NOQA
File “/Users/mgal/anaconda/lib/python2.7/site-packages/obspy-0.10.1-py2.7-macosx-10.5-x86_64.egg/obspy/core/init.py”, line 107, in
from obspy.core.util.attribdict import AttribDict
File “/Users/mgal/anaconda/lib/python2.7/site-packages/obspy-0.10.1-py2.7-macosx-10.5-x86_64.egg/obspy/core/util/init.py”, line 27, in
from obspy.core.util.base import (ALL_MODULES, DEFAULT_MODULES,
File “/Users/mgal/anaconda/lib/python2.7/site-packages/obspy-0.10.1-py2.7-macosx-10.5-x86_64.egg/obspy/core/util/base.py”, line 24, in
File “/Users/mgal/anaconda/lib/python2.7/site-packages/future/standard_library/init.py”, line 323, in enter
File “/Users/mgal/anaconda/lib/python2.7/site-packages/future/standard_library/init.py”, line 528, in install_hooks
File “/Users/mgal/anaconda/lib/python2.7/site-packages/future/standard_library/init.py”, line 482, in install_aliases
File “/Users/mgal/Python_codes/Basemap/test.py”, line 1
SyntaxError: EOL while scanning string literal
Does anyone know why the import of obspy would trigger an import of test?
University of Tasmania Electronic Communications Policy (December, 2014).
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.