Project

General

Profile

Problem re-installing Leginon client

Added by Morgan Beeby almost 2 years ago

Hi Anchi,

Our Glacios/Selectris/Falcon4 has been down in recent months and culminated in a replacement of the microscope PC. This has required an install of Leginon on the MPC from scratch. The git pull of the trunk branch from July 16th 2022 was used. We were previously using a trunk pulled around September 2021.

For starting calibrations (https://emg.nysbc.org/projects/leginon/wiki/Start_Leginon) I am able to "set up" a session for the calibration program by launching "start-leginon.py" on the MPC, but it closes immediately after pressing Finish leaving the following error:

    C:\Python27>python.exe Lib\site-packages\leginon\start-leginon.py
    Leginon version:   100000
    Traceback (most recent call last):
      File "C:\Python27\lib\site-packages\leginon\gui\wx\SetupWizard.py", line 896, in onPageChanging
        directory)
      File "C:\Python27\lib\site-packages\leginon\gui\wx\SetupWizard.py", line 1126, in createSession
        return leginon.session.createSession(user, name, description, directory, holder=None, hidden=False)
      File "C:\Python27\lib\site-packages\leginon\session.py", line 146, in createSession
        'uid': os.getuid(),
    AttributeError: 'module' object has no attribute 'getuid'
    Exception AttributeError: "'NoneType' object has no attribute 'SessionReservationData'" in <bound method Reservation.__del__ of <leginon.session.Reservation object at 0x0690FBF0>> ignored

It doesn't seem to save the session to database.

Do you have a sense of what the issue might be...?

thanks,

Morgan & Trishant


Replies (1)

RE: Problem re-installing Leginon client - Added by Anchi Cheng almost 2 years ago

This is caused by a new feature to allow rawtransfer.py to be more cleanly defined in a transfer buffer system. See #12877. Unfortunately, os.getuid and os.getgid do not work on Windows. I have created issue #13212 and corrected this.

    (1-1/1)