Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLerror #26

Open
shicks-seismo opened this issue Feb 15, 2017 · 2 comments
Open

URLerror #26

shicks-seismo opened this issue Feb 15, 2017 · 2 comments

Comments

@shicks-seismo
Copy link

Hello,

I tried one both examples in readme: e.g. seedlink-plotter -s "G_MBO:00BHZ" -b 10m --seedlink_server "rtserver.ipgp.fr:18000" --line_plot

And I get the following error:

Traceback (most recent call last):
  File "/Users/sph1r17/anaconda/bin/seedlink-plotter", line 11, in <module>
    load_entry_point('seedlink-plotter==0.1.0', 'console_scripts', 'seedlink-plotter')()
  File "/Users/sph1r17/anaconda/lib/python3.6/site-packages/pkg_resources/__init__.py", line 560, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/sph1r17/anaconda/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2648, in load_entry_point
    return ep.load()
  File "/Users/sph1r17/anaconda/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2302, in load
    return self.resolve()
  File "/Users/sph1r17/anaconda/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2308, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/sph1r17/anaconda/lib/python3.6/site-packages/seedlink_plotter/seedlink_plotter.py", line 420
    except URLError, error:
@megies
Copy link
Collaborator

megies commented Feb 15, 2017

I'm not sure we support python 3..

Since you're using anaconda, it's trivial to create a dedicated environment with py2.7..

$ conda create -n seedlinkplotter python=2.7
$ source activate seedlinkplotter
$ conda install -c conda-forge obspy
$ pip install https://github.com/bonaime/seedlink_plotter/archive/master.zip

@rsignell-usgs
Copy link

I can confirm that creating the py2.7 environment above works. But also converting the code to python3 using 2to3 works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants