Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing from clean Python fails on 'packaging.version' dependency #3200

Closed
BrandonY opened this issue Mar 23, 2017 · 5 comments
Closed

Installing from clean Python fails on 'packaging.version' dependency #3200

BrandonY opened this issue Mar 23, 2017 · 5 comments
Assignees

Comments

@BrandonY
Copy link

BrandonY commented Mar 23, 2017

  1. OS type and version: Ubuntu
  2. Python version and virtual environment information: Python 2.7.6
  3. google-cloud-python version: 0.23.0
  4. Stacktrace if available
>   Running setup.py install for proto-google-cloud-datastore-v1
>     Skipping installation of /usr/local/google/home/yarbrough/venv3/venv3/lib/python2.7/site-packages/google/__init__.py (namespace package)
>     Skipping installation of /usr/local/google/home/yarbrough/venv3/venv3/lib/python2.7/site-packages/google/cloud/__init__.py (namespace package)
>     Skipping installation of /usr/local/google/home/yarbrough/venv3/venv3/lib/python2.7/site-packages/google/cloud/proto/__init__.py (namespace package)
>     Skipping installation of /usr/local/google/home/yarbrough/venv3/venv3/lib/python2.7/site-packages/google/cloud/proto/datastore/__init__.py (namespace package)
>     
>     warning: no previously-included files matching '*.py[co]' found anywhere in distribution
>     warning: no previously-included files matching '__pycache__' found anywhere in distribution
>     Installing /usr/local/google/home/yarbrough/venv3/venv3/lib/python2.7/site-packages/proto_google_cloud_datastore_v1-0.90.3-py2.7-nspkg.pth
>   Found existing installation: setuptools 3.6
>     Uninstalling setuptools:
>       Successfully uninstalled setuptools
>   Running setup.py install for dill
>     Traceback (most recent call last):
>       File "<string>", line 1, in <module>
>       File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py", line 152, in SetupPathsAndImport
>         return real_import(name, globals, locals, fromlist, level)
>       File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
>         import setuptools.version
>       File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>
>         import pkg_resources
>       File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 70, in <module>
>         import packaging.version
>     ImportError: No module named packaging.version
>     Complete output from command /usr/local/google/home/yarbrough/venv3/venv3/bin/python -c "import setuptools, tokenize;__file__='/usr/local/google/home/yarbrough/venv3/venv3/build/dill/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-anVbwa-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/google/home/yarbrough/venv3/venv3/include/site/python2.7:
>     Traceback (most recent call last):
> 
>   File "<string>", line 1, in <module>
> 
>   File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py", line 152, in SetupPathsAndImport
> 
>     return real_import(name, globals, locals, fromlist, level)
> 
>   File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
> 
>     import setuptools.version
> 
>   File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>
> 
>     import pkg_resources
> 
>   File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 70, in <module>
> 
>     import packaging.version
> 
> ImportError: No module named packaging.version
> 
> ----------------------------------------
> Cleaning up...
> Command /usr/local/google/home/yarbrough/venv3/venv3/bin/python -c "import setuptools, tokenize;__file__='/usr/local/google/home/yarbrough/venv3/venv3/build/dill/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-anVbwa-record/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/google/home/yarbrough/venv3/venv3/include/site/python2.7 failed with error code 1 in /usr/local/google/home/yarbrough/venv3/venv3/build/dill
> Traceback (most recent call last):
>   File "/usr/local/google/home/yarbrough/venv3/venv3/bin/pip", line 11, in <module>
>     sys.exit(main())
>   File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/pip/__init__.py", line 185, in main
>     return command.main(cmd_args)
>   File "/usr/local/google/home/yarbrough/venv3/venv3/local/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main
>     text = '\n'.join(complete_log)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)
  1. Steps to reproduce

    1. Create a brand new venv environment.
    2. Run "pip install --upgrade google-cloud"

You can fix this error by separately installing the packaging and the appdirs packages, so I assume they are simply missing dependencies.

@theacodes
Copy link
Contributor

@BrandonY can you give me the output of pip --version and pip freeze | grep setuptools?

@daspecster
Copy link
Contributor

daspecster commented Mar 23, 2017

@BrandonY thanks for reporting!

I'm attempting to reproduce now.

I didn't have any failures. Ditto what @jonparrott said :)

@BrandonY
Copy link
Author

I created a new virtualenv and tried again. Same issue for me.

$> pip --version
pip 1.5.6 from /homedir/venv3/local/lib/python2.7/site-packages (python 2.7)
$> pip freeze | grep setuptools
(No output)

I created another virtualenv and installed packaging and appdirs, then installed google-cloud, and that time I was completely successful.

@theacodes
Copy link
Contributor

pip 1.5.6 is pretty ancient. I suspect you'll have no issues with a newer pip.

@lukesneeringer
Copy link
Contributor

Concur. Try upgrading pip (it is on 9.0.1 now).
I am closing this issue, but please feel free to re-open if that does not fix your problem.

atulep pushed a commit that referenced this issue Apr 6, 2023
…atform/python-docs-samples#3200)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [six](https://togithub.com/benjaminp/six) | minor | `==1.13.0` -> `==1.14.0` |

---

### Release Notes

<details>
<summary>benjaminp/six</summary>

### [`v1.14.0`](https://togithub.com/benjaminp/six/blob/master/CHANGES#&#8203;1140)

