Installation - Data Load Failure

Bug #1083329 reported by Karthik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Helioviewer.org
Fix Committed
High
Keith Hughitt

Bug Description

When I run "sudo python install.py", and when I load the sample data from the directory "/var/www/jp2" using the GUI, I get the following error in the background console.

Traceback (most recent call last):
  File "/var/www/install/helioviewer/installer/gui.py", line 121, in process_images
    process_jp2_images(self.images, jp2dir, cursor, mysql, self.update_progress)
  File "/var/www/install/helioviewer/jp2.py", line 39, in process_jp2_images
    insert_images(subset, sources, root_dir, cursor, mysql, step_fxn)
  File "/var/www/install/helioviewer/jp2.py", line 63, in insert_images
    directory, filename = os.path.split(img['filepath'])
TypeError: string indices must be integers, not str

The data load does not proceed any further after this error that I see in the console.

Revision history for this message
Keith Hughitt (keith-hughitt) wrote :

Ah, sorry about that! I did a major overhaul of the code which is responsible for downloading and ingesting new images (install/downloader.py or "hvpull") a while back and it looks like I broke the installer somewhere along the way.

This should fix things. Test it out though, and let me know if you come across any problems.

Changed in helioviewer.org:
assignee: nobody → Keith Hughitt (keith-hughitt)
importance: Undecided → High
status: New → Fix Committed
milestone: none → 2.3.1
Revision history for this message
Karthik (karthikgp) wrote :

I pulled the latest version of the code, and now it automatically goes to console based installation and not with GUI installation for loading data.

Moreover, the program stops now since I did not have sunpy installed. I will install sunpy and hopefully after that I should be able to load the data.

Thanks.

Revision history for this message
Karthik (karthikgp) wrote :

I will also create a new bug report regarding this.

Changed in helioviewer.org:
milestone: 2.3.1 → 2.4.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.