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

FileNotFoundError /proc/version under pythonanywhere.com #147

Closed
jaraco opened this issue Mar 23, 2019 · 0 comments · Fixed by #148
Closed

FileNotFoundError /proc/version under pythonanywhere.com #147

jaraco opened this issue Mar 23, 2019 · 0 comments · Fixed by #148

Comments

@jaraco
Copy link
Contributor

jaraco commented Mar 23, 2019

When running pyperclip.determine_clipboard on pythonanywhere, I get this error:

jaraco@glenn-liveconsole7 ~ $ python3 -c 'import pyperclip; pyperclip.determine_clipboard()'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/jaraco/.local/lib/python3.7/site-packages/pyperclip/__init__.py", line 509, in determine_clipboard
    with open('/proc/version', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/proc/version'
asweigart added a commit that referenced this issue Oct 4, 2020
Avoid attempting to read from non-existent file. Fixes #147.
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

Successfully merging a pull request may close this issue.

1 participant