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

error with the pip-installed executable #11

Open
UnixJunkie opened this issue Nov 27, 2018 · 1 comment
Open

error with the pip-installed executable #11

UnixJunkie opened this issue Nov 27, 2018 · 1 comment

Comments

@UnixJunkie
Copy link
Contributor

$ pip install standardiser
$ standardiser 
Traceback (most recent call last):
  File "~/.local/bin/standardiser", line 7, in <module>
    from standardiser.bin.standardiser import main
ImportError: No module named standardiser

$ cat ~/.local/bin/standardiser 
#!/usr/bin/python

# -*- coding: utf-8 -*-
import re
import sys

from standardiser.bin.standardiser import main

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(main())
@UnixJunkie
Copy link
Contributor Author

probable fix in here:
#12

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