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

Install Python fails when install path contains whitespace (and probably other nonstandard characters too) #129

Closed
2 tasks done
mhaisma opened this issue Jul 3, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mhaisma
Copy link

mhaisma commented Jul 3, 2023

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

PowerShell Start-Process fails with "positional parameter cannot be found" when installing to path which includes white space.

The user path in my windows VM is C:\Users\John Smith\

When I try to install python, using any combination of options (any available versions, Standard vs. MiniForge, etc.) with this user login, the installation fails with the following error message:


Error while installing Python!

Error message:

Start-Process : A positional parameter cannot be found that accepts argument
'Smith\AppData\Local\ansys_python_installer\ansys_python_installer\Cache\python-3.11.3-amd64.exe'.
At line:1 char:2

  • (Start-Process C:\Users\John Smith\AppData\Local\ansys_python_install ...
  •  + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
     + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
    
    
    

OK

My guess is that this path needs double quotation marks.

📝 Steps to reproduce

  1. Create a user account named "John Smith" such that the user path is C:\Users\John Smith\
  2. Login as John Smith, and Run Ansys Python Manager
  3. Install Python using default selections

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

23R2

🐍 Which Python version are you using?

3.10

📦 Installed packages

It does not get to the point of installing any packages
@mhaisma mhaisma added the bug Something isn't working label Jul 3, 2023
@RobPasMue
Copy link
Member

Hi @mhaisma! Thanks for reporting this issue. Let me work on this as soon as I can.

@RobPasMue
Copy link
Member

Hi @mhaisma! This issue has been addressed with #140 - it will be added in the next release, once we close issue #136

@RobPasMue
Copy link
Member

Hi @mhaisma - latest released version should include your fix https://github.com/ansys/python-installer-qt-gui/releases/tag/v0.2.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants