Diamond crashes on launch

Bug #987872 reported by David Ham
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Spud
New
High
Patrick Farrell

Bug Description

I found some time to start playing around with spud and have a problem with diamond:

m214089@wanglung% ../diamond/bin/diamond -v -s ballistics.rng ballistics.xml
Traceback (most recent call last):
 File "../diamond/bin/diamond", line 301, in <module>
   sys.exit(main())
 File "../diamond/bin/diamond", line 98, in main
   import diamond.config as config
 File "/Volumes/Work/m214089/Projects/spud/diamond/bin/../diamond/config.py", line 79, in <module>
   key, value = ("default", keyvalue[0]) if len(keyvalue) == 1 else keyvalue
ValueError: too many values to unpack

python 2.7.3

m214089@wanglung% bzr update
Tree is up to date at revision 524 of branch http://bazaar.launchpad.net/~spud/spud/trunk

Could you give me some hint, what is going wrong?

Thanks,
Luis

Revision history for this message
Patrick Farrell (pefarrell) wrote :

Hmm, that's interesting! The only way I could see that happening is if you have a line in one of your schemata files with two or more '='s in it. Can you paste the contents of any files in ~/.diamond/schemata, /usr/share/diamond/schemata, and /etc/diamond/schemata?

Revision history for this message
Patrick Farrell (pefarrell) wrote :

Also, can you try r525?

Jon Hill (jon-hill)
Changed in spud:
importance: Undecided → High
assignee: nobody → Patrick Farrell (pefarrell)
Revision history for this message
m214089 (luis-kornblueh) wrote :

Hi. the bug fix provided solved the problem for me. However, to get the current version running I needed to add the site-package path of diamond to my PYTHONPATH.

With respect to the installation documentation: it would be nice to get a clear split of the installation of the components of spud .

I'll like the idea and till now the implementation.

Congratulations!

Revision history for this message
Patrick Farrell (pefarrell) wrote :

Hi Luis,

If you run the version of diamond inside the spud checkout, it should pick up the source files inside the checkout, rather than a globally installed one -- i.e., I don't think you should need to modify your PYTHONPATH. But if it works for you, I'm very happy :-)

As for the distinction into components: I thought it was fairly clear on the website (http://amcg.ese.ic.ac.uk/index.php?title=Spud) and in the manual, where each component gets its own chapter -- can you be more specific about where the documentation could be clearer?

Thanks!

Patrick

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.