kcsaff / getkey

MIT License
41 stars 18 forks source link

PIP will not install getkey #13

Open MikeTheToolman opened 4 years ago

MikeTheToolman commented 4 years ago

Here is the error...

`Microsoft Windows [Version 10.0.18363.778] (c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Toolman>pip install getkey WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Defaulting to user installation because normal site-packages is not writeable Collecting getkey Using cached getkey-0.6.5.tar.gz (13 kB) ERROR: Command errored out with exit status 1: command: 'c:\program files\python36\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Toolman\AppData\Local\Temp\pip-install-22de4zht\getkey\setup.py'"'"'; file='"'"'C:\Users\Toolman\AppData\Local\Temp\pip-install-22de4zht\getkey\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Toolman\AppData\Local\Temp\pip-pip-egg-info-neweuhzn' cwd: C:\Users\Toolman\AppData\Local\Temp\pip-install-22de4zht\getkey\ Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\Toolman\AppData\Local\Temp\pip-install-22de4zht\getkey\setup.py", line 37, in long_description=read_description(), File "C:\Users\Toolman\AppData\Local\Temp\pip-install-22de4zht\getkey\setup.py", line 11, in read_description return fd.read() File "c:\program files\python36\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 876: character maps to

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.`

rlw1138 commented 4 years ago

Read through the other issues....your problem (mine also) was solved in Issue #2. Use Rupert Li's fork.

MikeTheToolman commented 4 years ago

Yes. I see. I’m new to Python, Github, and the various processes involved. I don’t have getkey installed. I can manually download the files as outlined but I’m not clear on what to do with them. For instance, where do the files go? Having the files in the appropriate location, to install do I open a cmd window in the directory where getkey and setup.py are located and enter “Python setup.py install”? And that’s it? There are dozens of copies of “setup.py” in my system. I don’t get that.

On Thu, May 14, 2020 at 3:19 PM rlw1138 notifications@github.com wrote:

Read through the other issues....your problem (mine also) was solved in Issue #2 https://github.com/kcsaff/getkey/issues/2. Use Rupert Li's fork.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-628865604, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MTGQL6BAG32ZO6E37TRRRG47ANCNFSM4NAWIVMQ .

-- Mike

rlw1138 commented 4 years ago

Yeah, it took me a while to figure it out!!

