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

cannot run module with double quotes #75295

Closed
ericshenjs mannequin opened this issue Aug 3, 2017 · 2 comments
Closed

cannot run module with double quotes #75295

ericshenjs mannequin opened this issue Aug 3, 2017 · 2 comments
Labels
OS-windows performance Performance or resource usage

Comments

@ericshenjs
Copy link
Mannequin

ericshenjs mannequin commented Aug 3, 2017

BPO 31112
Nosy @pfmoore, @tjguk, @zware, @eryksun, @zooba

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2017-08-03.04:58:23.276>
created_at = <Date 2017-08-03.03:11:54.651>
labels = ['invalid', 'OS-windows', 'performance']
title = 'cannot run module with double quotes'
updated_at = <Date 2017-08-03.04:58:23.274>
user = 'https://bugs.python.org/ericshenjs'

bugs.python.org fields:

activity = <Date 2017-08-03.04:58:23.274>
actor = 'eryksun'
assignee = 'none'
closed = True
closed_date = <Date 2017-08-03.04:58:23.276>
closer = 'eryksun'
components = ['Windows']
creation = <Date 2017-08-03.03:11:54.651>
creator = 'ericshenjs'
dependencies = []
files = []
hgrepos = []
issue_num = 31112
keywords = []
message_count = 2.0
messages = ['299681', '299682']
nosy_count = 6.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'ericshenjs']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'resource usage'
url = 'https://bugs.python.org/issue31112'
versions = ['Python 3.6']

@ericshenjs
Copy link
Mannequin Author

ericshenjs mannequin commented Aug 3, 2017

(vPy3X64) test01@NJNU f:\Src\localCode\python\py3_eric

python "-m locust.main -V"
f:\SDKs\Python\vPy3X64\Scripts\python.exe: Error while finding module specification for ' locust.main -V' (ModuleNotFoundError: No module named ' locust')

(vPy3X64) test01@NJNU f:\Src\localCode\python\py3_eric

python -m locust.main -V
[2017-08-03 10:53:19,111] NJNU/INFO/stdout: Locust 0.8a2
[2017-08-03 10:53:19,111] NJNU/INFO/stdout:

(vPy3X64) test01@NJNU f:\Src\localCode\python\py3_eric

python -V
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)

@ericshenjs ericshenjs mannequin added OS-windows performance Performance or resource usage labels Aug 3, 2017
@eryksun
Copy link
Contributor

eryksun commented Aug 3, 2017

Python uses the C runtime wmain entry point, which parses the commandline string into an argument array using documented rules 1. The quoted string "-m locust.main -V" is passed as a single argument instead of the expected three arguments: ["-m", "locust.main", "-V"].

@eryksun eryksun closed this as completed Aug 3, 2017
@eryksun eryksun added the invalid label Aug 3, 2017
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows performance Performance or resource usage
Projects
None yet
Development

No branches or pull requests

1 participant