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

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

Open
smilemonki opened this issue Jul 18, 2023 · 1 comment

Comments

@smilemonki
Copy link

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']
@wrharding
Copy link
Collaborator

What OS were you deploying Cowrie on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants