Skip to content

AssertionError: Filename /usr/bin/Python-3.10.12/Lib/os.py does not start with any of these prefixes: ['/usr/local', '/usr/local'] #861

@smilemonki

Description

@smilemonki

When I tried to install Cowrie in my System, I show the error messages.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at 34f84647 Add a Telnet proxy for Cowrie (#1159)

  • cat
  • virtualenv cowrie-env
    Using base prefix '/usr/local'
    Traceback (most recent call last):
    File "/usr/bin/virtualenv", line 11, in
    load_entry_point('virtualenv==15.1.0', 'console_scripts', 'virtualenv')()
    File "/home/test/.local/lib/python3.10/site-packages/virtualenv.py", line 703, in main
    create_environment(home_dir,
    File "/home/test/.local/lib/python3.10/site-packages/virtualenv.py", line 923, in create_environment
    py_executable = os.path.abspath(install_python(
    File "/home/test/.local/lib/python3.10/site-packages/virtualenv.py", line 1132, in install_python
    copy_required_modules(home_dir, symlink)
    File "/home/test/.local/lib/python3.10/site-packages/virtualenv.py", line 1062, in copy_required_modules
    dst_filename = change_prefix(filename, dst_prefix)
    File "/home/test/.local/lib/python3.10/site-packages/virtualenv.py", line 1035, in change_prefix
    assert False, "Filename %s does not start with any of these prefixes: %s" %
    AssertionError: Filename /usr/bin/Python-3.10.12/Lib/os.py does not start with any of these prefixes: ['/usr/local', '/usr/local']

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions