aburrell / apexpy

A Python wrapper for Apex coordinates
MIT License
34 stars 25 forks source link

BUG: CLI apexpy command not found #113

Open ljlamarche opened 1 year ago

ljlamarche commented 1 year ago

Describe the bug

When attempting to use the command line interface, the apexpy command is not found. This is despite the fact that apexpy has been successfully installed and can be imported and used in python scripts.

To Reproduce

  1. Install apexpy from PyPI in a clean environment
    pip install apexpy
  2. Restart terminal session (usually necessary to use CLI functions that have just been installed)
  3. Run a CLI example from the documentation
    echo 60 15 | apexpy geo apex 2015 --height 300

Error Message

(apexpy_debug) e30737@Lamarchel-mbp16 ~ % echo 60 15 | apexpy geo apex 2015 --height 300
zsh: command not found: apexpy

Expected behavior

Apexpy should run successfully and produce the output shown in the documentation.

Computer

Please provide the following information:

Additional context

This error is showing up using conda environments with a zsh shell.

ljlamarche commented 1 year ago

May be encountering this issue on a Linux system as well. The behavior is very similar in that I can get apexpy to install, but I do not have access to apexpy on the command line afterwards.

(amisr_fitter) [llamarche@appleton ~]$ echo 60 15 | apexpy geo apex 2015 --height 300
bash: apexpy: command not found...

There are no problems importing and using apexpy in a python session.

Operating System: CentOS Linux 7 (Core) Kernel: Linux 3.10.0-1160.24.1.el7.x86_64 Architecture: x86-64 Python Version: 3.9.2