jamesyonan / brenda

Blender render farm software for Amazon Web Services
Other
245 stars 67 forks source link

Error importing paracurl #1

Closed hjw3001 closed 10 years ago

hjw3001 commented 10 years ago

Hi,

I am working on setting up brenda on OS X 10.7.5. When I run:

brenda-run -i c1.xlarge price

Traceback (most recent call last): File "/Users/Henry/Blender/utils/brenda/brenda-run", line 20, in from brenda import aws, config, run, version File "/Users/Henry/Blender/utils/brenda/brenda/aws.py", line 20, in import paracurl ImportError: No module named paracurl

I see paracurl/paracurl.c what are the steps to compile?

jamesyonan commented 10 years ago

When installing Brenda, the "python setup.py install" command should install paracurl.

James

hjw3001 commented 10 years ago

I re-ran: sudo python setup.py install

running install running build running build_py running build_ext running build_scripts running install_lib running install_scripts changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/brenda-ebs to 755 changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/brenda-node to 755 changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/brenda-run to 755 changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/brenda-tool to 755 changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/brenda-work to 755 running install_data running install_egg_info Removing /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Brenda-0.5.2-py2.7.egg-info Writing /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Brenda-0.5.2-py2.7.egg-info

The paracurl error still occurs

brenda-run -i c1.xlarge price Traceback (most recent call last): File "./brenda-run", line 20, in from brenda import aws, config, run, version File "/Users/Henry/Blender/utils/brenda/brenda/aws.py", line 20, in import paracurl ImportError: No module named paracurl

I have the brenda directory in PATH. Are there any other environment variables that need to be set?

hjw3001 commented 10 years ago

I figured out the issue. I was running the brenda commands from the directory I pulled from github.

I need to update my path to include Brenda in the Frameworks directory

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/brenda-run -i c1.xlarge price Spot price data for instance c1.xlarge us-east-1b 2013-11-30T05:37:27.000Z $0.07 us-east-1c 2013-11-30T05:30:06.000Z $0.07 us-east-1d 2013-11-30T05:30:06.000Z $0.07