reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmpygorpatw go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmpygorpatw/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-3vmetqis/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/wheel/bdist_wheel.py",
line 299, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for portforward
error: subprocess-exited-with-error
× Running setup.py install for portforward did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py:27:
SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running install
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and
pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmp2id8mf5w go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmp2id8mf5w/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-3vmetqis/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py",
line 68, in run
return orig.install.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/install.py",
line 698, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> portforward
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
flake8: exit 1 (1.62 seconds) /home/drawal/rl/portforward> python -I -m
pip install --force-reinstall --no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/5/portforward-0.4.0.tar.gz
pid=4718
.pkg: _exit> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
py36: SKIP (0.36 seconds)
py37: SKIP (0.34 seconds)
py38: FAIL code 1 (1.78 seconds)
flake8: FAIL code 1 (1.65 seconds)
evaluation failed :( (4.16 seconds)
On Mon, Jan 30, 2023 at 9:55 AM Dhar Rawal @.***>
wrote:

Running tox gives following output...
py36: skipped because could not find python interpreter with spec(s):
py36
py36: SKIP ⚠ in 0.52 seconds
py37: skipped because could not find python interpreter with spec(s):
py37
py37: SKIP ⚠ in 0.37 seconds
py38: failed with Could not open requirements file
/home/drawal/rl/portforward/requirements_dev.txt: [Errno 2] No such file or
directory: '/home/drawal/rl/portforward/requirements_dev.txt' for tox env
py within deps
py38: FAIL ✖ in 0.23 seconds
flake8: install_deps> python -I -m pip install flake8
.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0'
wheel
.pkg: _optional_hooks> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: get_requires_for_build_sdist> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: install_requires_for_build_sdist> python -I -m pip install
setuptools-golang
.pkg: prepare_metadata_for_build_wheel> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: build_sdist> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
flake8: install_package> python -I -m pip install --force-reinstall
--no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/1/portforward-0.4.0.tar.gz
Processing ./.tox/.tmp/package/1/portforward-0.4.0.tar.gz
Preparing metadata (setup.py) ... done
Building wheels for collected packages: portforward
Building wheel for portforward (setup.py) ... error
Running setup.py clean for portforward
Failed to build portforward
Installing collected packages: portforward
Running setup.py install for portforward ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py:27:
SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmp2udn2sn5 go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmp2udn2sn5/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-w16th8kp/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/wheel/bdist_wheel.py",
line 299, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for portforward
error: subprocess-exited-with-error
× Running setup.py install for portforward did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py:27:
SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running install
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and
pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmp25pt7mam go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmp25pt7mam/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-w16th8kp/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py",
line 68, in run
return orig.install.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/install.py",
line 698, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> portforward
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
flake8: exit 1 (1.72 seconds) /home/drawal/rl/portforward> python -I -m
pip install --force-reinstall --no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/1/portforward-0.4.0.tar.gz
pid=4142
.pkg: _exit> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
py36: SKIP (0.52 seconds)
py37: SKIP (0.37 seconds)
py38: FAIL code 1 (0.23 seconds)
flake8: FAIL code 1 (4.52 seconds)
evaluation failed :( (5.67 seconds)
On Mon, Jan 30, 2023 at 9:50 AM Dhar Rawal @.***>
wrote:

go version go1.19.5 linux/amd64
gcc -v gives the following output:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
9.4.0-1ubuntu1~20.04.1'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2
--prefix=/usr --with-gcc-major-version-only --program-suffix=-9
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
pip install ... gave following output:
Collecting git+https://github.com/pytogo/portforward.git
Cloning https://github.com/pytogo/portforward.git to
/tmp/pip-req-build-pyfgtasr
Running command git clone -q
https://github.com/pytogo/portforward.git /tmp/pip-req-build-pyfgtasr
Requirement already satisfied (use --upgrade to upgrade):
portforward==0.4.0 from git+https://github.com/pytogo/portforward.git
in /home/drawal/rl/portforward
Building wheels for collected packages: portforward
Building wheel for portforward (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/drawal/rl/portforward/.venv/bin/python3 -u -c 'import
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-req-build-pyfgtasr/setup.py'"'"';
file='"'"'/tmp/pip-req-build-pyfgtasr/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-l1hkn0mp
cwd: /tmp/pip-req-build-pyfgtasr/
Complete output (7 lines):
WARNING: The wheel package is not available.
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
ERROR: Failed building wheel for portforward
Running setup.py clean for portforward
Failed to build portforward
On Mon, Jan 30, 2023 at 12:33 AM Sebastian Ziemann <
@.***> wrote:

Could please provide the output of the following commands?

go version
gcc -v

This is also for verifying that both are available to the CLI.
And in addition - when your venv is active: Could you try to install
the portforward like
pip install git+https://github.com/pytogo/portforward.git

and share the complete output?

That helps me understanding what is going wrong. Thx!

—
Reply to this email directly, view it on GitHub
<https://github.com/pytogo/portforward/issues/11#issuecomment-1408069138>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3F2UHF2DTGAMTERCICSUBTWU5OCZANCNFSM6AAAAAATNY4SQ4>
.
You are receiving this because you were mentioned.Message ID:
<EMAIL_ADDRESS>

Does import portforward work fine? - No. See prior reply
On Mon, Jan 30, 2023 at 10:13 AM Dhar Rawal @.***> wrote:

However, when I run pytest manually using pytest ./tests/, I got below
========================================== test session starts
platform linux -- Python 3.8.10, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/drawal/rl/portforward, configfile: setup.cfg
plugins: docker-compose-3.2.1, xonsh-0.9.13
collected 0 items / 1 error
================================================= ERRORS
_______________________________ ERROR collecting tests/test_portforward.py

ImportError while importing test module
'/home/drawal/rl/portforward/tests/test_portforward.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_portforward.py:10: in
import portforward
E   ModuleNotFoundError: No module named 'portforward'
============================================ warnings summary
../../.local/lib/python3.8/site-packages/_pytest/config/init.py:1294
/home/drawal/.local/lib/python3.8/site-packages/_pytest/config/init.py:1294:
PytestConfigWarning: Unknown config option: collect_ignore
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================== short test summary info
ERROR tests/test_portforward.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================== 1 warning, 1 error in 0.04s
On Mon, Jan 30, 2023 at 10:04 AM Dhar Rawal @.***>
wrote:

after installing wheel, when I ran pip install git+
https://github.com/pytogo/portforward.git, it seems to have worked. See
below:
Collecting git+https://github.com/pytogo/portforward.git
Cloning https://github.com/pytogo/portforward.git to
/tmp/pip-req-build-i87ngndl
Running command git clone -q https://github.com/pytogo/portforward.git
/tmp/pip-req-build-i87ngndl
Requirement already satisfied (use --upgrade to upgrade):
portforward==0.4.0 from git+https://github.com/pytogo/portforward.git in
/home/drawal/rl/portforward
Building wheels for collected packages: portforward
Building wheel for portforward (setup.py) ... done
Created wheel for portforward:
filename=portforward-0.4.0-cp38-cp38-linux_x86_64.whl size=9055696
sha256=6d9841776355eefa85cf7a9171400fcd1617d5aaa7c20960637e20abcda6e64e
Stored in directory:
/tmp/pip-ephem-wheel-cache-myy40c53/wheels/4d/38/db/7eff6457ac6736250d743527941bbf872ee3fe099897909969
Successfully built portforward
On Mon, Jan 30, 2023 at 9:59 AM Dhar Rawal @.***>
wrote:

after I fixed the typo in tox.ini (changed requirements_dev.txt to
requirements-dev.txt), I got the following...
py36: skipped because could not find python interpreter with spec(s):
py36
py36: SKIP ⚠ in 0.36 seconds
py37: skipped because could not find python interpreter with spec(s):
py37
py37: SKIP ⚠ in 0.34 seconds
.pkg: _optional_hooks> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: get_requires_for_build_sdist> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: prepare_metadata_for_build_wheel> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: build_sdist> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
py38: install_package> python -I -m pip install --force-reinstall
--no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/4/portforward-0.4.0.tar.gz
Processing ./.tox/.tmp/package/4/portforward-0.4.0.tar.gz
Preparing metadata (setup.py) ... done
Building wheels for collected packages: portforward
Building wheel for portforward (setup.py) ... error
Running setup.py clean for portforward
Failed to build portforward
Installing collected packages: portforward
Running setup.py install for portforward ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmpzpv1te75 go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmpzpv1te75/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-yrlvneyn/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/wheel/bdist_wheel.py",
line 299, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for portforward
error: subprocess-exited-with-error
× Running setup.py install for portforward did not run successfully.
│ exit code: 1
╰─> [75 lines of output]
running install
/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and
pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmp9bt90rds go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmp9bt90rds/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-yrlvneyn/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/command/install.py",
line 68, in run
return orig.install.run(self)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/install.py",
line 698, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/home/drawal/rl/portforward/.tox/py38/lib/python3.8/site-packages/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> portforward
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
py38: exit 1 (1.25 seconds) /home/drawal/rl/portforward> python -I -m
pip install --force-reinstall --no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/4/portforward-0.4.0.tar.gz
pid=4685
flake8: install_package> python -I -m pip install --force-reinstall
--no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/5/portforward-0.4.0.tar.gz
py38: FAIL ✖ in 1.78 seconds
Processing ./.tox/.tmp/package/5/portforward-0.4.0.tar.gz
Preparing metadata (setup.py) ... done
Building wheels for collected packages: portforward
Building wheel for portforward (setup.py) ... error
Running setup.py clean for portforward
Failed to build portforward
Installing collected packages: portforward
Running setup.py install for portforward ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py:27:
SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmpygorpatw go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmpygorpatw/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-3vmetqis/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/wheel/bdist_wheel.py",
line 299, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for portforward
error: subprocess-exited-with-error
× Running setup.py install for portforward did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py:27:
SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running install
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and
pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache' found
under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmp2id8mf5w go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmp2id8mf5w/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such file
or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-3vmetqis/setup.py", line 17, in
setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py",
line 68, in run
return orig.install.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/install.py",
line 698, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-3vmetqis/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> portforward
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
flake8: exit 1 (1.62 seconds) /home/drawal/rl/portforward> python -I -m
pip install --force-reinstall --no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/5/portforward-0.4.0.tar.gz
pid=4718
.pkg: _exit> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
py36: SKIP (0.36 seconds)
py37: SKIP (0.34 seconds)
py38: FAIL code 1 (1.78 seconds)
flake8: FAIL code 1 (1.65 seconds)
evaluation failed :( (4.16 seconds)
On Mon, Jan 30, 2023 at 9:55 AM Dhar Rawal @.***>
wrote:

Running tox gives following output...
py36: skipped because could not find python interpreter with spec(s):
py36
py36: SKIP ⚠ in 0.52 seconds
py37: skipped because could not find python interpreter with spec(s):
py37
py37: SKIP ⚠ in 0.37 seconds
py38: failed with Could not open requirements file
/home/drawal/rl/portforward/requirements_dev.txt: [Errno 2] No such file or
directory: '/home/drawal/rl/portforward/requirements_dev.txt' for tox env
py within deps
py38: FAIL ✖ in 0.23 seconds
flake8: install_deps> python -I -m pip install flake8
.pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0'
wheel
.pkg: _optional_hooks> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: get_requires_for_build_sdist> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: install_requires_for_build_sdist> python -I -m pip install
setuptools-golang
.pkg: prepare_metadata_for_build_wheel> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
.pkg: build_sdist> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
flake8: install_package> python -I -m pip install --force-reinstall
--no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/1/portforward-0.4.0.tar.gz
Processing ./.tox/.tmp/package/1/portforward-0.4.0.tar.gz
Preparing metadata (setup.py) ... done
Building wheels for collected packages: portforward
Building wheel for portforward (setup.py) ... error
Running setup.py clean for portforward
Failed to build portforward
Installing collected packages: portforward
Running setup.py install for portforward ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [73 lines of output]
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py:27:
SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache'
found under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmp2udn2sn5 go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmp2udn2sn5/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such
file or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-w16th8kp/setup.py", line 17, in

setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/wheel/bdist_wheel.py",
line 299, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
ERROR: Failed building wheel for portforward
error: subprocess-exited-with-error
× Running setup.py install for portforward did not run successfully.
│ exit code: 1
╰─> [77 lines of output]
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/installer.py:27:
SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running install
/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py:34:
SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and
pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-38
copying portforward.py -> build/lib.linux-x86_64-cpython-38
running egg_info
writing portforward.egg-info/PKG-INFO
writing dependency_links to
portforward.egg-info/dependency_links.txt
writing top-level names to portforward.egg-info/top_level.txt
reading manifest file 'portforward.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching 'pycache'
found under directory ''
warning: no previously-included files matching '.py[co]' found
under directory ''
warning: no files found matching '.jpg' under directory 'docs'
warning: no files found matching '.png' under directory 'docs'
warning: no files found matching '.gif' under directory 'docs'
adding license file 'LICENSE'
adding license file 'AUTHORS.rst'
writing manifest file 'portforward.egg-info/SOURCES.txt'
running build_ext
$ GOPATH=/tmp/tmp25pt7mam go get -d
go: @.***
(replaced by ./internal/portforward): reading internal/portforward/go.mod:
open /tmp/tmp25pt7mam/src/
github.com/pytogo/portforward/internal/portforward/go.mod: no such
file or directory
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-w16th8kp/setup.py", line 17, in

setup(
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/init.py",
line 87, in setup
return distutils.core.setup(**attrs)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 185, in setup
return run_commands(dist)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/core.py",
line 201, in run_commands
dist.run_commands()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 973, in run_commands
self.run_command(cmd)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/install.py",
line 68, in run
return orig.install.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/install.py",
line 698, in run
self.run_command('build')
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build.py",
line 132, in run
self.run_command(cmd_name)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py",
line 319, in run_command
self.distribution.run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/dist.py",
line 1217, in run_command
super().run_command(command)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/dist.py",
line 992, in run_command
cmd_obj.run()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/command/build_ext.py",
line 84, in run
_build_ext.run(self)
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 346, in run
self.build_extensions()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 466, in build_extensions
self._build_extensions_serial()
File
"/home/drawal/rl/portforward/.tox/flake8/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py",
line 492, in _build_extensions_serial
self.build_extension(ext)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 155, in build_extension
_check_call(cmd_get, cwd=pkg_path, env=env)
File
"/tmp/pip-req-build-w16th8kp/.eggs/setuptools_golang-2.7.0-py3.8.egg/setuptools_golang.py",
line 110, in _check_call
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ,
**env))
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'get', '-d')'
returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> portforward
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
flake8: exit 1 (1.72 seconds) /home/drawal/rl/portforward> python -I -m
pip install --force-reinstall --no-deps
/home/drawal/rl/portforward/.tox/.tmp/package/1/portforward-0.4.0.tar.gz
pid=4142
.pkg: _exit> python
/home/drawal/rl/portforward/.venv/lib/python3.8/site-packages/pyproject_api/_backend.py
True setuptools.build_meta legacy
py36: SKIP (0.52 seconds)
py37: SKIP (0.37 seconds)
py38: FAIL code 1 (0.23 seconds)
flake8: FAIL code 1 (4.52 seconds)
evaluation failed :( (5.67 seconds)
On Mon, Jan 30, 2023 at 9:50 AM Dhar Rawal @.***>
wrote:

go version go1.19.5 linux/amd64
gcc -v gives the following output:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
9.4.0-1ubuntu1~20.04.1'
--with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2
--prefix=/usr --with-gcc-major-version-only --program-suffix=-9
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-plugin --enable-default-pie
--with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto
--enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa
--without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
pip install ... gave following output:
Collecting git+https://github.com/pytogo/portforward.git
Cloning https://github.com/pytogo/portforward.git to
/tmp/pip-req-build-pyfgtasr
Running command git clone -q
https://github.com/pytogo/portforward.git /tmp/pip-req-build-pyfgtasr
Requirement already satisfied (use --upgrade to upgrade):
portforward==0.4.0 from git+https://github.com/pytogo/portforward.git
in /home/drawal/rl/portforward
Building wheels for collected packages: portforward
Building wheel for portforward (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/drawal/rl/portforward/.venv/bin/python3 -u -c
'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-req-build-pyfgtasr/setup.py'"'"';
file='"'"'/tmp/pip-req-build-pyfgtasr/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-l1hkn0mp
cwd: /tmp/pip-req-build-pyfgtasr/
Complete output (7 lines):
WARNING: The wheel package is not available.
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
ERROR: Failed building wheel for portforward
Running setup.py clean for portforward
Failed to build portforward
On Mon, Jan 30, 2023 at 12:33 AM Sebastian Ziemann <
@.***> wrote:

Could please provide the output of the following commands?

go version
gcc -v

This is also for verifying that both are available to the CLI.
And in addition - when your venv is active: Could you try to install
the portforward like
pip install git+https://github.com/pytogo/portforward.git

and share the complete output?

That helps me understanding what is going wrong. Thx!

—
Reply to this email directly, view it on GitHub
<https://github.com/pytogo/portforward/issues/11#issuecomment-1408069138>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3F2UHF2DTGAMTERCICSUBTWU5OCZANCNFSM6AAAAAATNY4SQ4>
.
You are receiving this because you were mentioned.Message ID:
<EMAIL_ADDRESS>

ImportError while importing test module
'/home/drawal/rl/portforward/tests/test_portforward.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_portforward.py:10: in
import portforward
E   ModuleNotFoundError: No module named 'portforward'

Strange in this comment it looks like the installation worked.
But your output states that there is no portforward. Could you re-check if portforward was installed in the correct venv? Thx!

I decided to create the release v0.4.0. It is available on pypi now.
Meanwhile creating the release I discovered and fixed some issues while building which occurred only on other machines. o.O
So, you can decide: Retry to install it from git or install portforward=0.4.0.

installed the main branch with git. It went smoothly except I had to
manually install flake8, black, tox and mypy. That should go in the
documentation. Documentation should also include links to instructions for
installing Golang and gcc. "main check" passed. But when I added a simple
test like below, I got
./tests/test_portforward.py::test_pinot Failed:
[undefined]portforward.PortforwardError: Go portforward exploded
It failed for both pod and service, not sure why
def test_pinot():
"""test service forwarding """
from_port = to_port = int(PINOT_PORT)
with portforward.forward(APP_NAMESPACE, PINOT_HOST, from_port, to_port):
tables_fn_url = f"http://{DEPLOYMENT_ENDPOINT}:{to_port}/tables/"
response = requests.get(tables_fn_url, timeout=30)
assert response.status_code == 200, f"Failed call to url: {
tables_fn_url}"
tables_dict = response.json()
print(tables_dict)
I then tested with pypi portforward v0.4.0 and it crashed immediately with
the callstack below.
test/kubeTests/test_pinot_cluster.py Fatal Python error: Aborted
Thread 0x00007f5c761aa180 (most recent call first):
File
"/home/drawal/miniconda3/envs/sunshine/lib/python3.10/site-packages/portforward.py",
line 92 in forward
File
"/home/drawal/miniconda3/envs/sunshine/lib/python3.10/contextlib.py", line
135 in enter
File "/home/drawal/rl/sunshine/test/kubeTests/test_pinot_cluster.py",
line 509 in test_pinot_table_crud
I have seen this exact error callstack in portforward v0.3.1, so I don't
think this is a new bug.
Dhar
On Tue, Jan 31, 2023 at 1:32 AM Sebastian Ziemann @.***>
wrote:

I decided to create the release v0.4.0. It is available on pypi now.
Meanwhile creating the release I discovered and fixed some issues while
building which occurred only on other machines. o.O
So, you can decide: Retry to install it from git or install
portforward=0.4.0.
—
Reply to this email directly, view it on GitHub
https://github.com/pytogo/portforward/issues/11#issuecomment-1409894826,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3F2UHHBFXJM2RMURKKFOVTWVC5XDANCNFSM6AAAAAATNY4SQ4
.
You are receiving this because you were mentioned.Message ID:
@.***>

This time, I got a slightly more informative crash stack:
panic: error upgrading connection: error dialing backend: EOF goroutine 13
[running]:
github.com/pytogo/pytogo/portforward.startForward.func2(0xc0000d9970,
0xc0003da310) /tmp/tmpxz67wbih/pkg/mod/
@./portforward.go:208
+0x7d created by github.com/pytogo/pytogo/portforward.startForward
/tmp/tmpxz67wbih/pkg/mod/
@./portforward.go:206
+0x285 Fatal Python error: Aborted
I am running python 3.10.8, fyi
On Tue, Jan 31, 2023 at 10:07 AM Dhar Rawal @.***> wrote:

installed the main branch with git. It went smoothly except I had to
manually install flake8, black, tox and mypy. That should go in the
documentation. Documentation should also include links to instructions for
installing Golang and gcc. "main check" passed. But when I added a simple
test like below, I got
./tests/test_portforward.py::test_pinot Failed: [undefined]portforward.PortforwardError: Go portforward exploded
It failed for both pod and service, not sure why
def test_pinot():
"""test service forwarding """
from_port = to_port = int(PINOT_PORT)
with portforward.forward(APP_NAMESPACE, PINOT_HOST, from_port, to_port
):
tables_fn_url = f"http://{DEPLOYMENT_ENDPOINT}:{to_port}/tables/"
response = requests.get(tables_fn_url, timeout=30)
assert response.status_code == 200, f"Failed call to url: {
tables_fn_url}"
tables_dict = response.json()
print(tables_dict)
I then tested with pypi portforward v0.4.0 and it crashed immediately with
the callstack below.
test/kubeTests/test_pinot_cluster.py Fatal Python error: Aborted
Thread 0x00007f5c761aa180 (most recent call first):
File
"/home/drawal/miniconda3/envs/sunshine/lib/python3.10/site-packages/portforward.py",
line 92 in forward
File
"/home/drawal/miniconda3/envs/sunshine/lib/python3.10/contextlib.py", line
135 in enter
File "/home/drawal/rl/sunshine/test/kubeTests/test_pinot_cluster.py",
line 509 in test_pinot_table_crud
I have seen this exact error callstack in portforward v0.3.1, so I don't
think this is a new bug.
Dhar
On Tue, Jan 31, 2023 at 1:32 AM Sebastian Ziemann <
@.***> wrote:

I decided to create the release v0.4.0. It is available on pypi now.
Meanwhile creating the release I discovered and fixed some issues while
building which occurred only on other machines. o.O
So, you can decide: Retry to install it from git or install
portforward=0.4.0.
—
Reply to this email directly, view it on GitHub
https://github.com/pytogo/portforward/issues/11#issuecomment-1409894826,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3F2UHHBFXJM2RMURKKFOVTWVC5XDANCNFSM6AAAAAATNY4SQ4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Does this als happen when you install portforward in a fresh venv from pypi?

yes, Portforward v0.3 was running ok after the initial crashes until I
installed portforward v0.4. And now it crashes with both the old and new
portforward versions
On Tue, Jan 31, 2023 at 1:33 PM Sebastian Ziemann @.***>
wrote:

Does this als happen when you install portforward in a fresh venv from
pypi?
—
Reply to this email directly, view it on GitHub
https://github.com/pytogo/portforward/issues/11#issuecomment-1410953153,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3F2UHGDCCCEZP3SCAKAVMTWVFSJFANCNFSM6AAAAAATNY4SQ4
.
You are receiving this because you were mentioned.Message ID:
@.***>

This is really suspicious when the previous version of portforward suddenly fail.
Meanwhile I detected an issue but only when I try to forward a service.
This is my venv
(pf_test) > $ pip list                                                                                [±main ✓]
Package            Version
------------------ ---------
certifi            2022.12.7
charset-normalizer 3.0.1
idna               3.4
pip                23.0
portforward        0.4.0
requests           2.28.2
setuptools         58.1.0
urllib3            1.26.14
wheel              0.38.4

Here the resources
apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    app.kubernetes.io/name: proxy
spec:
  containers:
    - name: nginx
      image: nginx:stable
      ports:
        - containerPort: 80
          name: http-web-svc

---
apiVersion: v1
kind: Service
metadata:
  name: nginx-service
spec:
  selector:
    app.kubernetes.io/name: proxy
  ports:
    - name: name-of-service-port
      protocol: TCP
      port: 80
      targetPort: http-web-svc

It works with this script for pods
import requests

import portforward

def main():
    namespace = "pftest"
    pod_name = "nginx"
    local_port = 9000  # from port
    pod_port = 80  # to port

    # No path to kube config provided - will use default from $HOME/.kube/config
    with portforward.forward(namespace, pod_name, local_port, pod_port):
        response = requests.get("http://localhost:9000")
        print(f"Done: \n'{response.status_code}'\n'{response.text[:20]}...'")

if __name__ == "__main__":
    main()

And it does not work with services like in this script:
import requests

import portforward

def main():
    namespace = "pftest"
    pod_name = "nginx-service"
    local_port = 9000  # from port
    pod_port = 80  # to port

    # No path to kube config provided - will use default from $HOME/.kube/config
    with portforward.forward(namespace, pod_name, local_port, pod_port):
        response = requests.get("http://localhost:9000")
        print(f"Done: \n'{response.status_code}'\n'{response.text[:20]}...'")

if __name__ == "__main__":
    main()

The error output looks very similar to yours
panic: error upgrading connection: the server could not find the requested resource

goroutine 15 [running]:
github.com/pytogo/pytogo/portforward.startForward.func2(0xc0000d22c0, 0xc0004d4440)
	/tmp/tmp6ix1mkxq/pkg/mod/github.com/pytogo/pytogo/portforward@v0.0.0-20230126064027-46f3694e074b/portforward.go:228 +0x7d
created by github.com/pytogo/pytogo/portforward.startForward
	/tmp/tmp6ix1mkxq/pkg/mod/github.com/pytogo/pytogo/portforward@v0.0.0-20230126064027-46f3694e074b/portforward.go:226 +0x285
[1]    18327 IOT instruction (core dumped)  python main-service.py

For now, I will focus on this issue.

Oh, in a "revert" mess I used the wrong version of the go part. Therefore, the version from pypi is broken and the full local version is fine. I have to create a new release 0.4.1 and mark the 0.4.0 version as not useable.

I yanked version 0.4.0 and published 0.4.1. The issue is in the repo also fixed. Could you test it again? Either with git version or 0.4.1.

pypi 0.4.1 worked great! Tested both pod and service port forwarding. No
crashes!
On Wed, Feb 1, 2023 at 3:22 AM Sebastian Ziemann @.***>
wrote:

I yanked version 0.4.0 and published 0.4.1. The issue is in the repo also
fixed. Could you test it again? Either with git version or 0.4.1.
—
Reply to this email directly, view it on GitHub
https://github.com/pytogo/portforward/issues/11#issuecomment-1411725815,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3F2UHH6C6FQWZ2DHW2HJGLWVITOFANCNFSM6AAAAAATNY4SQ4
.
You are receiving this because you were mentioned.Message ID:
@.***>


Bump pywemo version.

A minor change to pywemo to set state optimistically. Makes HA switches stay switches!
I think the is the only remaining issues from the pywemo refactor.

Hi!
Is pywemo connected with pyvera somehow, or is it a typo?

Sorry - a typo - now fixed. Sorry the problem with maintaining two libraries with almost the same names!

:stuck_out_tongue_winking_eye:


PETS Example Notebook Can't create Dynamics Model

The example notebook pets_example.ipynb fails at the line:
dynamics_model = common_util.create_one_dim_tr_model(cfg, obs_shape, act_shape)
in code cell number 8 in the notebook.
The error thrown appears to be coming from the dictconfig.py routine within the omegaconf routine within the Hydra configuration handler.
ConfigAttributeError: Missing key model
    full_key: dynamics_model.model
   object_type=dict
From what I can tell, the dictconfig.py is expecting the object defined as cfg_dict, which is defined in code cell number 7 in the notebook, to have a a subkey called model within the main key dynamics_model.
I'm unsure how to force this subkey to be optional, or how to add an appropriate dict type subkey within the cfg_dict object to avoid the error, but as written this example notebook isn't running past this point. I've tried this with hydra-core-1.0.3, with the current version of mbrl has a dependency, and also the most up-to-date version of Hydra, hydra-core-1.1.1, with the same result.
As this is the 'Basic Example' that is used to introduce the MBRL package, I think it's important to get it working.

Hi @jpain3, thanks for reporting! I think this was just me forgetting to update the notebook after one of our API updates, sorry about this. I'll fix it soon. I agree that this is an important example, so appreciate you taking the time to report.

@jpain3 Are you running a specific version of the library? I tried git clone and then running the notebook without any pre-installed version of mbrl and it works for me.

Fixed now thanks! Installing MBRL directly from a clone of the repository works fine! All I'm getting now is a warning on that line that UserWarning: OmegaConf.is_none() is deprecated but the code is executing and proceeding now. Thanks!
Trying to replicate the original issue, the problem appears to be from me using a naïve pip install. When I create a new Python 3 kernel and run pip install mbrl with no additional version flags, then I again get the error listed above when trying to run the notebook. However, installing via pip install -e /path/to/githubclone/mbrl/ works ok (maybe it would also work if I explicitly specified the version with pip install mbrl==v0.1.5)

Ah, I see. The issue is that the notebook is written according to the latest version of the repo, which is currently not the latest stable version in pip (v0.1.5). You didn't do anything wrong before, this is mostly a quirk of the current version status of the library (repo version is v0.2.4.dev). I added a note to the notebook explaining this, and a new notebook that is compatible with the pip version. Hope that helps!


Monday first attribute/property usage issue

Hello @charliekassel!
Thank you for your nice extension! Could you please review this bug report? When I'm trying to use this code:

    Birthday
    <datepicker inputClass="form-control input-lg"
                id="sign-up-form-birthday"
                name="birthDay"
                placeholder="Your birthday"
                v-model="registerFormData.birthDay"
                format="dd MMMM yyyy"
                monday-first="true"/>

I'm experiencing the following issue:
[Vue warn]: Invalid prop: type check failed for prop "mondayFirst". Expected Boolean, got String.
(found in component <datepicker>)

My packages are:
  "devDependencies": {
    "axios": "^0.15.3",
    "babel-core": "^6.22.1",
    "babel-loader": "^6.2.10",
    "babel-plugin-transform-object-rest-spread": "^6.22.0",
    "babel-preset-es2015": "^6.22.0",
    "bootstrap-loader": "^2.0.0-beta.20",
    "bootstrap-sass": "^3.3.7",
    "css-loader": "^0.26.1",
    "extract-text-webpack-plugin": "2",
    "file-loader": "^0.10.0",
    "jquery": "^3.1.1",
    "jwt-decode": "^2.1.0",
    "node-sass": "^4.5.0",
    "nodemon": "^1.11.0",
    "resolve-url-loader": "^1.6.1",
    "sass-loader": "^4.1.1",
    "sleep": "^5.1.0",
    "style-loader": "^0.13.1",
    "url-loader": "^0.5.7",
    "vee-validate": "^2.0.0-beta.21",
    "vue": "^2.1.10",
    "vue-loader": "^10.2.0",
    "vue-router": "^2.2.0",
    "vue-template-compiler": "^2.1.10",
    "vuejs-datepicker": "^0.5.5",
    "vuex": "^2.1.1",
    "webpack": "^2.2.1"
  },
  "dependencies": {
    "bcrypt": "^1.0.2",
    "body-parser": "^1.16.0",
    "boom": "^4.2.0",
    "ejs": "^2.5.5",
    "express": "^4.14.1",
    "helmet": "^3.4.0",
    "jsonwebtoken": "^7.2.1",
    "mysql": "^2.13.0",
    "sequelize": "^3.30.1",
    "sequelize-cli": "^2.5.1",
    "source-map-support": "^0.4.11"
  },

Cheers,
@resurtm

The red warning text is telling you that you are passing it as a plain string.... and that is where your error is coming from nothing to do with the component itself
monday-first="true"  is wrong binding to boolean use this instead :monday="true" ":" is short for v-bind

Yeah you need to bind the parameter value to get a javascript type else it will just be interpreted as a string
                id="sign-up-form-birthday"
                name="birthDay"
                placeholder="Your birthday"
                v-model="registerFormData.birthDay"
                format="dd MMMM yyyy"
                :monday-first="true"/>```

Oh!
@vms82 @charliekassel Thank you guys! ;-)


Add Cake Add to Website

Great work on getting this addin created!
This is just a suggestion, but think it would be a really good idea, to help with visibility of this addin.
i.e. get your addin listed here:
http://cakebuild.net/addins
Have a look at this PR:
cake-build/website#290
This assumes that you have added XML Documentation to your addin, as described here:
http://cakebuild.net/docs/contributing/documentation
Let me know if you have any questions. Thanks!

Thanks, it sounds great! I'll create PR as soon as possible.

@vCipher perfect, thank you!


new domain errors with "unsupported configuration: IDE controllers are unsupported for this QEMU binary or machine type"

System Information
Linux distribution
Manjaro Linux x86/64 kernel 5.10.63
Terraform version
v1.0.6
Provider and libvirt versions
Provider v.0.6.11
libvirt 7.7.0

Checklist

[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?

[ ] Make sure you explain why this option is important to you, why it should be important to everyone. Describe your use-case with detail and provide examples where possible.
[ ] If it is a very special case, consider using the XSLT support in the provider to tweak the definition instead of opening an issue
[ ] Maintainers do not have expertise in every libvirt setting, so please, describe the feature and how it is used. Link to the appropriate documentation

[ ] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:

Description of Issue/Question
Not able to create a single VM using this provider due to the generated domain contains incorrect/invalid values for defining the disks on the instance.
When comparing the results of the generated domain (via TF_LOG=DEBUG terraform apply), I get the error "unsupported configuration: IDE controllers are unsupported for this QEMU binary or machine type". After trying various changes by modifying the Domain XML from the verbose log, was able to discover the issue was in the CDROM disk block.
This domain uses a cloudinit ISO which is loaded as a CDROM. The block generated looks like:
        <disk type="file" device="cdrom">
            <driver name="qemu" type="raw"></driver>
            <source file="/var/lib/libvirt/images/commoninit.iso"></source>
            <target dev="hdd" bus="ide"></target>
        </disk>

When modifying the line <target dev="hdd" bus="ide"></target> to use the attribute bus="sata", the virsh create generated.xml command was able to successfully create the domain.
Setup

main.tf contents

terraform {
  required_version = ">= 1.0"
  required_providers {
    libvirt = {
      source = "dmacvicar/libvirt"
    }
  }
}

provider "libvirt" {
  uri = "qemu:///system"
}

# Prep requirements
resource "libvirt_pool" "default" {
  name = var.disk_pool_name
  type = "dir"
  path = var.disk_pool_path
}
resource "libvirt_volume" "ubuntu_iso" {
  name   = "ubuntu-20.04-server-cloudimg-amd64-disk-kvm.img"
  pool   = "os_img"
  format = "qcow2"
  source = "https://cloud-images.ubuntu.com/releases/focal/release/ubuntu-20.04-server-cloudimg-amd64-disk-kvm.img"
}

# Create App Host VM
resource "libvirt_volume" "root" {
  name           = "root1.qcow2"
  pool           = "os_img"
  size           =<PHONE_NUMBER>00     # 100GB
  base_volume_id = libvirt_volume.ubuntu_iso.id
}

resource "libvirt_volume" "extra" {
  name           = "disk1.qcow2"
  pool           = "os_img"
  size           =<PHONE_NUMBER>0     # 50GB
}
data "cloudinit_config" "init" {
  part {
    content_type = "cloud-config"
    content      = templatefile(
      "${path.module}/cloud_init.yml",
      {ssh_key = var.ssh_public_key}
    )
  }
  part {
    content_type = "text/x-shellscript"
    content      = file("${path.module}/setup_app.sh")
    filename     = "setup_app.sh"
  }
}
resource "libvirt_cloudinit_disk" "init" {
  name      = "commoninit.iso"
  user_data = data.cloudinit_config.init.rendered
}

resource "libvirt_domain" "vm" {
  name        = "app_vm"
  memory      = "8192"
  vcpu        = "8"
  arch        = "x86_64"
  fw_cfg_name = ""
  machine     = "q35"
  cloudinit   = libvirt_cloudinit_disk.init.id
  autostart   = true

  network_interface {
    addresses      = [
      "<IP_ADDRESS>"
    ]
    network_name   = "default"
    mac            = "bb:bb:bb:bb:bb:bb"
    wait_for_lease = false
  }
  network_interface {
    addresses      = [
      "<IP_ADDRESS>"
    ]
    network_name   = "default"
    mac            = "aa:aa:aa:aa:aa:aa"
    wait_for_lease = false
  }

  timeouts {}

  disk {
    volume_id = libvirt_volume.root.id
  }
  disk {
    volume_id = libvirt_volume.extra.id
  }
}

Steps to Reproduce Issue
Run configuration with variables set for disk_pool_name, disk_pool_path, ssh_public_key: terraform plan && terraform apply

Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
Have you tried to reproduce the issue without them enabled?

Was finally able to determine the issue is with libvirt_cloudinit_disk. When this is assigned to the domain, it creates a disk block attached to the IDE bus. This machine does not accept an IDE bus:
<disk type="file" device="cdrom">
  <driver name="qemu" type="raw"></driver>
  <source file="/var/lib/libvirt/images/commoninit.iso"></source>
  <target dev="hdd" bus="ide"></target>
</disk>

Changing the bus type to "sata" and running it against virsh define generated.xml creates the machine successfully.
Will update issue description accordingly

I think @wsidl created a domain of machine = "q35" which does not have IDE but SATA bus.
As a workaround, I have been able to live-patch the resulting XML with XSLT:
cdrom-model.xsl
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output omit-xml-declaration="yes" indent="yes"/>
  <xsl:template match="node()|@*">
     <xsl:copy>
       <xsl:apply-templates select="node()|@*"/>
     </xsl:copy>
  </xsl:template>

  <xsl:template match="/domain/devices/disk[@device='cdrom']/target/@bus">
    <xsl:attribute name="bus">
      <xsl:value-of select="'sata'"/>
    </xsl:attribute>
  </xsl:template>

</xsl:stylesheet>

and in main.tf:
resource "libvirt_domain" "q35-host" {
...
  machine = "q35"
  xml {
    xslt = file("cdrom-model.xsl")
  }
...

Great solution! It helped me much.

Sorry to dig this issue, however i would love for someone to assist me getting this to work.
I am trying to get a q35 machine to boot and use cloudinit on it, but i haven't been successful, everything works correctly if i use the default i440FX.
this is my Domain.tf
esource "libvirt_domain" "ubuntu2204vm" {
  name = "${var.hostname}"

  memory = "${var.memory}"
  vcpu = "${var.vcpu}"
  machine = "${var.machine}"

  xml{
    xslt = file("cdrom-model.xsl")
  }

  cloudinit = libvirt_cloudinit_disk.cloud-init.id

  disk{
    volume_id = libvirt_volume.ubuntu-2204-vol.id
  }

  network_interface {
    network_name = "default"
    wait_for_lease = true
  }

  console {
    target_type = "serial"
    type        = "pty"
    target_port = "0"
  }

  console {
    target_type = "virtio"
    type        = "pty"
    target_port = "1"
  }
}

and this is my xslt:
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output omit-xml-declaration="yes" indent="yes"/>
  <xsl:template match="node()|@*">
     <xsl:copy>
       <xsl:apply-templates select="node()|@*"/>
     </xsl:copy>
  </xsl:template>

  <xsl:template match="/domain/devices/disk[@device='cdrom']/target/@bus">
    <xsl:attribute name="bus">
      <xsl:value-of select="'sata'"/>
    </xsl:attribute>
  </xsl:template>

</xsl:stylesheet>

it is what @cbricart posted above ( i also found another xslt that attempts to do the same, change the bus type from ide to sata, but it doesn't seem to work)
Whenever I try to run a file with xslt i am never able to launch cloudinit, if i check virt manager, the machine is the q35 type and the cdrom has the bus as sata as requeired however cloudinit never starts.
Does anyone know what the issue may be?
Best regards,

Any updates on this issue? Odd to still use a 2021 workaround to start new domains.

I think this is related to #1018 and #934 - not yet supported

Bump


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 15:57:29 on 2023.05.18
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 1, errors out: 0
Original problem ID: 20901
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=20901

Problem has been resolved in 3m 0s at 16:00:29 on 2023.05.18
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 20901


Undetected Tests

Language: dart/flutter
The tests aren't detected if the description of the text is on the next line (due to it being too long).
If I cut out a few words out of the description such that the description is on the sae line as the function call of test(), the tests are detected.

Can you run tests using vim-test (i.e. :TestNearest)?

The nearest test it detects are the one sapart from these two tests.

Yep so this is a problem with how vim-test finds tests so you'll have to raise an issue there. If a solution can be found I can port it to vim-ultest as well :smile:

This problem is fixed in vim-test: https://github.com/vim-test/vim-test/commit/9895268249f88ef67d10a20cc1a020a40096a1d9

LGTM, thanks for fixing @sidlatau! :grin: @Chaitanyabsprip please re-open if there are still issues


Whats values of final losses?

I upload a tensorboard image in a issue, where you can see the final losses.
https://github.com/jaywalnut310/glow-tts/issues/16

Thnaks


Web re-deploy

Why are these changes needed?

Related issue number

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Will this PR also include fixing URLs in the documentation pages? Can help with that, if so.

Will this PR also include fixing URLs in the documentation pages? Can help with that, if so.

Thanks! let me make another PR to fix it. We can merge this first to see if the web could be deployed.