chunyang commented on issue #10979: [BEAM-8841] Support writing data to BigQuery via Avro in Python SDK URL: https://github.com/apache/beam/pull/10979#issuecomment-593729608 I am able to run the integration test `apache_beam.io.gcp.bigquery_file_loads_test:BigQueryFileLoadsIT` but for some reason if I use the same procedure to run tests from `apache_beam.io.gcp.bigquery_write_it_test.py:BigQueryWriteIntegrationTests`, I get the following error: ``` [chuck.yang ~/src/beam/sdks/python cyang/avro-bigqueryio+] % ./scripts/run_integration_test.sh --test_opts "--tests=apache_beam.io.gcp.bigquery_write_it_test.py:BigQueryWriteIntegrationTests.test_big_query_write_without_schema --nocapture" --project ... --gcs_location gs://... --kms_key_name "" --streaming false >>> RUNNING integration tests with pipeline options: --runner=TestDataflowRunner --project=... --staging_location=gs://... --temp_location=gs://... --output=gs://... --sdk_location=build/apache-beam.tar.gz --requirements_file=postcommit_requirements.txt --num_workers=1 --sleep_secs=20 >>> test options: --tests=apache_beam.io.gcp.bigquery_write_it_test.py:BigQueryWriteIntegrationTests.test_big_query_write_without_schema --nocapture /home/chuck.yang/src/beam/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-gcp-pytest/py37-gcp-pytest/lib/python3.7/site-packages/setuptools/dist.py:476: UserWarning: Normalizing '2.21.0.dev' to '2.21.0.dev0' normalized_version, running nosetests running egg_info INFO:gen_protos:Skipping proto regeneration: all files up to date writing apache_beam.egg-info/PKG-INFO writing dependency_links to apache_beam.egg-info/dependency_links.txt writing entry points to apache_beam.egg-info/entry_points.txt writing requirements to apache_beam.egg-info/requires.txt writing top-level names to apache_beam.egg-info/top_level.txt reading manifest file 'apache_beam.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'README.md' warning: no files found matching 'NOTICE' warning: no files found matching 'LICENSE' writing manifest file 'apache_beam.egg-info/SOURCES.txt' Failure: ImportError (No module named 'apache_beam') ... ERROR ====================================================================== ERROR: Failure: ImportError (No module named 'apache_beam') ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/chuck.yang/src/beam/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-gcp-pytest/py37-gcp-pytest/lib/python3.7/site-packages/nose/failure.py", line 39, in runTest raise self.exc_val.with_traceback(self.tb) File "/home/chuck.yang/src/beam/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-gcp-pytest/py37-gcp-pytest/lib/python3.7/site-packages/nose/loader.py", line 418, in loadTestsFromName addr.filename, addr.module) File "/home/chuck.yang/src/beam/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-gcp-pytest/py37-gcp-pytest/lib/python3.7/site-packages/nose/importer.py", line 47, in importFromPath return self.importFromDir(dir_path, fqname) File "/home/chuck.yang/src/beam/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/target/.tox-py37-gcp-pytest/py37-gcp-pytest/lib/python3.7/site-packages/nose/importer.py", line 79, in importFromDir fh, filename, desc = find_module(part, path) File "/usr/lib/python3.7/imp.py", line 296, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named 'apache_beam' ---------------------------------------------------------------------- XML: nosetests-.xml ---------------------------------------------------------------------- XML: /home/chuck.yang/src/beam/sdks/python/nosetests.xml ---------------------------------------------------------------------- Ran 1 test in 0.002s FAILED (errors=1) ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
