Closed spcmd closed 8 years ago
Thanks for letting me know. It's a bug that occurs in python >= 3.4 that I haven't fixed yet. I notice you use python 3.5 so that's probably the reason. Hopefully I'll get some spare time to fix it soon.
I was able to fix it by adding pytify. before each of the imports in python3.4. so
'import pytifylib'
becomes
'import pytify.pytifylib'
I had to make this change in all the files the import pytify libraries.
I am not sure if that is the clean solution to the problem but it seemed to worked for me.
Spicychckn: Thanks! Now it works for me too. With python 3.5 (at least under Arch Linux) I had to correct these too, otherwise it couldn't load the modules:
/usr/lib/python3.5/site-packages/pytify
cli.py
import pytify.pytifylib
from pytify.strategy import get_pytify_class_by_platform
from pytify.menu import Menu
darwinpytify.py
from pytify.pytifylib import Pytifylib
linuxpytify.py
from pytify.pytifylib import Pytifylib
menu.py
from pytify.strategy import get_pytify_class_by_platform
strategy.py
from pytify.linuxpytify import LinuxPytify
from pytify.darwinpytify import DarwinPytify
Thanks for your feedback.
I guess I need to check what version is in use before importing modules. Tried with pytify.pytifylib in python 2.7, and that failed.
Solved: #22
Waiting for pypi to work so I can publish.
Registering pytify to https://pypi.python.org/pypi Server response (500): Internal Server Error
Should be a new release: https://pypi.python.org/pypi/pytify/2.1.0
Installation went fine with pip, dependecy check is okay:
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python3.5/site-packages
When I try to run
pytify
I got this error:I'm using Arch Linux, python2 and python 3 packages are installed.