huwwp / cryptop

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

Having troubles with installation via sudo python setup.py install (see logs) #25

Closed veonindustries closed 7 years ago

veonindustries commented 7 years ago
vitticus@kali:~/cryptop-master$ ls
config.ini  img          MANIFEST.in  requirements.txt  todo.txt
cryptop.py  LICENSE.txt  README.rst   setup.py
vitticus@kali:~/cryptop-master$ python --version
Python 3.6.2
vitticus@kali:~/cryptop-master$ sudo python setup.py install
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
vitticus@kali:~/cryptop-master$ 
christian-fei commented 7 years ago

I'm having this issue:

after a install via sudo pip install cryptop

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

I will try to update python to 3.6 or higher tomorrow and report back.

huwwp commented 7 years ago

Hi Veon, looks like Kali/your python install doesn't include setuptools, I'll make it clear that it is a requirement. You can install it with apt-get install python3-setuptools

huwwp commented 7 years ago

Forgot to add the ini to the manifest.in or setup.py package_data, I'll push out a fix soon.

huwwp commented 7 years ago

Hi Christian, I patched it, should be working now

christian-fei commented 7 years ago

works, thanks a lot :)