Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import error when running brenda-work #22

Open
PrismaPhonic opened this issue Sep 14, 2015 · 2 comments
Open

Cannot import error when running brenda-work #22

PrismaPhonic opened this issue Sep 14, 2015 · 2 comments

Comments

@PrismaPhonic
Copy link

seems to install fine, but I get a few errors trying to run brenda-work. when running from normal user I get:

$ brenda-work
Traceback (most recent call last):
File "/usr/bin/brenda-work", line 20, in
from brenda import config, work, aws, version
ImportError: cannot import name 'config'

When I run with sudo I get:

$ sudo brenda-work
Traceback (most recent call last):
File "/usr/bin/brenda-work", line 20, in
from brenda import config, work, aws, version
File "/usr/lib/python3.4/site-packages/brenda/work.py", line 79
print task,
^
SyntaxError: Missing parentheses in call to 'print'

It seems as though the syntax error is related to changes in Python 3. Not sure what is causing the import error though.

@PrismaPhonic
Copy link
Author

Alright, fixed this by running:

python2 setup.py install

instead of

python setup.py install.

Everything seems to work perfectly except for the step where I try to bit on c1.xlarge. I get an error that I've exceeded the maximum spot instance request if I request more than one server.

@PrismaPhonic
Copy link
Author

Alright, it appears the 1 server limit for spot is something they do for new accounts.

I can get as much ondemand as I want. Here's the issue I run into with on demand. It's not rendering anything!

The output of my tail log for every server is this:

AttributeError: 'NoneType' object has no attribute 'read'
------- ec2-52-22-34-239.compute-1.amazonaws.com
self.func()
File "/usr/local/bin/brenda-node", line 105, in
func = lambda : node.run_tasks(opts, args, conf)
File "/usr/local/lib/python2.7/dist-packages/brenda/node.py", line 342, in run_tasks
error.retry(conf, task_loop)
File "/usr/local/lib/python2.7/dist-packages/brenda/error.py", line 37, in retry
ret = action()
File "/usr/local/lib/python2.7/dist-packages/brenda/node.py", line 154, in task_loop
task.msg = q.read()
AttributeError: 'NoneType' object has no attribute 'read'

Any ideas why this might be happening?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant