Skip to content

alembic-script unquoted executable path causes failure to run on windows. #357

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by khazhyk (@khazhyk)

I'm on Windows 10.

I noticed that when installing alembic through pip (version 0.8.4 as of now), when trying to run the 'alembic' command I got an error 'failed to create process.'

^ for anyone googling.

In alembic-script.py the first line is as such when it is installed:
#!c:\program files (x86)\python35-32\python.exe

This results in trying to invoke "C:\program" as the python interpreter. When the path is quoted and the line is changed to
#!"c:\program files (x86)\python35-32\python.exe"

Alembic functions as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions