Oct-24-2019, 11:31 AM
well, than is a mystery why it still doesn't work, lol !
file doesn't exist
|
Oct-24-2019, 11:31 AM
well, than is a mystery why it still doesn't work, lol !
Oct-24-2019, 11:33 AM
how do you run them? show the full output from both server and client terminal. Maybe even a screenshot of both
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
I am running them on pycharm, I just click on 'run'
I start with the server first
Oct-24-2019, 11:52 AM
well, look at this line
this file exists 18bytes, download(Y/N)?y here you enter small y while the code expects capital Y you can change if message == 'Y':to if message.lower() == 'y':this way it will work for both lower and upper case Y
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Oct-24-2019, 11:53 AM
nevermind, the mistake was very silly.
It is supposed to be Y and not y. Now is downloading it, but in the same folder as the previous one
you can change it to download to whatever folder you want - just fix the path in the client script
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Oct-24-2019, 11:57 AM
I have a question: it downloads it only once.
If I run the client multiple times, it doesn't download anymore duplicates. Is it normal ?
actually it overwrites the previous one with the same name, you can change the file between 2 runs to check for yourself
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Oct-24-2019, 12:39 PM
If one wants to change the client code and eliminate the dialogue box, and write the file directly,
how would you implement it? just by writing filename = open("something.png", wb)instead of the input command, gives you an error. how come ? filename = 'something.png'to replace filename = input("enter file name ->")
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
HTML file uploaded through python screen doesn't look as expected | miker2808 | 6 | 7,532 |
Aug-04-2018, 02:05 AM Last Post: Larz60+ |