nanomsg / nnpy

cffi-based Python bindings for nanomsg
MIT License
117 stars 39 forks source link

TypeError: 'NoneType' object is not iterable #51

Closed XiaosuWang closed 6 years ago

XiaosuWang commented 6 years ago

hi guys,when i used pip install nnpy in Centos,i got error like "TypeError: 'NoneType' object is not iterable",details like: ( is there anyone can help me?)

Downloading/unpacking nnpy Downloading nnpy-1.4.2.tar.gz Running setup.py (path:/tmp/pip_build_root/nnpy/setup.py) egg_info for package nnpy Traceback (most recent call last): File "", line 17, in File "/tmp/pip_build_root/nnpy/setup.py", line 3, in setup( File "/opt/jython/Lib/distutils/core.py", line 112, in setup _setup_distribution = dist = klass(attrs) File "/opt/jython/Lib/distutils/core.py", line 112, in setup _setup_distribution = dist = klass(attrs) File "/opt/jython/Lib/site-packages/setuptools/dist.py", line 265, in init self.fetch_build_eggs(attrs['setup_requires']) File "/opt/jython/Lib/site-packages/setuptools/dist.py", line 307, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/opt/jython/Lib/site-packages/pkg_resources/init.py", line 800, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/opt/jython/Lib/site-packages/pkg_resources/init.py", line 1050, in best_match return self.obtain(req, installer) File "/opt/jython/Lib/site-packages/pkg_resources/init.py", line 1062, in obtain return installer(requirement) File "/opt/jython/Lib/site-packages/setuptools/dist.py", line 377, in fetch_build_egg return cmd.easy_install(req) File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 629, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 659, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 844, in install_eggs return self.build_and_install(setup_script, setup_base) File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 1072, in build_and_install self.run_setup(setup_script, setup_base, args) File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 1058, in run_setup run_setup(setup_script, args) File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 1058, in run_setup run_setup(setup_script, args) File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 237, in run_setup DirectorySandbox(setup_dir).run(runner) File "/opt/jython/Lib/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 193, in setup_context yield File "/opt/jython/Lib/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback) File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 164, in save_modules saved_exc.resume() File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 139, in resume compat.reraise(type, exc, self._tb) File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 237, in run_setup DirectorySandbox(setup_dir).run(runner) File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 237, in run_setup DirectorySandbox(setup_dir).run(runner) File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 267, in run return func() File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 236, in runner _execfile(setup_script, ns) File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 46, in _execfile exec(code, globals, locals) File "/tmp/easy_install-5qFCQ6/cffi-1.11.4/setup.py", line 138, in File "/tmp/easy_install-5qFCQ6/cffi-1.11.4/setup.py", line 66, in ask_supports_thread File "/opt/jython/Lib/distutils/command/config.py", line 232, in try_compile self._compile(body, headers, include_dirs, lang) File "/opt/jython/Lib/distutils/command/config.py", line 232, in try_compile self._compile(body, headers, include_dirs, lang) File "/opt/jython/Lib/distutils/command/config.py", line 136, in _compile (obj,) = self.compiler.object_filenames([src]) File "/opt/jython/Lib/distutils/ccompiler.py", line 871, in object_filenames if ext not in self.src_extensions: TypeError: 'NoneType' object is not iterable Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/tmp/pip_build_root/nnpy/setup.py", line 3, in

setup(

File "/opt/jython/Lib/distutils/core.py", line 112, in setup

_setup_distribution = dist = klass(attrs)

File "/opt/jython/Lib/distutils/core.py", line 112, in setup

_setup_distribution = dist = klass(attrs)

File "/opt/jython/Lib/site-packages/setuptools/dist.py", line 265, in init

self.fetch_build_eggs(attrs['setup_requires'])

File "/opt/jython/Lib/site-packages/setuptools/dist.py", line 307, in fetch_build_eggs

resolved_dists = pkg_resources.working_set.resolve(

File "/opt/jython/Lib/site-packages/pkg_resources/init.py", line 800, in resolve

dist = best[req.key] = env.best_match(req, ws, installer)

File "/opt/jython/Lib/site-packages/pkg_resources/init.py", line 1050, in best_match

return self.obtain(req, installer)

File "/opt/jython/Lib/site-packages/pkg_resources/init.py", line 1062, in obtain

return installer(requirement)

File "/opt/jython/Lib/site-packages/setuptools/dist.py", line 377, in fetch_build_egg

return cmd.easy_install(req)

File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 629, in easy_install

return self.install_item(spec, dist.location, tmpdir, deps)

File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 659, in install_item

dists = self.install_eggs(spec, download, tmpdir)

File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 844, in install_eggs

return self.build_and_install(setup_script, setup_base)

File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 1072, in build_and_install

self.run_setup(setup_script, setup_base, args)

File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 1058, in run_setup

run_setup(setup_script, args)

File "/opt/jython/Lib/site-packages/setuptools/command/easy_install.py", line 1058, in run_setup

run_setup(setup_script, args)

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 237, in run_setup

DirectorySandbox(setup_dir).run(runner)

File "/opt/jython/Lib/contextlib.py", line 35, in exit

self.gen.throw(type, value, traceback)

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 193, in setup_context

yield

File "/opt/jython/Lib/contextlib.py", line 35, in exit

self.gen.throw(type, value, traceback)

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 164, in save_modules

saved_exc.resume()

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 139, in resume

compat.reraise(type, exc, self._tb)

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 237, in run_setup

DirectorySandbox(setup_dir).run(runner)

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 237, in run_setup

DirectorySandbox(setup_dir).run(runner)

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 267, in run

return func()

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 236, in runner

_execfile(setup_script, ns)

File "/opt/jython/Lib/site-packages/setuptools/sandbox.py", line 46, in _execfile

exec(code, globals, locals)

File "/tmp/easy_install-5qFCQ6/cffi-1.11.4/setup.py", line 138, in

File "/tmp/easy_install-5qFCQ6/cffi-1.11.4/setup.py", line 66, in ask_supports_thread

File "/opt/jython/Lib/distutils/command/config.py", line 232, in try_compile

self._compile(body, headers, include_dirs, lang)

File "/opt/jython/Lib/distutils/command/config.py", line 232, in try_compile

self._compile(body, headers, include_dirs, lang)

File "/opt/jython/Lib/distutils/command/config.py", line 136, in _compile

(obj,) = self.compiler.object_filenames([src])

File "/opt/jython/Lib/distutils/ccompiler.py", line 871, in object_filenames

if ext not in self.src_extensions:

TypeError: 'NoneType' object is not iterable


Cleaning up... Command "python setup.py egg_info" failed with error code 1 in /tmp/pip_build_root/nnpy Storing debug log for failure in /root/.pip/pip.log

XiaosuWang commented 6 years ago

and i want to know that is nnpy the first recommended for nanomsg in Python? thx

djc commented 6 years ago

I don't think Jython is supported by the CFFI library nnpy uses to interact with nanomsg, so you'll have to work with either CPython or pypy.

There was a discussion about what Python bindings to use on the mailing list in August 2017, you can have a look at that. https://www.freelists.org/post/nanomsg/Recommended-Python-bindings

XiaosuWang commented 6 years ago

thank u very much,is nnpy the first recommended for nanomsg in Python? will u maintain to finish this project(nnpy)? i want to use nnpy in my project.

XiaosuWang commented 6 years ago

thank u djc very much,i already read the links, thank u very much