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

Mac bug: pprocess AttributeError module object has no attribute 'poll' #10

Closed
xguse opened this Issue Jul 17, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@xguse
Owner

xguse commented Jul 17, 2013

Full traceback

Traceback (most recent call last):
  File "/Users/name/virtualPython/bin/blacktie", line 9, in
<module>
    load_entry_point('blacktie==0.2.1qf1', 'console_scripts', 'blacktie')()
  File
"/Users/name/virtualPython/lib/python2.7/site-packages/blacktie/scripts/blacktie_pipeline.py",
line 152, in main
    queue = pprocess.Queue(limit=yargs.cufflinks_options.p)
  File
"/Users/name/virtualPython/lib/python2.7/site-packages/pprocess.py",
line 806, in __init__
    Exchange.__init__(self, *args, **kw)
  File
"/Users/name/virtualPython/lib/python2.7/site-packages/pprocess.py",
line 277, in __init__
    self.poller = select.poll()
AttributeError: 'module' object has no attribute 'poll'

@ghost ghost assigned xguse Jul 17, 2013

@xguse

This comment has been minimized.

Show comment
Hide comment
@xguse

xguse Jul 17, 2013

Owner

So far I have not figured out what is at fault, but I have written code to recognize the issue and continue without using pprocess.

A hotfix will be released today that treats this issue non-fatally.

Owner

xguse commented Jul 17, 2013

So far I have not figured out what is at fault, but I have written code to recognize the issue and continue without using pprocess.

A hotfix will be released today that treats this issue non-fatally.

@xguse xguse closed this Sep 10, 2014

@soulslicer

This comment has been minimized.

Show comment
Hide comment
@soulslicer

soulslicer Oct 4, 2015

How did you solve this pprocess issue

How did you solve this pprocess issue

@xguse

This comment has been minimized.

Show comment
Hide comment
@xguse

xguse Oct 4, 2015

Owner

Well I didn't exactly.

I added a try statement that if the pprocess complained about poll, just ran the logic in serial vs parallel. Is your question specific to blacktie or are you having a similar issue with pprocess in other code?

If its blacktie please let me know what version you are using so I can better help you. If its other code, I suggest NOT using pprocess. The standard python lib multiprocessing is very good and simple to use, so its a far better solution for code that is being written now.

Here is a short intro that shows how simple it is: http://sebastianraschka.com/Articles/2014_multiprocessing_intro.html#Introduction-to-the-multiprocessing-module

I think I am going to actually run an update to blacktie today using this instead actually. Thank you for reminding me about this issue!

Gus

Owner

xguse commented Oct 4, 2015

Well I didn't exactly.

I added a try statement that if the pprocess complained about poll, just ran the logic in serial vs parallel. Is your question specific to blacktie or are you having a similar issue with pprocess in other code?

If its blacktie please let me know what version you are using so I can better help you. If its other code, I suggest NOT using pprocess. The standard python lib multiprocessing is very good and simple to use, so its a far better solution for code that is being written now.

Here is a short intro that shows how simple it is: http://sebastianraschka.com/Articles/2014_multiprocessing_intro.html#Introduction-to-the-multiprocessing-module

I think I am going to actually run an update to blacktie today using this instead actually. Thank you for reminding me about this issue!

Gus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment