GoogleCloudPlatform / GoogleCloudPlatform/training-data-analyst

Introduction to TensorFlow Data Validation: accidentally clicked on tfdv_basic_spending_old.ipynb instead of tfdv_basic_spending.ipynb

Open
#2,423 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
8.6k
Forks
6.1k
Avg merge
4h 44m
Merged PRs (30d)
2

Description

Fat finger double clicked on the old file while trying to open the newer one in the jupyter notebook. I propose a cleanup.

(First numpy installations descends into a carnage:

```
Collecting numpy==1.19.2
Using cached numpy-1.19.2.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
Running from numpy source directory.
setup.py:470: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
run_build = parse_setuppy_commands()

Error compiling Cython file:
------------------------------------------------------------
...
for i in range(1, RK_STATE_LEN):
self.rng_state.key[i] = val[i]
self.rng_state.pos = i

self._bitgen.state = &self.rng_state
self._bitgen.next_uint64 = &mt19937_uint64
^
------------------------------------------------------------

_mt19937.pyx:138:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to type 'uint64_t (void *) except? -1 nogil'.
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_common.pyx
Processing numpy/random/mtrand.pyx
Processing numpy/random/_mt19937.pyx
Traceback (most recent call last):
File "/var/tmp/pip-install-v15bz4u6/numpy_84e38916771e4e8e82423af35aa7fc95/tools/cythonize.py", line 235, in
main()
File "/var/tmp/pip-install-v15bz4u6/numpy_84e38916771e4e8e82423af35aa7fc95/tools/cythonize.py", line 231, in main
find_process_files(root_dir)
File "/var/tmp/pip-install-v15bz4u6/numpy_84e38916771e4e8e82423af35aa7fc95/tools/cythonize.py", line 222, in find_process_files
process(root_dir, fromfile, tofile, function, hash_db)
File "/var/tmp/pip-install-v15bz4u6/numpy_84e38916771e4e8e82423af35aa7fc95/tools/cythonize.py", line 188, in process
processor_function(fromfile, tofile)
File "/var/tmp/pip-install-v15bz4u6/numpy_84e38916771e4e8e82423af35aa7fc95/tools/cythonize.py", line 77, in process_pyx
subprocess.check_call(
File "/opt/conda/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/conda/bin/python3.9', '-m', 'cython', '-3', '--fast-fail', '-o', '_mt19937.c', '_mt19937.pyx']' returned non-zero exit status 1.
Cythonizing sources
Traceback (most recent call last):
File "/opt/conda/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/opt/conda/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/opt/conda/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/var/tmp/pip-build-env-mq886lme/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel
self.run_setup()
File "/var/tmp/pip-build-env-mq886lme/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup
super(_BuildMetaLegacyBackend,
File "/var/tmp/pip-build-env-mq886lme/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 499, in
setup_package()
File "setup.py", line 479, in setup_package
generate_cython()
File "setup.py", line 274, in generate_cython
raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
```

Then later when I try to execute the second code bloc where the `tensorflow_data_validation` would be imported fails. Looking at the solution: doesn't have any package versions pinned, and more importantly the `tensorflow-data-validation` has a `--user` switch.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.