pew Failing To Enter Virtual Environment
See original GitHub issueAttempt to enter newly-created or existing virt environment blows out on some of our systems - so far seen on one FreeBSD 10-STABLE VPS and one CentOS VPS. It seems fine on FreeBSD-Stable on physical machines, Linux Mint 17/Physical, and CentOS7/VPS. Details:
~>pew workon foo
Traceback (most recent call last):
File "/usr/local/bin/pew", line 11, in <module>
sys.exit(pew())
File "/usr/local/lib/python2.7/site-packages/pew/pew.py", line 738, in pew
return command(sys.argv[2:])
File "/usr/local/lib/python2.7/site-packages/pew/pew.py", line 355, in workon_cmd
shell(env, cwd=project_dir)
File "/usr/local/lib/python2.7/site-packages/pew/pew.py", line 200, in shell
fork_bash(env, cwd)
File "/usr/local/lib/python2.7/site-packages/pew/pew.py", line 157, in fork_bash
with NamedTemporaryFile('w+') as rcfile:
File "/usr/local/lib/python2.7/site-packages/pew/_utils.py", line 27, in NamedTemporaryFile
return getwriter(encoding)(_ntf(mode))
File "/usr/local/lib/python2.7/codecs.py", line 1009, in getwriter
return lookup(encoding).streamwriter
TypeError: lookup() argument 1 must be string, not None
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
pew fails when attempting to create virtualenv name starting ...
The example below shows how I'm running into this error with pipenv. A stripped down test case for just pew though is just...
Read more >pipenv fails to create a virtual environment - Stack Overflow
I create a folder or my Python project and cd into it. I type 'pipenv shell'. I get the following error: Creating a...
Read more >As schools close due to the coronavirus, some U.S. students ...
As K-12 officials in many states close schools and shift classes and assignments online due to the spread of the new coronavirus, they...
Read more >pipenv fails on Ubuntu 20.04 - python - Super User
I was fortunate enough to stumble onto the answer in this thread concerning the underlying implementation of virtualenv :
Read more >Issue 37369: Issue with pip in venv on Powershell in Windows
3 installed from the Microsoft Store, when I create a virtualenv via "python -m venv <name>" and activate it in Powershell with the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good, but why “automatically set locale environment” sets it as C (which only allows ASCII)?
I guess that at the very least I should provide a better error message
This was just to prove that the fix worked.