google-cloud-python: Failed to install google-cloud-logging using python setup.py
When attempting to install the google-cloud-logging package using setup.py install installation fails with the following information:
- OS type and version MacOS 10.12.3 Beta
- Python version and virtual environment information
python --versionBrew Python 3.6.0 running in virtualenv - google-cloud-python version
pip show google-cloud,pip show google-<service>orpip freezegoogle-cloud-logging==0.22.0 - Stacktrace if available
Searching for gapic-google-cloud-logging-v2<0.91dev,>=0.90.0
Reading https://pypi.python.org/simple/gapic-google-cloud-logging-v2/
Downloading https://pypi.python.org/packages/4f/d2/dd19486660caf0faf667569c97d9b4660ce23afc275481b03c9ddddbd8fd/gapic-google-cloud-logging-v2-0.90.0.tar.gz#md5=4d127b7184d708ffeaa11d4cb3f010d4
Best match: gapic-google-cloud-logging-v2 0.90.0
Processing gapic-google-cloud-logging-v2-0.90.0.tar.gz
Writing /var/folders/m3/xkqbq0915jq8z_9tlwc4q5g80000gn/T/easy_install-_ivp_ub5/gapic-google-cloud-logging-v2-0.90.0/setup.cfg
Running gapic-google-cloud-logging-v2-0.90.0/setup.py -q bdist_egg --dist-dir /var/folders/m3/xkqbq0915jq8z_9tlwc4q5g80000gn/T/easy_install-_ivp_ub5/gapic-google-cloud-logging-v2-0.90.0/egg-dist-tmp-x5plt9zi
no previously-included directories found matching '.tox'
zip_safe flag not set; analyzing archive contents...
Traceback (most recent call last):
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/sandbox.py", line 157, in save_modules
yield saved
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/sandbox.py", line 198, in setup_context
yield
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/sandbox.py", line 255, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/sandbox.py", line 285, in run
return func()
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in runner
_execfile(setup_script, ns)
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/sandbox.py", line 47, in _execfile
exec(code, globals, locals)
File "/var/folders/m3/xkqbq0915jq8z_9tlwc4q5g80000gn/T/easy_install-_ivp_ub5/gapic-google-cloud-logging-v2-0.90.0/setup.py", line 43, in <module>
File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 209, in run
os.path.join(archive_root, 'EGG-INFO'), self.zip_safe()
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 245, in zip_safe
return analyze_egg(self.bdist_dir, self.stubs)
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 355, in analyze_egg
safe = scan_module(egg_dir, base, name, stubs) and safe
File "/[REDACTED]/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 392, in scan_module
code = marshal.load(f)
ValueError: bad marshal data (unknown type code)
-
Steps to reproduce Add
google-cloud-loggingto setup.py in install_requires list. Runpython setup.py install -
Code Example
from setuptools import setup, find_packages
setup(
name='some-package',
version='0.0.1',
packages=find_packages(),
include_package_data=True,
classifiers=[
'License :: Non-Standard :: Commercial License',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
keywords='cool project',
install_requires=[
'google-cloud-logging',
]
)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 26 (14 by maintainers)
Exact same issue on 3.5.2
I’ll confirm but I believe I was having the same issue on 3.5.