473,325 Members | 2,805 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,325 software developers and data experts.

problem uploading ZIP file tp PyPI


Sorry in advance if this is not the correct forum ...

I'm trying to upload what appears to be a perfectly OK zip file as a
"source" file type to PyPI, and am getting this response:

Error...
There's been a problem with your request
exceptions.ValueError: invalid distribution file

I have managed to upload a Windows installer, and downloaded it again
[but the download count is still stuck on zero].

Any clues?

Jul 19 '05 #1
7 2342
John Machin wrote:
Sorry in advance if this is not the correct forum ...
Quite. The support link for PyPI is in the sidebar of the site.

I'm trying to upload what appears to be a perfectly OK zip file as a
"source" file type to PyPI, and am getting this response:

Error...
There's been a problem with your request
exceptions.ValueError: invalid distribution file
The *only* valid (perfectly OK) source file to upload is a Source
Distribution as generated by the "sdist" setup.py command.

I have managed to upload a Windows installer, and downloaded it again
[but the download count is still stuck on zero].


The download counts are updated daily (IIRC).
Richard

Jul 19 '05 #2
richard wrote:
John Machin wrote:
Sorry in advance if this is not the correct forum ...
Quite. The support link for PyPI is in the sidebar of the site.


Tried that, when I was trying to register and getting strange error
messages about the user name, like "John Machin" and "John_Machin" were
not "ascii" [it finally permitted "sjmachin"]. The response volume
could not be likened to that of a fire-hose.
I'm trying to upload what appears to be a perfectly OK zip file as a "source" file type to PyPI, and am getting this response:

Error...
There's been a problem with your request
exceptions.ValueError: invalid distribution file


The *only* valid (perfectly OK) source file to upload is a Source
Distribution as generated by the "sdist" setup.py command.


Which is precisely how the file in question was generated:

setup.py sdist --format=zip

Jul 19 '05 #3
John Machin wrote:
richard wrote:
John Machin wrote:
> Sorry in advance if this is not the correct forum ...
Quite. The support link for PyPI is in the sidebar of the site.


Tried that, when I was trying to register and getting strange error
messages about the user name, like "John Machin" and "John_Machin" were
not "ascii" [it finally permitted "sjmachin"]. The response volume
could not be likened to that of a fire-hose.


You mean the request you put in two days ago? Sorry I've not got around to
responding yet. It was admittedly low on my priority list because you were
the only person reporting the issue (out of hundreds of successful
registrations). I will now fill in the details you've just provided (ie the
input you used which broke the interface) so that when I get around to
fixing it I'll know what I'm looking for.

Which is precisely how the file in question was generated:

setup.py sdist --format=zip


Try without the --format arg. The code is being too paranoid.
Richard

Jul 19 '05 #4
On Mon, 16 May 2005 22:11:49 +1000, richard
<ri**********@optushome.com.au> wrote:
John Machin wrote:
richard wrote:
John Machin wrote:
> Sorry in advance if this is not the correct forum ...

Quite. The support link for PyPI is in the sidebar of the site.

Tried that, when I was trying to register and getting strange error
messages about the user name, like "John Machin" and "John_Machin" were
not "ascii" [it finally permitted "sjmachin"]. The response volume
could not be likened to that of a fire-hose.


You mean the request you put in two days ago?


Yes, that one.
Sorry I've not got around to
responding yet. It was admittedly low on my priority list because you were
the only person reporting the issue (out of hundreds of successful
registrations). I will now fill in the details you've just provided (ie the
input you used which broke the interface)
Not me, yer 'onour; it wuz broken already.

so that when I get around to
fixing it I'll know what I'm looking for.

Which is precisely how the file in question was generated:

setup.py sdist --format=zip
Try without the --format arg. The code is being too paranoid.


Result: (A) produces a zip file with only minor differences
(presumably a timestamp):
C:\devel\xlrd\build\dist>fc /b xlrd-0.3a1.zip
f:\xlrd_dist\xlrd-0.3a1.zip
Comparing files xlrd-0.3a1.zip and F:\XLRD_DIST\XLRD-0.3A1.ZIP
0000000A: 59 B8
0000000B: B9 9E
0000000C: B0 AF
00009660: 59 B8
00009661: B9 9E
00009662: B0 AF

