huwwp / cryptop

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

FileNotFoundError: [Errno 2] No such file or directory #61

Open miguelmota opened 6 years ago

miguelmota commented 6 years ago

Hi, I'm trying to use cryptop but get an error after running.

$ sudo pip3 install cryptop
The directory '/Users/mota/Library/Caches/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 '/Users/mota/Library/Caches/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.2.0.tar.gz
Requirement already satisfied: requests in /usr/local/lib/python3.6/site-packages (from cryptop)
Collecting requests_cache (from cryptop)
  Downloading requests_cache-0.4.13-py2.py3-none-any.whl
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->cryptop)
Requirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python3.6/site-packages (from requests->cryptop)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.6/site-packages (from requests->cryptop)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->cryptop)
Installing collected packages: requests-cache, cryptop
  Running setup.py install for cryptop ... done
Successfully installed cryptop-0.2.0 requests-cache-0.4.13

$ cryptop
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/cryptop", line 11, in <module>
    load_entry_point('cryptop==0.1.2', 'console_scripts', 'cryptop')()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptop.py", line 204, in main
    config = read_configuration(conffile)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptop.py", line 24, in read_configuration
    shutil.copyfile(defaultconf, conffile)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/shutil.py", line 114, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/config.ini'

Any help is appreciated, thanks.