If the package by KC Saff was OK, you would install it with "pip3 install getkey" without even doing a download (pip knows what to do, it's magic!)

Rupert fixed her getkey() by adding a tiny snippet to handle UTF-8 encoding.....hers won't install without that.

Since KC's package is the one that's "registered" as the 'proper' getkey, to use Rupert's corrected version you have to go to his githjub (li-rupert) and download his and then manually install it.

Then, in whatever folder it was downloaded to, you un-zip it. Now, in that getkey folder, where "setup.py" is, start a command shell and run "python3 setup.py install"

The installed software will go into your python installation......I did a 'custom' python install and put mine in C:\python37

Installed Packages go into Lib\site-packages -- so mine went to C:\python37\Lib\site-packages\getkey

Once the package is installed, you can delete the folders and zips that you downloaded.


From: MikeTheToolman notifications@github.com Sent: Thursday, May 14, 2020 10:00 PM To: kcsaff/getkey getkey@noreply.github.com Cc: rlw1138 rlw1138@hotmail.com; Comment comment@noreply.github.com Subject: Re: [kcsaff/getkey] PIP will not install getkey (#13)

Yes. I see. I’m new to Python, Github, and the various processes involved. I don’t have getkey installed. I can manually download the files as outlined but I’m not clear on what to do with them. For instance, where do the files go? Having the files in the appropriate location, to install do I open a cmd window in the directory where getkey and setup.py are located and enter “Python setup.py install”? And that’s it? There are dozens of copies of “setup.py” in my system. I don’t get that.

On Thu, May 14, 2020 at 3:19 PM rlw1138 notifications@github.com wrote:

Read through the other issues....your problem (mine also) was solved in Issue #2 https://github.com/kcsaff/getkey/issues/2. Use Rupert Li's fork.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-628865604, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MTGQL6BAG32ZO6E37TRRRG47ANCNFSM4NAWIVMQ .

-- Mike

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kcsaff/getkey/issues/13#issuecomment-628998361, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHG52RVUYGUFZGYBTT3RFY3RRSV3LANCNFSM4NAWIVMQ.

MikeTheToolman commented 4 years ago

Hey, thanks!

From: rlw1138 [mailto:notifications@github.com] Sent: May 15, 2020 2:43 PM To: kcsaff/getkey Cc: MikeTheToolman; Author Subject: Re: [kcsaff/getkey] PIP will not install getkey (#13)

Yeah, it took me a while to figure it out!!

If the package by KC Saff was OK, you would install it with "pip3 install getkey" without even doing a download (pip knows what to do, it's magic!)

Rupert fixed her getkey() by adding a tiny snippet to handle UTF-8 encoding.....hers won't install without that.

Since KC's package is the one that's "registered" as the 'proper' getkey, to use Rupert's corrected version you have to go to his githjub (li-rupert) and download his and then manually install it.

Then, in whatever folder it was downloaded to, you un-zip it. Now, in that getkey folder, where "setup.py" is, start a command shell and run "python3 setup.py install"

The installed software will go into your python installation......I did a 'custom' python install and put mine in C:\python37

Installed Packages go into Lib\site-packages -- so mine went to C:\python37\Lib\site-packages\getkey

Once the package is installed, you can delete the folders and zips that you downloaded.


From: MikeTheToolman notifications@github.com Sent: Thursday, May 14, 2020 10:00 PM To: kcsaff/getkey getkey@noreply.github.com Cc: rlw1138 rlw1138@hotmail.com; Comment comment@noreply.github.com Subject: Re: [kcsaff/getkey] PIP will not install getkey (#13)

Yes. I see. I’m new to Python, Github, and the various processes involved. I don’t have getkey installed. I can manually download the files as outlined but I’m not clear on what to do with them. For instance, where do the files go? Having the files in the appropriate location, to install do I open a cmd window in the directory where getkey and setup.py are located and enter “Python setup.py install”? And that’s it? There are dozens of copies of “setup.py” in my system. I don’t get that.

On Thu, May 14, 2020 at 3:19 PM rlw1138 notifications@github.com wrote:

Read through the other issues....your problem (mine also) was solved in Issue #2 https://github.com/kcsaff/getkey/issues/2. Use Rupert Li's fork.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-628865604, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MTGQL6BAG32ZO6E37TRRRG47ANCNFSM4NAWIVMQ .

-- Mike

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kcsaff/getkey/issues/13#issuecomment-628998361, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHG52RVUYGUFZGYBTT3RFY3RRSV3LANCNFSM4NAWIVMQ.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-629439360 , or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MRY2SCFUKMQUYH4XNDRRWLLHANCNFSM4NAWIVMQ .Image removed by sender.

MikeTheToolman commented 4 years ago

I have another "issue" with getkey that you may be able to help me with. When I play around with it using PyScriptor, when debug gets to "key = getkey()" platforms.py opens. Why does that happen instead of progressing to the next line?

Thanks, Mike

On Thu, May 14, 2020 at 3:19 PM rlw1138 notifications@github.com wrote:

Read through the other issues....your problem (mine also) was solved in Issue #2 https://github.com/kcsaff/getkey/issues/2. Use Rupert Li's fork.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-628865604, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MTGQL6BAG32ZO6E37TRRRG47ANCNFSM4NAWIVMQ .

rlw1138 commented 4 years ago

sorry, don't know pyscriptor


From: MikeTheToolman notifications@github.com Sent: Wednesday, May 20, 2020 11:54 AM To: kcsaff/getkey getkey@noreply.github.com Cc: rlw1138 rlw1138@hotmail.com; Comment comment@noreply.github.com Subject: Re: [kcsaff/getkey] PIP will not install getkey (#13)

I have another "issue" with getkey that you may be able to help me with. When I play around with it using PyScriptor, when debug gets to "key = getkey()" platforms.py opens. Why does that happen instead of progressing to the next line?

Thanks, Mike

On Thu, May 14, 2020 at 3:19 PM rlw1138 notifications@github.com wrote:

Read through the other issues....your problem (mine also) was solved in Issue #2 https://github.com/kcsaff/getkey/issues/2. Use Rupert Li's fork.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-628865604, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MTGQL6BAG32ZO6E37TRRRG47ANCNFSM4NAWIVMQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kcsaff/getkey/issues/13#issuecomment-631598297, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHG52RRZ4GOCQFXZM3PF57DRSQDLZANCNFSM4NAWIVMQ.

MikeTheToolman commented 4 years ago

Ah. I'm doing the beginner thing. I'm not being clear enough. PyScriptor is the open source Python IDE that I found to fiddle around with programming. I don't believe there's any problem with it but I suppose it's possible.

The "problem" is when debug gets to the line "key = getkey()" one of getkey's files, platforms.py, opens. Does that happen to you?

On Wed, May 20, 2020 at 5:19 PM rlw1138 notifications@github.com wrote:

sorry, don't know pyscriptor


From: MikeTheToolman notifications@github.com Sent: Wednesday, May 20, 2020 11:54 AM To: kcsaff/getkey getkey@noreply.github.com Cc: rlw1138 rlw1138@hotmail.com; Comment comment@noreply.github.com Subject: Re: [kcsaff/getkey] PIP will not install getkey (#13)

I have another "issue" with getkey that you may be able to help me with. When I play around with it using PyScriptor, when debug gets to "key = getkey()" platforms.py opens. Why does that happen instead of progressing to the next line?

Thanks, Mike

On Thu, May 14, 2020 at 3:19 PM rlw1138 notifications@github.com wrote:

Read through the other issues....your problem (mine also) was solved in Issue #2 https://github.com/kcsaff/getkey/issues/2. Use Rupert Li's fork.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-628865604, or unsubscribe < https://github.com/notifications/unsubscribe-auth/APKQ3MTGQL6BAG32ZO6E37TRRRG47ANCNFSM4NAWIVMQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/kcsaff/getkey/issues/13#issuecomment-631598297>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AHG52RRZ4GOCQFXZM3PF57DRSQDLZANCNFSM4NAWIVMQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-631758059, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MXQ3SROB7CSK3SOUN3RSRJOTANCNFSM4NAWIVMQ .

rlw1138 commented 4 years ago

Does the code run properly without the debugger?

Is the debugger "stepping into" the imported modules?

You may want to "step over" lines that call code in other files.

(MS VisualStudio terminology....PyScriptor may call it something else) also some debuggers step 'into' and 'over' code with 2 different keystrokes, others use a setting and just one 'step' keystroke -- if that makes sense

Maybe I'll install pyscriptor and see for myself.....i've been debugging the old fashioned way: lots of iterations and lots of swearing!!


From: MikeTheToolman notifications@github.com Sent: Thursday, May 21, 2020 9:35 AM To: kcsaff/getkey getkey@noreply.github.com Cc: rlw1138 rlw1138@hotmail.com; Comment comment@noreply.github.com Subject: Re: [kcsaff/getkey] PIP will not install getkey (#13)

Ah. I'm doing the beginner thing. I'm not being clear enough. PyScriptor is the open source Python IDE that I found to fiddle around with programming. I don't believe there's any problem with it but I suppose it's possible.

The "problem" is when debug gets to the line "key = getkey()" one of getkey's files, platforms.py, opens. Does that happen to you?

On Wed, May 20, 2020 at 5:19 PM rlw1138 notifications@github.com wrote:

sorry, don't know pyscriptor


From: MikeTheToolman notifications@github.com Sent: Wednesday, May 20, 2020 11:54 AM To: kcsaff/getkey getkey@noreply.github.com Cc: rlw1138 rlw1138@hotmail.com; Comment comment@noreply.github.com Subject: Re: [kcsaff/getkey] PIP will not install getkey (#13)

I have another "issue" with getkey that you may be able to help me with. When I play around with it using PyScriptor, when debug gets to "key = getkey()" platforms.py opens. Why does that happen instead of progressing to the next line?

Thanks, Mike

On Thu, May 14, 2020 at 3:19 PM rlw1138 notifications@github.com wrote:

Read through the other issues....your problem (mine also) was solved in Issue #2 https://github.com/kcsaff/getkey/issues/2. Use Rupert Li's fork.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-628865604, or unsubscribe < https://github.com/notifications/unsubscribe-auth/APKQ3MTGQL6BAG32ZO6E37TRRRG47ANCNFSM4NAWIVMQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/kcsaff/getkey/issues/13#issuecomment-631598297>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AHG52RRZ4GOCQFXZM3PF57DRSQDLZANCNFSM4NAWIVMQ

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kcsaff/getkey/issues/13#issuecomment-631758059, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKQ3MXQ3SROB7CSK3SOUN3RSRJOTANCNFSM4NAWIVMQ .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/kcsaff/getkey/issues/13#issuecomment-632121070, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHG52RT4XFGVWW2QGVDD4G3RSU32BANCNFSM4NAWIVMQ.