bjarneo / Pytify

A CLI application for controlling Spotify
MIT License
743 stars 40 forks source link

When attempting to execute "pytify", gives AttributeError #62

Closed jklm264 closed 5 years ago

jklm264 commented 6 years ago

Has anyone else had this problem?

pytify 3.5.1 [https://github.com/bjarneo/Pytify] Traceback (most recent call last): File "/usr/local/bin/pytify", line 11, in load_entry_point('pytify==3.5.1', 'console_scripts', 'pytify')() File "build/bdist.macosx-10.12-x86_64/egg/pytify/cli.py", line 85, in main File "build/bdist.macosx-10.12-x86_64/egg/pytify/cli.py", line 19, in init File "build/bdist.macosx-10.12-x86_64/egg/pytify/cli.py", line 61, in run File "build/bdist.macosx-10.12-x86_64/egg/pytify/cli.py", line 72, in interaction File "build/bdist.macosx-10.12-x86_64/egg/pytify/prompt.py", line 56, in custom_prompt File "build/bdist.macosx-10.12-x86_64/egg/pytify/history.py", line 7, in history AttributeError: type object 'Path' has no attribute 'home'

bjarneo commented 6 years ago

Haven't had this issue. Even tested on macos. Strange error. What python version do you use?

jklm264 commented 5 years ago

Using Python 3.7.1 with zsh, sry for the very late reply.

Update: This is interesting. It seems my system cannot find the prompt_toolkit module yet if I try to pip install it, it says it already exists in python2.7. (Fixed this issue)

Update2: When running with 2.7 it returns that Path AttributeError again.

Update3: The problem is coming from the pathlib module. I'm still investigating.