Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xerox clipboard copy crash mpsyt #311

Closed
rcspam opened this issue Jun 11, 2015 · 3 comments
Closed

xerox clipboard copy crash mpsyt #311

rcspam opened this issue Jun 11, 2015 · 3 comments

Comments

@rcspam
Copy link

rcspam commented Jun 11, 2015

Here what i am after type "x 1"

...
20   Basic mixing in Ardour 3: Part 5 - Basic mix, groupin  Tux van Beetho  16/08/14  5     5.00  8     0     People &   1152  34:22
21   Manual Ardour 2 - Lo básico de la Edición de Audio     ManualAnalfate  24/11/11  9     4.85  34    1     Science &  6976  11:32
22   Teebs - Wind Loop                                      Alpha Pup       25/01/11  26    4.98  334   1     Music      48k   03:15

Search results for ardour                                                                                      [1/23>
> x 1
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/mps_youtube/main.py", line 4119, in clip_copy
    xerox.copy(link)
AttributeError: 'module' object has no attribute 'copy'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/mpsyt", line 9, in <module>
    load_entry_point('mps-youtube==0.2.5', 'console_scripts', 'mpsyt')()
  File "/usr/local/lib/python3.4/dist-packages/mps_youtube/main.py", line 4780, in main
    if matchfunction(k, v, userinput):
  File "/usr/local/lib/python3.4/dist-packages/mps_youtube/main.py", line 4680, in matchfunction
    func(*matches)
  File "/usr/local/lib/python3.4/dist-packages/mps_youtube/main.py", line 4123, in clip_copy
    except xerox.base.ToolNotFound as e:
AttributeError: 'module' object has no attribute 'base'
@lol768
Copy link
Contributor

lol768 commented Jun 11, 2015

I can reproduce. Here's the issue in question and the fix: https://github.com/kennethreitz/xerox/pull/9/files

Looks like there's been no PyPi release. See also adityarathod/xerox#17 (comment)

Might be worth either forking xerox (seems inactive) and adding the fixes in or using another library, e.g. https://github.com/asweigart/pyperclip or https://github.com/terryyin/clipboard or https://github.com/Gr1N/copypaste

@ids1024 ids1024 added the bug label Jun 11, 2015
@ids1024
Copy link
Contributor

ids1024 commented Jun 11, 2015

I have already noticed this, but forgot since I have no use for the feature. Apparently I left a comment in January on the xerox issue @lol768 linked to. I think I'll change this to use pyperclip, since that seems to be maintained.

@ids1024
Copy link
Contributor

ids1024 commented Jun 11, 2015

Fixed in commit 0e3a9ca.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants