You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing the listener agent using the publicly available package on PyPi fails. However, I can install this agent by cloning the official repo, checking out the 'develop' branch, and then running vctl install <path to listener repo>.
Environment:
Ubuntu 18.04
Python 3.10.0
Steps to reproduce:
Create and then activate virtual environment
Install volttron: pip install volttron
Start volttron: volttron -vv -l volttron.log &
Install listener: pip install volttron-listener or install using vctl install volttron-listener
Expected output for pip install:
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─
er using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
Compiling src/gevent/resolver/cares.pyx because it changed.
[1/1] Cythonizing src/gevent/resolver/cares.pyx
warning: src/gevent/libev/corecext.pyx:325:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:783:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:785:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:787:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: src/gevent/libev/corecext.pyx:791:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
Compiling src/gevent/libev/corecext.pyx because it changed.
[1/1] Cythonizing src/gevent/libev/corecext.pyx
Compiling src/gevent/_greenlet_primitives.py because it changed.
[1/1] Cythonizing src/gevent/_greenlet_primitives.py
Compiling src/gevent/_hub_primitives.py because it changed.
[1/1] Cythonizing src/gevent/_hub_primitives.py
Compiling src/gevent/_hub_local.py because it changed.
[1/1] Cythonizing src/gevent/_hub_local.py
Compiling src/gevent/_waiter.py because it changed.
[1/1] Cythonizing src/gevent/_waiter.py
warning: src/gevent/_gevent_cgreenlet.pxd:112:33: Declarations should not be declared inline.
Error compiling Cython file:
------------------------------------------------------------
...
cdef load_traceback
cdef Waiter
cdef wait
cdef iwait
cdef reraise
cpdef GEVENT_CONFIG
^
------------------------------------------------------------
src/gevent/_gevent_cgreenlet.pxd:181:6: Variables cannot be declared with 'cpdef'. Use 'cdef' instead. [0/274]
Compiling src/gevent/greenlet.py because it changed.
[1/1] Cythonizing src/gevent/greenlet.py
Traceback (most recent call last):
File "/home/developer/volttron-modular/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351,
in<module>main()
File "/home/developer/volttron-modular/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333,
in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/developer/volttron-modular/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118,
in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-757w8drt/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_bui
ld_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-757w8drt/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-757w8drt/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 483, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-757w8drt/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 287, in<module>
File "/tmp/pip-install-pry_exru/gevent_2e07a891c2ed46f6bd2d4eec2e8bbde3/_setuputils.py", line 236, in cythonize1
new_ext = cythonize(
File "/tmp/pip-build-env-757w8drt/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1129, in cythonize
cythonize_one(*args)
File "/tmp/pip-build-env-757w8drt/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1296, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: src/gevent/greenlet.py
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
Expected output for vctl install:
File "/home/developer/volttron-modular/.venv/lib/python3.10/site-packages/gevent/_compat.py", line 66, in reraise
raise value
volttron.utils.jsonrpc.RemoteError: builtins.RuntimeError('\nError executing command: Below Command failed with non zero exit code.\nCommand:[\'pip\', \'install\', \'/tmp/tmphiy95fat/volttron_listener-0.1.0-py3-none-any.whl\'] \nStdout:\nb"Processing /tmp/tmphiy95fat/volttron_listener-0.1.0-py3-none-any.whl\\nCollecting volttron-client<0.4.0,>=0.3.8\\n Using cached volttron_client-0.3.8-py3-none-any.whl (144 kB)\\nCollecting requests<3.0.0,>=2.26.0\\n Using cached requests-2.28.1-py3-none-any.whl (62 kB)\\nCollecting charset-normalizer<3,>=2\\n Using cached charset_normalizer-2.1.1-py3-none-any.whl (39 kB)\\nCollecting urllib3<1.27,>=1.21.1\\n Using cached urllib3-1.26.12-py2.py3-none-any.whl (140 kB)\\nCollecting idna<4,>=2.5\\n Using cached idna-3.4-py3-none-any.whl (61 kB)\\nCollecting certifi>=2017.4.17\\n Using cached certifi-2022.9.24-py3-none-any.whl (161 kB)\\nCollecting volttron-utils==0.3.4\\n Using cached volttron_utils-0.3.4-py3-none-any.whl (70 kB)\\nCollecting asn1crypto==1.4.0\\n Using cached asn1crypto-1.4.0-py2.py3-none-any.whl (104 kB)\\nCollecting zope.interface==5.4.0\\n Using cached zope.interface-5.4.0.tar.gz (249 kB)\\n Preparing metadata (setup.py): started\\n Preparing metadata (setup.py): finished with status \'done\'\\nCollecting psutil==5.8.0\\n Using cached psutil-5.8.0.tar.gz (470 kB)\\n Preparing metadata (setup.py): started\\n Preparing metadata (setup.py): finished with status \'done\'\\nRequirement already satisfied: pyyaml==6.0 in ./.venv/lib/python3.10/site-packages (from volttron-client<0.4.0,>=0.3.8->volttron-listener==0.1.0) (6.0)\\nCollecting gevent==20.6.1\\n Using cached gevent-20.6.1.tar.gz (5.8 MB)\\n Installing build dependencies: started\\n Installing build dependencies: finished with status \'done\'\\n Getting requirements to build wheel: started\\n Getting requirements to build wheel: finished with status \'error\'\\n"\nStderr:\nb\' error: subprocess-exited-with-error\\n \\n \\xc3\\x97 Getting requirements to build wheel did not run successfull
\\n warning: src/gevent/libev/corecext.pyx:325:0: The \\\'DEF\\\' statement is deprecated and will be removed in a future Cython
version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310\\n warning: src/gevent/libev/corecext.pyx:783:0: The \\\'DEF\\\' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310\\n warning: src/gevent/libev/corecext.pyx:785:0: The \\\'DEF\\\' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310\\n warning: src/gevent/libev/corecext.pyx:787:0: The \\\'DEF\\\' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310\\n warning: src/gevent/libev/corecext.pyx:791:0: The \\\'DEF\\\' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310\\n Compiling src/gevent/libev/corecext.pyx because it changed.\\n [1/1] Cythonizing src/gevent/libev/corecext.pyx\\n Compiling src/gevent/_greenlet_primitives.py because it changed.\\n [1/1] Cythonizing src/gevent/_greenlet_primitives.py\\n Compiling src/gevent/_hub_primitives.py because it changed.\\n [1/1] Cythonizing src/gevent/_hub_primitives.py\\n Compiling src/gevent/_hub_local.py because it changed.\\n [1/1] Cythonizing src/gevent/_hub_local.py\\n Compiling src/gevent/_waiter.py because it changed.\\n [1/1] Cythonizing src/gevent/_waiter.py\\n warning: src/gevent/_gevent_cgreenlet.pxd:112:33: Declarations should not be declared inline.\\n \\n Error compiling Cython file:\\n ------------------------------------------------------------\\n ...\\n cdef load_traceback\\n cdef Waiter\\n cdef wait\\n cdef iwait\\n [0/1840] reraise\\n cpdef GEVENT_CONFIG\\n ^\\n ------------------------------------------------------------\\n \\n src/gevent/_gevent_cgreenlet.pxd:181:6: Variables cannot be declared with \\\'cpdef\\\'. Use \\\'cdef\\\' instead.\\n Compiling src/gevent/greenlet.py because it changed.\\n [1/1] Cythonizing src/gevent/greenlet.py\\n Traceback (most recent call last):\\n File "/home/developer/volttron-modular/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>\\n main()\\n File "/home/developer/volttron-modular/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main\\n json_out[\\\'return_val\\\'] = hook(**hook_input[\\\'kwargs\\\'])\\n File "/home/developer/volttron-modular/.venv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 118, in get_requires_for_build_wheel\\n return hook(config_settings)\\n File "/tmp/pip-build-env-k8mz2swx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel\\n return self._get_build_requires(config_settings, requirements=[\\\'wheel\\\'])\\n File "/tmp/pip-build-env-k8mz2swx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires\\n self.run_setup()\\n File "/tmp/pip-build-env-k8mz2swx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 483, in run_setup\\n super(_BuildMetaLegacyBackend,\\n File "/tmp/pip-build-env-k8mz2swx/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 335, in run_setup\\n exec(code, locals())\\n File "<string>", line 287, in <module>\\n File "/tmp/pip-install-0u7qvibf/gevent_d6b8ebfba4ac422c828f489e53181674/_setuputils.py", line 236, in cythonize1\\n new_ext = cythonize(\\n File "/tmp/pip-build-env-k8mz2swx/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1129, in cythonize\\n cythonize_one(*args)\\n File "/tmp/pip-build-env-k8mz2swx/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1296, in cythonize_one\\n raise CompileError(None, pyx_file)\\n Cython.Compiler.Errors.CompileError: src/gevent/greenlet.py\\n [end of output]\\n \\n note: This error originates from a subprocess, and is likely not a problem with pip.\\nerror: subprocess-exited-with-error\\n\\n\\xc3\\x97 Getting requirements to build wheel did not run successfully.\\n\\xe2\\x94\\x82 exit code: 1\\n\\xe2\\x95\\xb0\\xe2\\x94\\x80> See above for output.\\n\\nnote: This error originates from a subprocess, and is likely not a problem with pip.\\n\'\n')
The text was updated successfully, but these errors were encountered:
bonicim
changed the title
Cannot install listener via pip
Cannot install listener via pip or vctl install
Nov 9, 2022
Installing the listener agent using the publicly available package on PyPi fails. However, I can install this agent by cloning the official repo, checking out the 'develop' branch, and then running
vctl install <path to listener repo>
.Environment:
Ubuntu 18.04
Python 3.10.0
Steps to reproduce:
pip install volttron
volttron -vv -l volttron.log &
pip install volttron-listener
or install usingvctl install volttron-listener
Expected output for pip install:
Expected output for vctl install:
The text was updated successfully, but these errors were encountered: