You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> pipenv run manage.py test
Traceback (most recent call last):
File "d:\python36-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "d:\python36-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Python36-32\Scripts\pipenv.exe\__main__.py", line 9, in <module>
File "d:\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "d:\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 697, in main
rv = self.invoke(ctx)
File "d:\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "d:\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "d:\python36-32\lib\site-packages\pipenv\vendor\click\core.py", line 535, in invoke
return callback(*args, **kwargs)
File "d:\python36-32\lib\site-packages\pipenv\cli.py", line 701, in run
do_run(command=command, args=args, three=three, python=python, pypi_mirror=pypi_mirror)
File "d:\python36-32\lib\site-packages\pipenv\core.py", line 2253, in do_run
do_run_nt(script)
File "d:\python36-32\lib\site-packages\pipenv\core.py", line 2201, in do_run_nt
p = subprocess.Popen([command] + script.args, **options)
File "d:\python36-32\lib\subprocess.py", line 709, in __init__
restore_signals, start_new_session)
File "d:\python36-32\lib\subprocess.py", line 997, in _execute_child
startupinfo)
OSError: [WinError 193] %1 ist keine zulässige Win32-Anwendung
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
run needs to work for all commands, not just .py files, so the proposed fix is not viable. You need to add python in front of the .py file instead, e.g. pipenv run python something.py.
I sent in a patch to make py.exe work correctly with run, so this should work for your specific scenario with the upcoming (unreleased) version.
Closing as this particular issue has been resolved in master.
Issue description
pipenv run throws OSERROR on Windows installation. No other python installations present.
It works If I change the following line in pipenv\core.py", line 2201, in do_run_nt
subprocess.Popen([command] + script.args, **options)
to
subprocess.Popen(['python', command] + script.args, **options)
Expected result
pipenv run without any exceptions
Actual result
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'd:\\python36-32\\lib\\site-packages\\pipenv'
Python location:
'd:\\python36-32\\python.exe'
Other Python installations in
PATH
:3.6
:D:\Python36-32\python.exe
3.6.6
:D:\Python36-32\python.exe
3.6.6
:C:\Windows\py.exe
PEP 508 Information:
System environment variables:
ALIASES
ALLUSERSPROFILE
ANSICON
ANSICON_DEF
APPDATA
ARCHITECTURE
CGROAMINGPATH
CITFILES
CMDER_ROOT
COMMONPROGRAMFILES
COMMONPROGRAMFILES(X86)
COMMONPROGRAMW6432
COMPUTERNAME
COMSPEC
HOME
HOMEDRIVE
HOMEPATH
I86_LCC_ROOT
IWBPATH
LM_LICENSE_FILE
LOCALAPPDATA
LOGONSERVER
LSHOST
NUMBER_OF_PROCESSORS
OS
PATH
PATHEXT
PLINK_PROTOCOL
PROCESSOR_ARCHITECTURE
PROCESSOR_ARCHITEW6432
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PROGRAMDATA
PROGRAMFILES
PROGRAMFILES(X86)
PROGRAMW6432
PROMPT
PSMODULEPATH
PUBLIC
RTARCH
RTHOME
SAP_IPV6_ACTIVE
SCRIPTS
SESSIONNAME
SNC_LIB
SYSTEMDRIVE
SYSTEMROOT
TEMP
TERM
TMP
UATDATA
USER-ALIASES
USERDNSDOMAIN
USERDOMAIN
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
VERBOSE-OUTPUT
WINDIR
PYTHONDONTWRITEBYTECODE
PIP_PYTHON_PATH
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:D:\Python36-32\;D:\Python36-32\Scripts\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Users\mstolle\AppData\Local\Microsoft\WindowsApps;d:\python36-32\lib\site-packages\pywin32_system32
Contents of
Pipfile
('D:\git\hanington\Pipfile'):Contents of
Pipfile.lock
('D:\git\hanington\Pipfile.lock'):The text was updated successfully, but these errors were encountered: