Jump to content

testing KeyError 'LOGNAME'


taotang

Recommended Posts

Hi,

I used source code to build ftrack_connect to my python directory, then I tried to test it by compiling py files in test/interactive directory.

Some files work fine, but some are not. This one: asset_manager.py has following compiling error:

PS E:\FtrackTest\ftrack-ftrack-connect\test\interactive> python asset_manager.py
Traceback (most recent call last):
  File "asset_manager.py", line 28, in <module>
    WidgetHarness().run()
  File "E:\FtrackTest\ftrack-ftrack-connect\test\interactive\harness.py", line 103, in run
    widget = self.constructWidget()
  File "asset_manager.py", line 19, in constructWidget
    ('69eea69c-bb2e-11e4-85e2-20c9d081909b', 'Foo')
  File "E:\FtrackTest\ftrack-ftrack-connect\test\interactive\connector.py", line 11, in __init__
    super(TestConnector, self).__init__()
  File "C:\Python27\lib\site-packages\ftrack_connect-1.1.1-py2.7.egg\ftrack_connect\connector\base.py", line 39, in __init__
    self.session = session or connect_session.get_shared_session()
  File "C:\Python27\lib\site-packages\ftrack_connect-1.1.1-py2.7.egg\ftrack_connect\session.py", line 44, in get_shared_session
    api_user=os.environ['LOGNAME'],
  File "C:\Python27\lib\os.py", line 425, in __getitem__
    return self.data[key.upper()]

KeyError: 'LOGNAME'

Can someone help me with this? Thank you very much!

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...