huwwp / cryptop

command line crypto portfolio
MIT License
235 stars 40 forks source link

Changed alias to python 3.6 | used pip install | result attached #29

Closed veonindustries closed 7 years ago

veonindustries commented 7 years ago
vitticus@ubuntu:~$ alias python=python3.6
vitticus@ubuntu:~$ python --version
Python 3.6.1
vitticus@ubuntu:~$ cd Documents/
vitticus@ubuntu:~/Documents$ cd cryptop-master/
vitticus@ubuntu:~/Documents/cryptop-master$ sudo pip install cryptop
[sudo] password for vitticus: 
The directory '/home/vitticus/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/vitticus/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: cryptop in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from cryptop)
Requirement already satisfied: requests_cache in /usr/local/lib/python2.7/dist-packages (from cryptop)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop)
Requirement already satisfied: idna<2.6,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop)
vitticus@ubuntu:~/Documents/cryptop-master$ cryptop
Traceback (most recent call last):
  File "/usr/local/bin/cryptop", line 11, in <module>
    load_entry_point('cryptop==0.1.5', 'console_scripts', 'cryptop')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 561, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/cryptop/cryptop.py", line 6, in <module>
    import configparser
ImportError: No module named configparser
huwwp commented 7 years ago

It's already installed under Python 2.7 causing those errors.

Try sudo pip uninstall cryptop sudo pip3 install cryptop

You might need to install pip for python3 apt-get python3-pip

On 7 Aug. 2017 15:26, "Veon Industries" notifications@github.com wrote:

vitticus@ubuntu:~$ alias python=python3.6 vitticus@ubuntu:~$ python --version Python 3.6.1 vitticus@ubuntu:~$ cd Documents/ vitticus@ubuntu:~/Documents$ cd cryptop-master/ vitticus@ubuntu:~/Documents/cryptop-master$ sudo pip install cryptop [sudo] password for vitticus: The directory '/home/vitticus/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/vitticus/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied: cryptop in /usr/local/lib/python2.7/dist-packages Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from cryptop) Requirement already satisfied: requests_cache in /usr/local/lib/python2.7/dist-packages (from cryptop) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop) Requirement already satisfied: idna<2.6,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop) Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->cryptop) vitticus@ubuntu:~/Documents/cryptop-master$ cryptop Traceback (most recent call last): File "/usr/local/bin/cryptop", line 11, in load_entry_point('cryptop==0.1.5', 'console_scripts', 'cryptop')() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 561, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2631, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 2291, in load return self.resolve() File "/usr/lib/python2.7/dist- packages/pkg_resources/init.py", line 2297, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/lib/python2.7/dist-packages/cryptop/cryptop.py", line 6, in

import configparser ImportError: No module named configparser vitticus@ubuntu:~/Documents/cryptop-master$ — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .
veonindustries commented 7 years ago

Hi there, tried this on a new ubuntu installation: Please see..

vitticus@ubuntu:~/Documents/Python-3.6.2$ cd
vitticus@ubuntu:~$ python --version
Python 3.6.2
vitticus@ubuntu:~$ cd Downloads/cryptop-master/
vitticus@ubuntu:~/Downloads/cryptop-master$ clear

vitticus@ubuntu:~/Downloads/cryptop-master$ ls
cryptop  LICENSE.txt  README.rst        setup.py
img      MANIFEST.in  requirements.txt  todo.txt
vitticus@ubuntu:~/Downloads/cryptop-master$ sudo pip3 install cryptop
The directory '/home/vitticus/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/vitticus/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting cryptop
  Downloading cryptop-0.1.8.tar.gz
Collecting requests (from cryptop)
  Downloading requests-2.18.3-py2.py3-none-any.whl (88kB)
    100% |████████████████████████████████| 92kB 2.3MB/s 
Collecting requests_cache (from cryptop)
  Downloading requests_cache-0.4.13-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests->cryptop)
  Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
    100% |████████████████████████████████| 133kB 2.5MB/s 
Collecting idna<2.6,>=2.5 (from requests->cryptop)
  Downloading idna-2.5-py2.py3-none-any.whl (55kB)
    100% |████████████████████████████████| 61kB 14.7MB/s 
Collecting chardet<3.1.0,>=3.0.2 (from requests->cryptop)
  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 3.2MB/s 
Collecting certifi>=2017.4.17 (from requests->cryptop)
  Downloading certifi-2017.7.27.1-py2.py3-none-any.whl (349kB)
    100% |████████████████████████████████| 358kB 1.6MB/s 
Installing collected packages: urllib3, idna, chardet, certifi, requests, requests-cache, cryptop
  Running setup.py install for cryptop ... done
Successfully installed certifi-2017.7.27.1 chardet-3.0.4 cryptop-0.1.8 idna-2.5 requests-2.18.3 requests-cache-0.4.13 urllib3-1.22
vitticus@ubuntu:~/Downloads/cryptop-master$ cryptop
Traceback (most recent call last):
  File "/usr/local/bin/cryptop", line 11, in <module>
    load_entry_point('cryptop==0.1.8', 'console_scripts', 'cryptop')()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
    return ep.load()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
  File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.6/site-packages/cryptop/cryptop.py", line 1, in <module>
    import curses
  File "/usr/local/lib/python3.6/curses/__init__.py", line 13, in <module>
    from _curses import *
ModuleNotFoundError: No module named '_curses'
vitticus@ubuntu:~/Downloads/cryptop-master$ 

Any ideas?

huwwp commented 7 years ago

Looks like your python doesn't have curses? I've never seen that before, I don't know. Make sure everything is up to date.

sudo apt-get update sudo apt-get dist-upgrade sudo pip install --upgrade pip

jgoggan commented 7 years ago

Just to note it, when I did my install under Windows, I also did not have curses. I installed a curses dist and all was fine after that.

veonindustries commented 7 years ago

@huwwp Did the trick. Thank you! Love it