Questions tagged [pyperclip]

A cross-platform clipboard module for Python.

Pyperclip is a cross-platform Python module for copy and paste clipboard functions. It works with Python 2 and 3.

More information:

191 questions
0
votes
0 answers

"ModuleNotFoundError" when i run exe file

I am trying to make an exe file out of my python script but whenever I try to run my exe file, it gives a Traceback error that pyperclip module not found. I even tried to hidden import it using --hidden-import but still the same issue. Can you…
0
votes
1 answer

Can't install pyperclip, multiple instances of Python

I had to download the Microsoft store version of Python for BS Windows compatibility reasons- I'd been working off of the direct python download before this. Recently, I was messing with PATH stuff and messed up in a weird way. I deleted my…
0
votes
3 answers

Tkinter Button does nothing when clicked

This is the code for my personal project, for some reason, I can't get the button to do anything when pressed. Edit: So I managed to fix the text deleting after each input, so now it will continue to output as many passwords as I want. I removed the…
Mocha
  • 1
  • 2
0
votes
1 answer

Need to use pyperclip on heroku

I need to use pyperclip on heroku on a selenium app to copy something to clipboard but as the platform runs a 'headless' browser and has no GUI, a clipboard is obscure. is it possible for me to make this work somehow?
0
votes
1 answer

Unable to import Pyperclip into Mu

Apologies if this has been answered; I am too green to know if someone had my issue. I am going through Automate the Boring Stuff With Python, and am trying to import pyperclip for ch. 6. Below is from the command prompt. Microsoft Windows [Version…
0
votes
1 answer

python pyperclip KeyError XDG_SESSION_TYPE

pyperclip is failing to determine the clipboard for my system any advice? I am running CentOS 7 I have verified xclip and is working cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) % echo "test" | xclip -i -sel clip % echo "test…
0
votes
0 answers

Is there a limit to the amount of characters the pyperclip module can copy?

So pyperclip is a module used to copy data that can later be pasted or used for other purposes. I have been working on creating a program that automates the process of using a plagiarism checking website and I soon plan on making my plagarism…
0
votes
0 answers

Can regular expressions search variables assigned from the clipboard with pyperclip?

I am working on a python script to trim credit card statements show only debit lines, removing other lines like the preface information and the rolling balance. The intended use is copying the entire statement to the clipboard, running the program…
0
votes
1 answer

Pyperclip error in Pythonista on iPad Pro

I am learning Python 3 using a Udemy course. One of the course modules asks us to install Pyperclip in order to try out simple code is the console. import pyperclip pyperclip.copy(‘Test’) pyperclip.paste() I believe this should output the word…
0
votes
1 answer

.send_keys in selenium is messing up indentation when using with pyperclip

I'm copying some code from Leetcode to paste in Github, I use pyperclip to paste and copy into clipboard using Selenium. Everything is saved as a string but when i use driver.send_keys(pyperclip.paste()) this is what happens I've verified that the…
A.K.M. Adib
  • 517
  • 1
  • 7
  • 22
0
votes
1 answer

Using pyperclip with BeautifulSoup

Is it possible to pass BeautifulSoup a HTML I have copied in my clipboard using pyperclip. I have difficulties using requests as the page requires login, and the usual methods for passing cookies to requests doesn't work.
0
votes
2 answers

Pyperclip doesn't copy to the clipboard outside of shell

I used pip install pyperclip to install the package. when I use it in a script, eg.: import pyperclip pyperclip.copy('somestring') pyperclip.paste() it would return 'somestring' my issue is that I wanna use it to paste elsewhere but the shell, it…
0
votes
2 answers

Python Libraries installing to Python 2.7 by default

I recently shifted to a Macbook. I installed Python 3.8 and installed Pyperclip using pip install pyperclip in the terminal, which was successful. When I tried to import it in IDLE shell, I get the error ModuleNotFoundError: No module named…
Aamod Pant
  • 21
  • 4
0
votes
2 answers

Real-Time Copying and Pasting to Excel

I made this simple program using openpyxl and pyperclip that pastes the clipboard's contents on to successive rows in Excel - so for instance if I copied the word 'hello', it will paste 'hello' on to the cells 'A2, A3, A4...' However, my main goal…
user209835
  • 13
  • 4
0
votes
1 answer

Block Windows clipboard from user with Python while Program running

I want to make it impossible for a user to copy data to the clipboard as long as my program is running. How would I go about to do that in Python ?
PAP
  • 38
  • 4