Home > other >  Not line! For help! PY3.8 wonderful work problems
Not line! For help! PY3.8 wonderful work problems

Time:12-04

I use PYTHON connected mongo database, wrote a PY script, but appears __pycache__ a double-click on the implementation, then the script flash back, also don't perform, finally __pycache__ also does not perform, only in __pycache__ folder, double-click the file in order to be executed inside the

It is equal to the program cannot be executed automatically, ask for help!!!!!!!!!!! I WeChat 47721375

CodePudding user response:

Directly to a command prompt python py files to see what prompted

Or debugging in the IDE,

CodePudding user response:

Just use this way to get a really have the error,
E: \ pywork \ pymongo> Python pymongo. Py
Traceback (the most recent call last) :
The File "pymongo. Py", line 3, the in & lt; module>
The import pymongo
The File "e: \ pywork \ pymongo \ pymongo py", line 6, the in & lt; module>
Myclient=pymongo. MongoClient (" mongo://localhost: 27017/")
AttributeError: partially initialized module 'pymongo' has no attribute 'MongoClient (most likely due to a circular import)
Was later found my file name is wrong, and pymongo fixed file name repetition, thank you, this is really god pit, if not found that want to be stuck

CodePudding user response:

To solve the good,
  • Related