Skip to content

remove pipfile to reduce pipenv issues #400

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

Closed
KazuCocoa opened this issue Jun 13, 2019 · 10 comments
Closed

remove pipfile to reduce pipenv issues #400

KazuCocoa opened this issue Jun 13, 2019 · 10 comments

Comments

@KazuCocoa
Copy link
Member

When I did a workshop at the AppiumConf 2019, resolve dependencies error happened in pipenv. (Following README)
Once backed to the previous implementation, it resolved.
The guy uses pucyarm etc so maybe some dependencies became conflicted

#376

(update later)

@ki4070ma
Copy link
Collaborator

ki4070ma commented Jun 13, 2019

@KazuCocoa

Sorry, might be my mistakes.
If necessary, please try below.

 pip install --user pipenv
 python -m pipenv lock --clear
 python -m pipenv install --dev --system

resolve dependencies error happened in pipenv.

but another error?

@KazuCocoa
Copy link
Member Author

KazuCocoa commented Jun 13, 2019

When he ran py.test test/unit, no import httpretty was raised since the command could not resolve dependencies. After running as python -m py.test test/unit, I forgot but another dependencies error raised.

Let me try to reproduce it later...

@VinayakaMayura
Copy link
Contributor

When i try

python -m pipenv lock --clear

It gives below error

Locking [dev-packages] dependencies…
✘ Locking Failed! 
Traceback (most recent call last):
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/resolver.py", line 124, in <module>
    from pipenv.vendor import colorama
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/__init__.py", line 22, in <module>
    from pipenv.vendor.vistir.compat import ResourceWarning, fs_str
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/vendor/vistir/__init__.py", line 18, in <module>
    from .misc import (
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/vendor/vistir/misc.py", line 515, in <module>
    PREFERRED_ENCODING = getpreferredencoding()
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/vendor/vistir/misc.py", line 509, in getpreferredencoding
    _default_encoding = locale.getdefaultlocale()[1]
  File "/Users/vinaymgg/.local/share/virtualenvs/python-client-kx7E6_fq/lib/python2.7/locale.py", line 545, in getdefaultlocale
    return _parse_localename(localename)
  File "/Users/vinaymgg/.local/share/virtualenvs/python-client-kx7E6_fq/lib/python2.7/locale.py", line 477, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/resolver.py", line 124, in <module>
    from pipenv.vendor import colorama
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/__init__.py", line 22, in <module>
    from pipenv.vendor.vistir.compat import ResourceWarning, fs_str
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/vendor/vistir/__init__.py", line 18, in <module>
    from .misc import (
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/vendor/vistir/misc.py", line 515, in <module>
    PREFERRED_ENCODING = getpreferredencoding()
  File "/Users/vinaymgg/Library/Python/3.7/lib/python/site-packages/pipenv/vendor/vistir/misc.py", line 509, in getpreferredencoding
    _default_encoding = locale.getdefaultlocale()[1]
  File "/Users/vinaymgg/.local/share/virtualenvs/python-client-kx7E6_fq/lib/python2.7/locale.py", line 545, in getdefaultlocale
    return _parse_localename(localename)
  File "/Users/vinaymgg/.local/share/virtualenvs/python-client-kx7E6_fq/lib/python2.7/locale.py", line 477, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8

@mykola-mokhnach
Copy link
Contributor

mykola-mokhnach commented Jun 14, 2019

It's an OSX-specific bug: pypa/pipenv#187

@ki4070ma
Copy link
Collaborator

Thanks @mykola-mokhnach

However, we don't expect setting up env has error for contributor.
We can take two options. If no problem, I'll take the former one.

  1. Add how to fix to readme
  2. Back to the previous style

@KazuCocoa
Do you have any feedbacks to above options from your workshop point of view?
(e.g. too many people had same problem, so simply back to the previous style.)

@mykola-mokhnach
Copy link
Contributor

Lets try with readme first. If still does not work then we always can revert it

@KazuCocoa
Copy link
Member Author

Agree > readme first

@VinayakaMayura Could you try #400 (comment) once on your environment?

@VinayakaMayura
Copy link
Contributor

VinayakaMayura commented Jun 16, 2019

@KazuCocoa @mykola-mokhnach [#400 ] this works fine

@KazuCocoa
Copy link
Member Author

thanks. We'll add doc in #403 so far

@0mars
Copy link

0mars commented Nov 12, 2019

having the same issue ubuntu linux, and none of the solutions work, guess it popped up differently now

 pipenv install           
Pipfile.lock (46359b) out of date, updating to (ed9505)…
Locking [dev-packages] dependencies…
✘ Locking Failed! 
Traceback (most recent call last):
  File "/home/xxx/.local/lib/python3.6/site-packages/pipenv/resolver.py", line 124, in <module>
    from pipenv.vendor import colorama
  File "/home/xxx/workspace/python/xxxx/packages/stars/.venv/lib/python3.7/site-packages/pipenv/__init__.py", line 47, in <module>

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

5 participants