473,804 Members | 3,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1556
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("123456 7 ",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
1466
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 built and installed . Please advise.
4
1450
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 account: REPRO:
52
3631
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 this has gone up in rank (by number of views) from # 442,000 or so to #153! Clearly there's some mileage in marketing Python, and I'd like to keep the buzz going if it means more people will adopt the language.
56
4236
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. Unfortunately, it's also quite a mouthful. A friend suggested "PyPI" as a good shorter name. He also indicated that it should be pronounced "Pippy" but that never really caught on (just a little too cutesy for most people, I suppose). ...
0
1094
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 went like this: The new text made a new page, but the new file went to the old page. The old page then had both files and all attempts at uploading the new file to the new page failed with the error message that a file could not be uploaded if it...
2
1470
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 that tagging is more popular than the hierarchical browsing method currently offered by Cheese Shop. Are there efforts underway to support a tagging interface for the cheeseshop?
3
1432
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 (http://pycheesecake.org/) for rating a package's kwalitee (like Perl's CPANTS). But browsing the Cheese Shop, I don't see a way to view or sort by Cheesecake rating... How can I see the kwalitee ratings of the packages at the Cheese Shop?
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.