tkrajina / gpx-cmd-tools

Commandline tools for GPX
Apache License 2.0
43 stars 12 forks source link

ModuleNotFoundError: No module named 'gpxpy' #8

Closed DavidHenryThoreau closed 1 month ago

DavidHenryThoreau commented 1 month ago

Hi,

I'm getting that error by using gpxinfo :

 pipx install gpx-cmd-tools --force
--python is ignored when --force is passed. If you want to reinstall gpx-cmd-tools with /usr/bin/python, run `pipx reinstall gpx-cmd-tools --python /usr/bin/python` instead.
Installing to existing venv 'gpx-cmd-tools'
⚠️   Note: gpxclean was already on your PATH at /usr/bin/gpxclean                                                                                                                                                   ⚠️   Note: gpxinfo was already on your PATH at /usr/bin/gpxinfo                                                                                                                                                     ⚠️   Note: gpxmerge was already on your PATH at /usr/bin/gpxmerge                                                                                                                                                   ⚠️   Note: gpxsimplify was already on your PATH at /usr/bin/gpxsimplify                                                                                                                                             ⚠️   Note: gpxsplitter was already on your PATH at /usr/bin/gpxsplitter                                                                                                                                               installed package gpx-cmd-tools 0.0.1, installed using Python 3.12.3
  These apps are now globally available
    - gpxclean
    - gpxinfo
    - gpxmerge
    - gpxsimplify
    - gpxsplitter
done! ✨ 🌟 ✨
 pipx install gpxpy --force
--python is ignored when --force is passed. If you want to reinstall gpxpy with /usr/bin/python, run `pipx reinstall gpxpy --python /usr/bin/python` instead.
Installing to existing venv 'gpxpy'
⚠️   Note: gpxinfo was already on your PATH at /usr/bin/gpxinfo
  installed package gpxpy 1.6.2, installed using Python 3.12.3
  These apps are now globally available
    - gpxinfo
done! ✨ 🌟 ✨
/usr/bin/gpxinfo
Traceback (most recent call last):
  File "/usr/bin/gpxinfo", line 14, in <module>
    import gpxpy as mod_gpxpy
ModuleNotFoundError: No module named 'gpxpy'
DavidHenryThoreau commented 1 month ago

I've found the file :

~/.local/share/pipx/venvs/gpxpy/bin/gpxinfo