C:\devel\xlrd\build\dist>dir *3a1*.zip

16/05/2005 11:10p 39,436 xlrd-0.3a1.zip

C:\devel\xlrd\build\dist>dir f:\xlrd_dist\xlrd-0.3a1.zip

15/05/2005 07:53p 39,436 xlrd-0.3a1.zip

(B) Exactly the same result from the PyPI upload attempt.

The code is being too paranoid


Which code (distutils or PyPI server) is being paranoid about what???

Jul 19 '05 #5
John Machin wrote:
On Mon, 16 May 2005 22:11:49 +1000, richard
John Machin wrote:
setup.py sdist --format=zip


Try without the --format arg. The code is being too paranoid.


Result: (A) produces a zip file with only minor differences
(presumably a timestamp):


Oh, so even without --format, a ZIP source dist file is produced anyway? If
this is the case, please file a bug against PyPI.

The code is being too paranoid


Which code (distutils or PyPI server) is being paranoid about what???


The PyPI server code, which attempts to make sure people aren't uploading
pr0n.
Richard

Jul 19 '05 #6
On Fri, 20 May 2005 08:27:28 +1000, richard
<ri**********@optushome.com.au> wrote:
John Machin wrote:
On Mon, 16 May 2005 22:11:49 +1000, richard
John Machin wrote:
setup.py sdist --format=zip

Try without the --format arg. The code is being too paranoid.
Result: (A) produces a zip file with only minor differences
(presumably a timestamp):


Oh, so even without --format, a ZIP source dist file is produced anyway?


On a win32 platform, yes, as documented.
If
this is the case, please file a bug against PyPI.
I presume you mean a bug *report*. Done.

The code is being too paranoid


Which code (distutils or PyPI server) is being paranoid about what???


The PyPI server code, which attempts to make sure people aren't uploading
pr0n.


So zip implies pr0n but exe doesn't ???

Jul 19 '05 #7
John Machin wrote:
I presume you mean a bug report. Done.
Thankyou.

I wrote:
He wrote:
I wrote:
The code is being too paranoid

Which code (distutils or PyPI server) is being paranoid about what???


The PyPI server code, which attempts to make sure people aren't uploading
pr0n.

So zip implies pr0n but exe doesn't ???


Not sure what your point is here. Are you implying that PyPI is doing
something wrong W.R.T. exe files? If you are, what are you basing that
statement on? And what would you do differently?
Richard

Jul 19 '05 #8

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

Similar topics

3
by: Mike | last post by:
Hi i have a problem in asp.ne i am uploading file to the server using htmlinput controls and every thing is o but i try to upload larger file to the server like more than 4 mb and about 10mb i got...
1
by: Jonathan | last post by:
Hi everyone, I have a problem with the file uploading in Asp.Net and I have read a lot on forums on this but never found an answer. Here is the problem: I know Asp.Net maximum Length for...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
7
by: jambroo | last post by:
Hello, We are currently having issues uploading files using PHP. It seems files below 8MB are uploaded fine, however files above 8.2MB cause the page to timeout or show a 'Cannot find server or...
3
ganesanji
by: ganesanji | last post by:
hi all, I have written a php coding for uploading a file to a specific folder or location in server which is a Linux server. I think the coding for file uploaing is correct. But it does not...
2
by: Bremanand | last post by:
Hi folks, i am working in C# , i have problem while uploading the file to FTP which has size around 4MB. The code which comes after the bold area is not executed.. here am...
3
by: Bremanand | last post by:
Hi folks, i am working in C# , i have problem while uploading the file to FTP which has size around 4MB. The code which comes after the bold area is not executed.. here am interacting with DB for...
2
by: Mike Driscoll | last post by:
Hi, I am experimenting on creating a GUI wrapper for easy_install and I would like to be able to allow the user the browse PyPI topically. However, I am having some trouble figuring out how to...
3
by: MM | last post by:
Hi to all, I'm trying to import a tab separated values file onto Excel with the following script: import csv from pyExcelerator import * w = Workbook() worksheet = w.add_sheet('sim1')
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.