Hi Cristian, You tell us you are using a particular Linux distribution. I doubt this matters – if you got as far as Larix running, then the OS-specific or distribution-specific challenges are almost all solved. But then you also say that you
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd

Hi Cristian, 

 

You tell us you are using a particular Linux distribution. I doubt this matters – if you got as far as Larix running, then the OS-specific or distribution-specific challenges are almost all solved.  But then you also say that you are opening a ".xlsx" data file.  Are you really opening an Excel spreadsheet file?   I can certainly believe that will lead to problems! 

 

In general, when asking about an error reading in a data file,  it is probably a good idea to assume that you should attach an example file that shows the problem. 

 

 

 


From: Ifeffit <ifeffit-bounces@millenia.cars.aps.anl.gov> on behalf of Chris Vijeu <cv236@kent.ac.uk>
Sent: Sunday, February 18, 2024 4:22 AM
To: ifeffit@millenia.cars.aps.anl.gov <ifeffit@millenia.cars.aps.anl.gov>
Subject: [Ifeffit] Larix.desktop on Arch Linux AttributeError: 'list' object has no attribute 'shape'

 

This Message Is From an External Sender

This message came from outside your organization.

 

Hello,

 

So I recently installed Larch on two different machines running two different distributions of Arch (Manjaro and EndeavourOS). When I am starting Larix.desktop from the terminal and open a .xlsx data file with two columns (energy and intensity), I get the following error:

 

Traceback (most recent call last):

  File "/home/chris/xraylarch/lib/python3.11/site-packages/larch/wxxas/xasgui.py", line 1162, in onReadDialog

    self.onRead(path)

  File "/home/chris/xraylarch/lib/python3.11/site-packages/larch/wxxas/xasgui.py", line 1187, in onRead

    self.show_subframe('readfile', ColumnDataFileFrame, filename=path,

  File "/home/chris/xraylarch/lib/python3.11/site-packages/larch/wxxas/xasgui.py", line 1114, in show_subframe

    self.subframes[name] = frameclass(self, **opts)

                           ^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/chris/xraylarch/lib/python3.11/site-packages/larch/wxlib/columnframe.py", line 870, in __init__

    self.set_energy_units()

  File "/home/chris/xraylarch/lib/python3.11/site-packages/larch/wxlib/columnframe.py", line 1208, in set_energy_units

    ncol, npts = workgroup.data.shape

                 ^^^^^^^^^^^^^^^^^^^^

AttributeError: 'list' object has no attribute 'shape'

 

 

I haven't modified any of the respective files at all. This is what the programme came as.

 

Chris

 

Cristian Vijeu,

Postgraduate PhD Student, Materials for Energy and Electronics

Division of Natural Sciences