我的bash_profile设置为以下内容:
export PATH=/Users/nimam/jython2.7.0/bin:/opt/local/bin:/opt/local/sbin::/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
运行机器人框架的swinglibrary时,我需要包括jython,但我也想包括ImageHorizonLibrary。但是,我目前无法运行ImageHorizonLibrary。我收到以下错误。
[ ERROR ] Error in file '/Users/nimam/swinglibrary-demo/read_attributes.robot': Importing test library 'ImageHorizonLibrary' failed: ImportError: No module named ImageHorizonLibrary
Traceback (most recent call last):
None
PYTHONPATH:
/Users/nimam/jython2.7.0/bin
/Users/nimam/jython2.7.0/Lib
__classpath__
__pyclasspath__/
/Users/nimam/jython2.7.0/Lib/site-packages
CLASSPATH:
/Users/nimam/jython2.7.0/jython.jar
Rotarran-2.0.8-standalone.jar
如果我在bash_profile中注释了导出路径,它将识别ImageHorizonLibrary,但不能识别SwingLibrary。我收到以下错误:
[ ERROR ] Error in file '/Users/nimam/swinglibrary-demo/read_attributes.robot': Importing test library 'SwingLibrary' failed: ImportError: No module named SwingLibrary
Traceback (most recent call last):
None
PYTHONPATH:
/usr/local/bin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/nimam/Library/Python/2.7/lib/python/site-packages
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
我觉得我可以通过与virtualenv一起解决这个问题。请让我知道是否可以同时运行两个库。