sharingsunshine
asked on
Macports Import Problem
I am trying to import into MacPorts html5lib as you can see it is active
https://gyazo.com/dd71e7f3c075fe4bda9826e67db38eb5 and you can see the syntax I tried. Please help me get this imported.
Thanks,
https://gyazo.com/dd71e7f3c075fe4bda9826e67db38eb5 and you can see the syntax I tried. Please help me get this imported.
Thanks,
You seem to be running commands to install a macport package from inside the python x11 window which will not work.
Go back to your terminal window and enter the command and it will work fine
Go back to your terminal window and enter the command and it will work fine
sudo ports install py27-html5lib
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks again, great help
[GCC 4.2.1 Compatible Apple Clang 4.1 ((tags/Apple/clang-421.11.
Type "help", "copyright", "credits" or "license" for more information.
>>> import scapy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scapy
I have also tried with Python2.5, doesn't work either.
Python 2.5.6 (r256:88840, Aug 5 2011, 03:29:42)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import scapy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scapy
I think it has to do with the path somehow, but I don't know where to edit those on Mac, especially that I installed scapy from MacPorts.