[Compare Source](https://togithub.com/benjaminp/six/compare/1.13.0...1.14.0)

-   Issue [#&#8203;288](https://togithub.com/benjaminp/six/issues/288), pull request [#&#8203;289](https://togithub.com/benjaminp/six/issues/289): Add `six.assertNotRegex`.

-   Issue [#&#8203;317](https://togithub.com/benjaminp/six/issues/317): `six.moves._dummy_thread` now points to the `_thread` module on
    Python 3.9+. Python 3.7 and later requires threading and deprecated the
    `_dummy_thread` module.

-   Issue [#&#8203;308](https://togithub.com/benjaminp/six/issues/308), pull request [#&#8203;314](https://togithub.com/benjaminp/six/issues/314): Remove support for Python 2.6 and Python 3.2.

-   Issue [#&#8203;250](https://togithub.com/benjaminp/six/issues/250), issue [#&#8203;165](https://togithub.com/benjaminp/six/issues/165), pull request [#&#8203;251](https://togithub.com/benjaminp/six/issues/251): `six.wraps` now ignores missing
    attributes. This follows the Python 3.2+ standard library behavior.

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
atulep pushed a commit that referenced this issue Apr 6, 2023
…atform/python-docs-samples#3200)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [six](https://togithub.com/benjaminp/six) | minor | `==1.13.0` -> `==1.14.0` |

---

### Release Notes

<details>
<summary>benjaminp/six</summary>

### [`v1.14.0`](https://togithub.com/benjaminp/six/blob/master/CHANGES#&#8203;1140)

[Compare Source](https://togithub.com/benjaminp/six/compare/1.13.0...1.14.0)

-   Issue [#&#8203;288](https://togithub.com/benjaminp/six/issues/288), pull request [#&#8203;289](https://togithub.com/benjaminp/six/issues/289): Add `six.assertNotRegex`.

-   Issue [#&#8203;317](https://togithub.com/benjaminp/six/issues/317): `six.moves._dummy_thread` now points to the `_thread` module on
    Python 3.9+. Python 3.7 and later requires threading and deprecated the
    `_dummy_thread` module.

-   Issue [#&#8203;308](https://togithub.com/benjaminp/six/issues/308), pull request [#&#8203;314](https://togithub.com/benjaminp/six/issues/314): Remove support for Python 2.6 and Python 3.2.

-   Issue [#&#8203;250](https://togithub.com/benjaminp/six/issues/250), issue [#&#8203;165](https://togithub.com/benjaminp/six/issues/165), pull request [#&#8203;251](https://togithub.com/benjaminp/six/issues/251): `six.wraps` now ignores missing
    attributes. This follows the Python 3.2+ standard library behavior.

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
atulep pushed a commit that referenced this issue Apr 18, 2023
…atform/python-docs-samples#3200)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [six](https://togithub.com/benjaminp/six) | minor | `==1.13.0` -> `==1.14.0` |

---

### Release Notes

<details>
<summary>benjaminp/six</summary>

### [`v1.14.0`](https://togithub.com/benjaminp/six/blob/master/CHANGES#&#8203;1140)

[Compare Source](https://togithub.com/benjaminp/six/compare/1.13.0...1.14.0)

-   Issue [#&#8203;288](https://togithub.com/benjaminp/six/issues/288), pull request [#&#8203;289](https://togithub.com/benjaminp/six/issues/289): Add `six.assertNotRegex`.

-   Issue [#&#8203;317](https://togithub.com/benjaminp/six/issues/317): `six.moves._dummy_thread` now points to the `_thread` module on
    Python 3.9+. Python 3.7 and later requires threading and deprecated the
    `_dummy_thread` module.

-   Issue [#&#8203;308](https://togithub.com/benjaminp/six/issues/308), pull request [#&#8203;314](https://togithub.com/benjaminp/six/issues/314): Remove support for Python 2.6 and Python 3.2.

-   Issue [#&#8203;250](https://togithub.com/benjaminp/six/issues/250), issue [#&#8203;165](https://togithub.com/benjaminp/six/issues/165), pull request [#&#8203;251](https://togithub.com/benjaminp/six/issues/251): `six.wraps` now ignores missing
    attributes. This follows the Python 3.2+ standard library behavior.

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
parthea pushed a commit that referenced this issue Oct 22, 2023
…atform/python-docs-samples#3200)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [six](https://togithub.com/benjaminp/six) | minor | `==1.13.0` -> `==1.14.0` |

---

### Release Notes

<details>
<summary>benjaminp/six</summary>

### [`v1.14.0`](https://togithub.com/benjaminp/six/blob/master/CHANGES#&#8203;1140)

[Compare Source](https://togithub.com/benjaminp/six/compare/1.13.0...1.14.0)

-   Issue [#&#8203;288](https://togithub.com/benjaminp/six/issues/288), pull request [#&#8203;289](https://togithub.com/benjaminp/six/issues/289): Add `six.assertNotRegex`.

-   Issue [#&#8203;317](https://togithub.com/benjaminp/six/issues/317): `six.moves._dummy_thread` now points to the `_thread` module on
    Python 3.9+. Python 3.7 and later requires threading and deprecated the
    `_dummy_thread` module.

-   Issue [#&#8203;308](https://togithub.com/benjaminp/six/issues/308), pull request [#&#8203;314](https://togithub.com/benjaminp/six/issues/314): Remove support for Python 2.6 and Python 3.2.

-   Issue [#&#8203;250](https://togithub.com/benjaminp/six/issues/250), issue [#&#8203;165](https://togithub.com/benjaminp/six/issues/165), pull request [#&#8203;251](https://togithub.com/benjaminp/six/issues/251): `six.wraps` now ignores missing
    attributes. This follows the Python 3.2+ standard library behavior.

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants