473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Cheese Shop Registration error

I tried to register on the Python Cheese Shop, but I constatnly get a
"GPG key ID is invalid" error.

I made a new GPG key using kgpg, exported the public key to the key
server, and copy/pasted the Key ID into the registration form... But it
doesn't work.

Sep 17 '06 #1
9 1524
al******@gmail.com wrote:
I tried to register on the Python Cheese Shop, but I constatnly get a
"GPG key ID is invalid" error.

I made a new GPG key using kgpg, exported the public key to the key
server, and copy/pasted the Key ID into the registration form... But it
doesn't work.
And the key ID you were trying to paste in was?
Richard

Sep 18 '06 #2
The Key ID that the kgpg shows. I tried to paste the key returned by
the quiery on the keyserver. but it also doesn't work. I tried
everything that has any connection with the key, but everything fails.

By the way the key is: 6A61E3AD

Richard Jones wrote:
al******@gmail.com wrote:
I tried to register on the Python Cheese Shop, but I constatnly get a
"GPG key ID is invalid" error.

I made a new GPG key using kgpg, exported the public key to the key
server, and copy/pasted the Key ID into the registration form... But it
doesn't work.

And the key ID you were trying to paste in was?
Richard
Sep 18 '06 #3
al******@gmail.com wrote:
The Key ID that the kgpg shows. I tried to paste the key returned by
the quiery on the keyserver. but it also doesn't work. I tried
everything that has any connection with the key, but everything fails.

By the way the key is: 6A61E3AD
Here is the code that could generate that error message:

if len(gpgid) != 8:
raise FormError, 'GPG key ID is invalid'
try:
int(gpgid)
except ValueError:
raise FormError, 'GPG key ID is invalid'

So I suspect there might have been some cut-n-paste error. Check that you've
not pasted in any whitespace that could confuse the first test.
Richard

Sep 18 '06 #4

Richard Jones wrote:
al******@gmail.com wrote:
The Key ID that the kgpg shows. I tried to paste the key returned by
the quiery on the keyserver. but it also doesn't work. I tried
everything that has any connection with the key, but everything fails.

By the way the key is: 6A61E3AD

Here is the code that could generate that error message:

if len(gpgid) != 8:
raise FormError, 'GPG key ID is invalid'
try:
int(gpgid)
| >>int("6A61E3AD")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: invalid literal for int(): 6A61E3AD
| >>int("6A61E3AD", 16)
1784800173

What am I missing?
except ValueError:
raise FormError, 'GPG key ID is invalid'

So I suspect there might have been some cut-n-paste error. Check that you've
not pasted in any whitespace that could confuse the first test.
Cheers,
John

Sep 18 '06 #5
John Machin wrote:
| >>int("6A61E3AD")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: invalid literal for int(): 6A61E3AD
| >>int("6A61E3AD", 16)
1784800173

What am I missing?
Ah, thankyou! I, on the other hand, looked at that code several times and
saw nothing ;)

I've fixed the code and it'll be fixed on the server soon (once apache
restarts itself).
Richard

Sep 19 '06 #6
Richard Jones wrote:
John Machin wrote:
| >>int("6A61E3AD")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: invalid literal for int(): 6A61E3AD
| >>int("6A61E3AD", 16)
1784800173

What am I missing?

Ah, thankyou! I, on the other hand, looked at that code several times and
saw nothing ;)

I've fixed the code and it'll be fixed on the server soon (once apache
restarts itself).
Hi Richard, might be a good idea to spell out the actual criteria
rather than rely on side effects of int -- e.g. if the input is not
subject to .strip() somewhere between the keyboard and your code, you
could get false positives:

| >>int("1234567 ",16)
| 19088743
| >>int(" 1234567",16)
| 19088743

re.match("[A-Fa-f0-9]{8,8}", data.strip()) makes it plain what is
intended ...

Cheers,
John
Cheers,
John

Sep 19 '06 #7
John Machin wrote:
re.match("[A-Fa-f0-9]{8,8}", data.strip()) makes it plain what is
intended ...
Indeed, thanks.
Richard

Sep 20 '06 #8
Thank You all! :) I successfully registered and submited my first
package :)

Richard Jones wrote:
John Machin wrote:
re.match("[A-Fa-f0-9]{8,8}", data.strip()) makes it plain what is
intended ...

Indeed, thanks.
Richard
Sep 20 '06 #9
Thank You all! :) I successfully registered and submited my first
package :)

Richard Jones wrote:
John Machin wrote:
re.match("[A-Fa-f0-9]{8,8}", data.strip()) makes it plain what is
intended ...

Indeed, thanks.
Richard
Sep 20 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Srinivasan TK | last post by:
All, I have been successful in build/install of python2.4 on AIX. Now ,Is it mandatory that I build the third-party packages ( python2.4/site-packages) .If so is there a list that needs to be...
4
by: Todd Greenwood-Geer | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Python-list - I'd like to publish to PyPI. I'm assuming that this is open to anyone. So here's my repro case for trying to register for an...
52
by: Steve Holden | last post by:
I've been thinking (and blogging) about python evangelism since PyCon, as a result of which I created a squidoo lens: http://www.squidoo.com/pythonlogy Imagine my surprise at discovering that...
56
by: richard | last post by:
So I wrote PyPI back a couple of years ago. It was just a simple cgi script and some distutils code. I needed to call it *something* and "Python Package Index" seemed like a fairly obvious name....
0
by: Frederic Rentsch | last post by:
Some time ago I had managed to upload a small package to the Cheese Shop using the data entry template. Uploading is in two steps: first the text then the package file. When I had a new version it...
2
by: metaperl.etc | last post by:
The first thing I look at when examining a module is how often it is updated. Unfortunately, the entries there dont show this. Eg: http://www.python.org/pypi/PySimpleXML/1.0 Second, it seems...
3
by: cbtube03 | last post by:
Is there a package rating system for the Cheese Shop, like how Perl has cpanratings (http://cpanratings.perl.org/)? Do you think it would be useful? I see that we already have Cheesecake...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.