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

NameError: name 'path_separators' is not defined #68541

Closed
ionelmc mannequin opened this issue Jun 1, 2015 · 3 comments
Closed

NameError: name 'path_separators' is not defined #68541

ionelmc mannequin opened this issue Jun 1, 2015 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@ionelmc
Copy link
Mannequin

ionelmc mannequin commented Jun 1, 2015

BPO 24353
Nosy @bitdancer

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 2015-06-02.00:32:15.046>
created_at = <Date 2015-06-01.19:51:56.181>
labels = ['interpreter-core', 'invalid']
title = "NameError: name 'path_separators' is not defined"
updated_at = <Date 2015-06-02.01:19:28.902>
user = 'https://bugs.python.org/ionelmc'

bugs.python.org fields:

activity = <Date 2015-06-02.01:19:28.902>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2015-06-02.00:32:15.046>
closer = 'ionelmc'
components = ['Interpreter Core']
creation = <Date 2015-06-01.19:51:56.181>
creator = 'ionelmc'
dependencies = []
files = []
hgrepos = []
issue_num = 24353
keywords = []
message_count = 3.0
messages = ['244609', '244610', '244624']
nosy_count = 2.0
nosy_names = ['ionelmc', 'r.david.murray']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue24353'
versions = ['Python 3.5']

@ionelmc
Copy link
Mannequin Author

ionelmc mannequin commented Jun 1, 2015

I get this:

Traceback (most recent call last):
  File "c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\basecommand.py", line 223, in main
    status = self.run(options, args)
  File "c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\commands\install.py", line 297, in run
    root=options.root_path,
  File "c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\req\req_set.py", line 622, in install
    **kwargs
  File "c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\req\req_install.py", line 808, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\req\req_install.py", line 1003, in move_wheel_files
    isolated=self.isolated,
  File "c:\Python27\lib\site-packages\virtualenv\_wheels\pip-7.0.1-py2.py3-none-any.whl\pip\wheel.py", line 266, in move_wheel_files
    compileall.compile_dir(source, force=True, quiet=True)
  File "C:\Program Files\Python 3.5\lib\compileall.py", line 88, in compile_dir
    legacy, optimize):
  File "C:\Program Files\Python 3.5\lib\compileall.py", line 126, in compile_file
    cfile = importlib.util.cache_from_source(fullname)
  File "<frozen importlib._bootstrap_external>", line 267, in cache_from_source
  File "<frozen importlib._bootstrap_external>", line 58, in _path_split
NameError: name 'path_separators' is not defined

Any idea what's going on? Should I try to make a minimal reproducing example?

@ionelmc ionelmc mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Jun 1, 2015
@bitdancer
Copy link
Member

You have a mixture of python2 and python3 involved there, and unless I misunderstand something about pip, that's not going to work. I think this should be reported to the pip bug tracker, but it may be an error at the python installation level or virtual environment creation level.

@ionelmc
Copy link
Mannequin Author

ionelmc mannequin commented Jun 2, 2015

Ooops, sorry for the noise, I had some weird breakage in my virtualenv.

@ionelmc ionelmc mannequin closed this as completed Jun 2, 2015
@ionelmc ionelmc mannequin added the invalid label Jun 2, 2015
@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
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

1 participant