Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: " ModuleNotFoundError: No module named 'user' " #43

Closed
KevinYamazaki opened this issue Apr 19, 2023 · 11 comments
Closed

Error: " ModuleNotFoundError: No module named 'user' " #43

KevinYamazaki opened this issue Apr 19, 2023 · 11 comments

Comments

@KevinYamazaki
Copy link

Sorry to interrupt.. I tried to operate the POE test file, but met error. The steps below are What I did to meet the error.

  1. clone the git
  2. pip install quora
  3. copy poe test code from the "Readme"
  4. python poe_test.py under the correct path
  5. meet the error

here is the picture:
1
2

@zhanghaok
Copy link

the same problem ,have you solved the pro.?

@KevinYamazaki
Copy link
Author

the same problem ,have you solved the pro.?

No bro. I guess "quora" library might have problems,but I don't know how to fix cause I have no idea how to use "quora"

@xtekky
Copy link
Owner

xtekky commented Apr 19, 2023

hey, why don't u guys just paste it in in chatgpt ? 😭

u have another module called quora I presume, "pip uninstall quora" and then try again

@KevinYamazaki
Copy link
Author

a"

Maybe it is not correct to uninstall it directly... After uninstalling quora, I occurred a new error like this:

3

About the original problem, it says likes the library "quora" has no module named "user"

@KevinYamazaki
Copy link
Author

hey, why don't u guys just paste it in in chatgpt ? 😭

u have another module called quora I presume, "pip uninstall quora" and then try again

I tried to find libraries relative to "quora", and the result showed 2 modules named "poe-api" and "pyquora" were most relative, then I installed them both, but still occurred error like this
4

@xtekky
Copy link
Owner

xtekky commented Apr 19, 2023

you can try modify the quora folder name & imports in the folder and use it, make shure u are in the right configured work env with the quora folder in the same working dir, and uninstall all modules. I will be informing myself but this is rather an error occuring because of a bad configured pc rather than my repo itsself

@xtekky
Copy link
Owner

xtekky commented Apr 19, 2023

@KevinYamazaki, its not about installing but uninstalling them, the library causing the issue here is pyquora, if you are not using it, remove it with pip uninstall pyquoraor pip3 uninstall pyquoraor {python prefix, ex: py, python, python3} -m pip uninstall pyquora

@KevinYamazaki
Copy link
Author

KevinYamazaki commented Apr 19, 2023

@KevinYamazaki, its not about installing but uninstalling them, the library causing the issue here is pyquora, if you are not using it, remove it with pip uninstall pyquoraor pip3 uninstall pyquoraor {python prefix, ex: py, python, python3} -m pip uninstall pyquora

Sincerely apologize for my bad configured pc and thank you again for solving my issues, and I have uninstalled all the unnecessary mudles.
I surely found some configuration problems while trying to make the poe_test.py work.
Now poe_test.py seems to run correctly(at least no basic errors), it told me as below:

PS D:\POE_bot_try\gpt4free\testing> python3 poe_test.py
'token'
email False

I'd like to share what I did to make the poe_test.py work, and it might help green hands(like me) to use the repo better.

For POE only
1.clone the git to local directory, or download the zip. (need to fix the folder name as "gpt4free")
2.go into the gpt4free folder, run pip install -r requirement.txt
3.copy folder quora to the folder testing
4.go to the folder quora in step3 and fix the name of folder graphql to poe_graphql
5.make sure you don't have libraries like "poe-api" , "pyquora" , "quora"
6.go to the folder testing, and python3 poe_test.py

@xtekky
Copy link
Owner

xtekky commented Apr 19, 2023

it might only be necessary to uninstall pyquoraor quora, poe-api should work fine and u can even use it with the tokens.

as for you getting an error, its the email client which is quite unstable, i suggest usig a proxy if possible or waiting for an update which will come soon once i find another email client ; )

@KevinYamazaki
Copy link
Author

You are right, it is not stable now. By the way, Where can I add my proxy into the code? mail.py or __init__.py or api.py?

@xtekky
Copy link
Owner

xtekky commented Apr 19, 2023

you can pass it in

quora.Account.create(proxy='user:pass@host.com:port')

@xtekky xtekky closed this as completed Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants