Project

General

Profile

Actions

Bug #1434

open

Mac OS and Linux do not share certain commands for finding device information

Added by Anchi Cheng about 13 years ago. Updated about 13 years ago.

Status:
In Test
Priority:
Low
Assignee:
Category:
-
Start date:
09/26/2011
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 2.1.0
Show in known bugs:
No
Workaround:

Description

For example,

Could not start manualpicker.py because neither lspci nor /sbin/lspci could be found

Traceback (most recent call last):
File "/Users/acheng/myami/appion/bin/manualpicker.py", line 647, in <module>
imgLoop = ManualPicker()
File "/Users/acheng/myami/appion/appionlib/particleLoop2.py", line 95, in init
appionLoop2.AppionLoop.__init__(self)
File "/Users/acheng/myami/appion/appionlib/appionLoop2.py", line 30, in init
appionScript.AppionScript.__init__(self, True)
File "/Users/acheng/myami/appion/appionlib/appionScript.py", line 102, in init
self.uploadScriptData()
File "/Users/acheng/myami/appion/appionlib/appionScript.py", line 242, in uploadScriptData
hostq['gpu_vendor'] = apParam.getGPUVendor()
File "/Users/acheng/myami/appion/appionlib/apParam.py", line 154, in getGPUVendor
proc = subprocess.Popen(pciexe, shell=True, stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in init
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1007, in _execute_child
args = list(args)
TypeError: 'NoneType' object is not iterable

Actions #1

Updated by Anchi Cheng about 13 years ago

  • Assignee set to Neil Voss

Neil,

I assign this to you only because I don't know enough about the possible substitutes for the various device and vendor check you put in place. Since Appion is not supporting Mac officially, it is no hurry. Just keep it in mind if you or your students are tempted to use Mac as development environment.

I just catch the exception in r16070 so that I can move on.

Actions #2

Updated by Neil Voss about 13 years ago

  • Status changed from Assigned to In Test
  • Assignee changed from Neil Voss to Anchi Cheng

You change is good enough for me. There is no lspci on a Mac (or Windows) for that matter. I've reviewed your code and setting it to "In test".

Here is some more info on the matter.

http://hintsforums.macworld.com/showthread.php?t=69716

Actions

Also available in: Atom PDF