Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

AttributeError: module 'Project1' has no attribute 'py' [closed]

$
0
0

When Running The code

import Project1, Project2, Project3from threading import ThreadThread(target=Project1.py).start()Thread(target=Project2.py).start()Thread(target=Project3.py).start()

to run multiple files at once it always come up with the error "

Traceback (most recent call last):File "c:\Users\aiden\OneDrive\Documents\Code\Test Projects\Code\Python\Run.py", line 4, in Thread(target=Project1.py).start()^^^^^^^^^^^AttributeError: module 'Project1' has no attribute 'py'

"Although the 3 files still all run.

I Tried To Add A return statement although that did not workI Also tried to remove the .py although the just gives more errors


Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>