firecat53 / urlscan

Mutt and terminal url selector (similar to urlview)
GNU General Public License v2.0
211 stars 36 forks source link

v0.9.6: Failing to import modules #108

Closed Boruch-Baum closed 3 years ago

Boruch-Baum commented 3 years ago

I've git cloned the repository, and performed a pip install --user -e ./, but when attempting to use urlscan ...

Traceback (most recent call last):
  File "/home/optimum/.local/bin/urlscan", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/home/optimum/Projects/urlscan/bin/urlscan", line 28, in <module>
    from email import policy
ImportError: cannot import name policy

I'm using python 3.7 in debian.

From a python3 shell, I succeed in performing from email import policy

For giggles, I commented out the line, and received further similar errors for BytesParser and DEVNULL

Version 0.94 of urlscan had been working fine...

Boruch-Baum commented 3 years ago

I'm seeing that the pip install is creating file urlscan.egg-link in a python 2.7 directory ?! Is that expected/desirable? I notice it because it created the two levels of directory tree ~/.local/lib/python2.7/site-packages.

Boruch-Baum commented 3 years ago

OKAY! I still have python2 installed, so running pip was running the python2 version. Re-installing with pip3 fixed the issue.