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 call manifest-tool on command line when installed from pip #11

Closed
maclobdell opened this issue Feb 11, 2020 · 4 comments
Closed

Comments

@maclobdell
Copy link

maclobdell commented Feb 11, 2020

Description

manifest-tool is not recognized as a valid executable when installed through pip. Tested on both Windows and Linux

Steps to recreate the issue

> pip install -U manifest-tool
> manifest-tool
'manifest-tool' is not recognized as an internal or external command,
operable program or batch file.

Background

  • I have confirmed my path variable is correct. It includes the path to pip packages.
    • C:\Users\xxxxxxx\AppData\Roaming\Python\Python37\Scripts
  • After installation, there is a manifest-tool file present with no file extension in that location. It is a python file.
  • Other packages installed with pip can be accessed with no problems. They have .exe executable files in that location that can be called directly. these include pip.exe, pyocd.exe, etc.
  • I have confirmed that the system can locate manifest-tool using the windows where command, it is just not an executable.
    > where manifest-tool
    > C:\Users\xxxxxx\AppData\Roaming\Python\Python37\Scripts\manifest-tool
    

Environment

  • manifest-tool 1.5.2
  • Windows 10
  • Python 3

Impact

Multiple users have reported this.

Workaround

Install from source.

> git clone https://github.com/armmbed/manifest-tool
> cd manifest-tool
> pip install . --user
> manifest-tool
usage: manifest-tool [-h] [-l {debug,info,warning,exception}] [--version]
                     {create,parse,verify,cert,init,sign,update} ...
@OPpuolitaival
Copy link

I did see same in linux

@maclobdell maclobdell changed the title Cannot call manifest-tool on windows command line Cannot call manifest-tool on command line when installed from pip Apr 14, 2020
@ciarmcom
Copy link

ARM Internal Ref: IOTUC-1287

@alzix
Copy link
Contributor

alzix commented May 14, 2020

cannot reproduce it on either of my Linux, Windows and MacOS machines.

C:\Users\User>where manifest-tool
C:\Python37\Scripts\manifest-tool.exe

same for linux - please check your Python installation perhaps upgrading to latest version of Python and pip package can help.

@alzix
Copy link
Contributor

alzix commented May 14, 2020

Please make sure your PATH contains directories used by Python to install the entry point scripts.
Refer to this thread

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

4 participants