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 validate argument on parameter 'Name'. Method invocation failed because [System.Char] does not contain a method named 'EndsWith'. #10

Open
Vaslo opened this issue Sep 9, 2023 · 0 comments

Comments

@Vaslo
Copy link

Vaslo commented Sep 9, 2023

Hello,

I'm getting the following error after installation:

PS C:\Users\gvas\PSVirtualEnv> mk-venv test
[PSVirtualEnv]::PROCESS: Creating new virtual environment 'test'.
Get-VirtualEnv: C:\Program Files\WindowsPowerShell\Modules\PSVirtualEnv\0.5.7\Functions\New-VirtualEnv.ps1:155
Line |
 155 |          virtualenv  $virtualEnvDir $verbose_cmd
     |                      ~~~~~~~~~~~~~~
     | Cannot validate argument on parameter 'Name'. Method invocation failed because [System.Char] does not contain a method named
     | 'EndsWith'.

[PSVirtualEnv]::ERROR: Virtual environment 'C:\Users\gvas\PSVirtualEnv\test' could not be created.

I've done the installation and then tried . (activate-venv) I even tried manually resetting the $virtualEnvDir and I confirmed the directory does exist. I'm in admin mode as well.

Thanks.

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

No branches or pull requests

1 participant