Installing html2text

Ryan Carsten Schmidt ryandesign at macports.org
Mon Jun 17 02:39:03 UTC 2024


On Jun 16, 2024, at 21:11, Dan Hinckley wrote:

> installed this port, then tried to run it. MacOS Monterey seems to
> think I want to use the Python version? Do I have a path problem? All
> my other Ports work fine.
> 
> echo $PATH
> 
> /opt/miniconda3/bin:/opt/miniconda3/condabin:/Users/house/Library/
> /Python/3.8/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin
> /:/bin:/usr/sbin:/sbin:/Applications/VMware
> /Fusion.app/Contents/Public:/Library/Apple/usr/bin:/Users/house/
> /Library/Application Support/JetBrains/Toolbox/scripts
> 
> sudo port install html2text
> Password:
> --->  Computing dependencies for html2text
> --->  Fetching archive for html2text
> --->  Attempting to fetch html2text-2.2.3_0.darwin_21.arm64.tbz2 from
> https://packages.macports.org/html2text
> --->  Attempting to fetch html2text-2.2.3_0.darwin_21.arm64.tbz2.rmd160
> from https://packages.macports.org/html2text
> --->  Installing html2text @2.2.3_0
> --->  Activating html2text @2.2.3_0
> --->  Cleaning html2text
> --->  Scanning binaries for linking errors
> --->  No broken files found.
> --->  No broken ports found.
> (base) ➜  html2text-master html2text  
> Traceback (most recent call last):
>   File "/Users/house/Library/Python/3.8/bin/html2text", line 5, in <module>
>     from html2text.cli import main
> ModuleNotFoundError: No module named 'html2text'
> (base) ➜  html2text-master whereis html2text
> html2text: /Users/house/Library/Python/3.8/bin/html2text /opt/local/
> share/man/man1/html2text.1.gz
> (base) ➜  html2text-master 

Well you apparently have the file /Users/house/Library/Python/3.8/bin/html2tex and you have configured your $PATH so that binaries located in /Users/house/Library/Python/3.8/bin are found before those located in /opt/local/bin. If you want those in /opt/local/bin to be found first, put /opt/local/bin earlier in your $PATH. Or delete /Users/house/Library/Python/3.8/bin/html2tex.


More information about the macports-users mailing list