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

pystamps doesn't work from the command line on OS X - IndexError #1

Open
godber opened this issue Aug 7, 2015 · 1 comment
Open
Assignees

Comments

@godber
Copy link
Member

godber commented Aug 7, 2015

Pystamps has an IndexError on the command line no matter what arguments I provide.

pystamps
pystamps tests/mission_data/
pystamps tests/mission_data/*img
pystamps tests/mission_data/0047MH0000110010100214C00_DRCL.IMG

The error is as follows

 pystamps tests/mission_data/1p190678905erp64kcp2600l8c1.img
Traceback (most recent call last):
  File "/Users/godber/.virtualenvs/pystamsp/bin/pystamps", line 9, in <module>
    load_entry_point('pystamps==0.1.0', 'console_scripts', 'pystamps')()
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 525, in cli
    pystamps(args.file)
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 499, in pystamps
    display = MainWindow(image_set.images)
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 270, in __init__
    self.main_window_set()
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 277, in main_window_set
    title_height = self.images[0].title.height()
IndexError: list index out of range

Using python Python 2.7.10.

pip environment is

astropy==1.0.3
flake8==2.4.1
ginga==2.4.20150725031607
mccabe==0.3.1
numpy==1.9.2
pdsview==0.3.0
pep8==1.5.7
planetary-test-data==0.3.3
planetaryimage==0.2.0
pluggy==0.3.0
pvl==0.1.1
py==1.4.30
pyflakes==0.8.1
PySide==1.2.2
-e [email protected]:planetarypy/pystamps.git@9fbf88ecd843eec676a5335e5660fb8474ec3e5c#egg=pystamps-master
pytest==2.7.2
pytest-qt==1.5.0
pytz==2015.4
six==1.9.0
tox==2.1.1
virtualenv==13.1.0
wheel==0.23.0
@percurnicus
Copy link
Member

Did you run pyside_postinstall.py -install? Im also updating pystamps so if there are no pds images the window comes up blank.

godber pushed a commit that referenced this issue Aug 25, 2015
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

No branches or pull requests

2 participants