Skip to content

pync was not properly installed #41

@KvashaIhor

Description

@KvashaIhor

Hi
I have an "Exception: pync was not properly installed. Head over to https://github.com/SeTeM/pync/ and file a bug." during compiling program with py2app. I've installed an actual version from github, but it didn't work. Also I found here a bug issue #17, but I dont even have this files on package directories.
That's my first topic, so I'll also put my code there, may be it will be useful.

import clipboard
import pync
import time

with open('таблицапринтов.txt') as f:
    content = f.readlines()
content = [x.strip() for x in content]
keydict = {}
for i in range(len(content)):
    k=content[i]
    test = content[i].split()
    keydict[test[0]] = test[len(test)-1]
check=0
while True:
    time.sleep(1.5)
    text = clipboard.paste()
    if not text==check:
     if text in keydict.keys():
        pync.notify('Ссылка в буфере', appIcon='right.png', title='PrintSearch')
        clipboard.copy(keydict[text])
        check=text
     elif not text in keydict.values():
        pync.notify('Ссылки нет в базе', appIcon='wrong.png', title='PrintSearch')
        check=text
  • default setup.py py2app file
    Pls help

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions