You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Valentyn Tymofieiev (JIRA)" <ji...@apache.org> on 2019/04/30 00:15:00 UTC
[jira] [Commented] (BEAM-1525) RuntimeWarning: Unable to load
plugin beam_test_plugin when using nosetests
[ https://issues.apache.org/jira/browse/BEAM-1525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16829848#comment-16829848 ]
Valentyn Tymofieiev commented on BEAM-1525:
-------------------------------------------
The problem still appears, steps to reproduce:
* create a clean virtual environment
* python setup.py sdist
* pip install ./dist/apache-beam-2.13.0.dev0.tar.gz[test]
* nosetests does_not_matter
{noformat}
/home/valentyn/tmp/clean2/lib/python2.7/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin beam_test_plugin = test_config:BeamTestPlugin: No module named test_config
RuntimeWarning){noformat}
One can still run integration tests via `python setup.py nosetests --tests= ...`, however, this error was causing troubles when I tried to configure IntelliJ/PyCharm to run a single Beam integreation test using nose plugin.
We looked at this with [~udim] and found two workarounds:
# run python setup.py develop
# modify setup.py to include a stanza:
{code:java}
py_modules = ['test_config'], {code}
then, re-package and re-install Beam SDK.
> RuntimeWarning: Unable to load plugin beam_test_plugin when using nosetests
> ---------------------------------------------------------------------------
>
> Key: BEAM-1525
> URL: https://issues.apache.org/jira/browse/BEAM-1525
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: María GH
> Assignee: Mark Liu
> Priority: Minor
> Labels: test
> Fix For: Not applicable
>
>
> Tests pass, but when using nosetests, in this manner:
> nosetests --logging-level=INFO apache_beam/io/fileio_test.py:TestFileSink
> the RuntimeWarnings shows up. It doesn't when using tox
> $ nosetests --logging-level=INFO apache_beam/io/fileio_test.py:TestFileSink
> /Users/mariagh/Documents/venvs/no-dataflow/lib/python2.7/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin beam_test_plugin = test_config:BeamTestPlugin: No module named test_config
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)