5

I want a simple pyqt6 program to create a folder in Google drive using API

 2 years ago
source link: https://www.codeproject.com/Questions/5315168/I-want-a-simple-pyqt6-program-to-create-a-folder-i
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
[Solved] I want a simple pyqt6 program to create a folder in Google drive using API

See more:

Copy Code
Language - Python You Can Use Google API Key or use client_secret.json file

What I have tried:

<pre>When i use client_secrets.json it is showing error. No such file or directory
Comments
"I want" is not a question. Nobody here is going to do your work for you.
I have created a program but it is not working

We can't see your program, and we have no idea what "not working" means.

If you want someone to help you fix your code, you need to edit your question to show the relevant parts of your code, and provide a clear and complete description of the problem you cannot fix.

As it stands, this is just a demand for someone to do your homework assignment for you.

"No such file or directory" Look at the line of code that causes the error and you will find the offending file/directory name.

Two things to start with:
1) While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]

2) "It doesn't work" is probably the most useless problem report we get - and we get it a lot. It tells us nothing about what is happening, or when it happens.
So tell us what it is doing that you didn't expect, or not doing that you did.
Tell us what you did to get it to happen.
Tell us any error messages.
Use the "Improve question" widget to edit your question and provide better information.

Put the two of these together, and we can't help you with anything specific - we certainly can't say "change this to that" and it'll fix it without actually seeing the code.

So, it's going to be up to you.
Fortunately, you have a tool available to you which will help you find out what is going on: the debugger. How you use it depends on your compiler system, but a quick Google for "python debugger" should give you the information you need.

Put a breakpoint on the first line in the function, and run your code through the debugger. Then look at your code, and at your data and work out what should happen manually. Then single step each line checking that what you expected to happen is exactly what did. When it isn't, that's when you have a problem, and you can back-track (or run it again and look more closely) to find out why.

At a guess - and that's all it could be - the path is not what you think it is. So use the debugger to find out exactly what is going on, and what the code is tryign to do with what data and work back from there.

Sorry, but we can't do that for you - time for you to learn a new (and very, very useful) skill: debugging!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK