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

'module' object has no attribute 'NSIG' #518

Closed
avelkoski opened this issue Jan 13, 2017 · 4 comments
Closed

'module' object has no attribute 'NSIG' #518

avelkoski opened this issue Jan 13, 2017 · 4 comments

Comments

@avelkoski
Copy link

avelkoski commented Jan 13, 2017

Works on Python 2.7.12 :: Anaconda 4.2.0 (64-bit). However, for me, not on Python 2.7.11 and 2.7.13 :: Anaconda 2.5.0 (64-bit), as well as some Python 2.6.x. Curious if others have seen this.

data@data:~$ locust -f load_test.py --host=https://somewebsite.com
[2017-01-13 17:08:08,683] data/INFO/locust.main: Starting web monitor at *:8089
[2017-01-13 17:08:08,684] data/ERROR/stderr: Traceback (most recent call last):
[2017-01-13 17:08:08,684] data/ERROR/stderr: File "/anaconda/bin/locust", line 11, in
[2017-01-13 17:08:08,684] data/ERROR/stderr:
[2017-01-13 17:08:08,684] data/ERROR/stderr: sys.exit(main())
[2017-01-13 17:08:08,684] data/ERROR/stderr: File "/anaconda/lib/python2.7/site-packages/locust/main.py", line 437, in main
[2017-01-13 17:08:08,685] data/ERROR/stderr:
[2017-01-13 17:08:08,685] data/ERROR/stderr: gevent.signal(signal.SIGTERM, sig_term_handler)
[2017-01-13 17:08:08,685] data/ERROR/stderr: File "/anaconda/lib/python2.7/site-packages/gevent/init.py", line 101, in new
[2017-01-13 17:08:08,685] data/ERROR/stderr:
[2017-01-13 17:08:08,685] data/ERROR/stderr: return _signal_class(*args, **kwargs)
[2017-01-13 17:08:08,686] data/ERROR/stderr: File "/anaconda/lib/python2.7/site-packages/gevent/hub.py", line 265, in init
[2017-01-13 17:08:08,686] data/ERROR/stderr:
[2017-01-13 17:08:08,686] data/ERROR/stderr: self.watcher = self.hub.loop.signal(signalnum, ref=False)
[2017-01-13 17:08:08,686] data/ERROR/stderr: File "gevent/core.pyx", line 478, in gevent.core.loop.signal (gevent/gevent.core.c:8689)
[2017-01-13 17:08:08,686] data/ERROR/stderr: File "gevent/core.pyx", line 1136, in gevent.core.signal.init (gevent/gevent.core.c:19627)
[2017-01-13 17:08:08,687] data/ERROR/stderr: AttributeError
[2017-01-13 17:08:08,687] data/ERROR/stderr: :
[2017-01-13 17:08:08,687] data/ERROR/stderr: 'module' object has no attribute 'NSIG'
[2017-01-13 17:08:08,687] data/ERROR/stderr:

@DonerKebab
Copy link

i have the same issue.

@iainlbc
Copy link

iainlbc commented Mar 16, 2017

coworker ran into this as well

module' object has no attribute 'NSIG' error when using Python 2.7.12 :: Anaconda 2.2.0 (x86_64) - OSX

works fine for me on ubuntu using Python 2.7.12

@daiguadaidai
Copy link

initial version is: gevent-1.1.0
I uninstall gevent

pip uninstall gevent

install gevent version: gevent-1.0.0, this opration waiting some time

pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple gevent==1.0.0

upgrade gevent to gevent-1.1.0, this opration fast

pip install --upgrade  -i https://pypi.tuna.tsinghua.edu.cn/simple gevent==1.1.0

upgrade gevent to gevent-1.2.2, this opration waiting some time

pip install --upgrade  -i https://pypi.tuna.tsinghua.edu.cn/simple gevent==1.2.2

@cyberw
Copy link
Collaborator

cyberw commented Oct 18, 2019

Hopefully no longer an issue. Closing due to inactivity.

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

No branches or pull requests

7 participants