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 while Executing MakInstall.py -- run module has no attribute Run() #32

Closed
AshishAYadav opened this issue Nov 2, 2019 · 3 comments

Comments

@AshishAYadav
Copy link

#######################################################

Verifying OS

#######################################################

Verifying OS name...

  • Name = NT
    Verifying OS version...
  • Version = 18362

18362 >= 9600, continuing...
Traceback (most recent call last):
File "MakeInstall.py", line 705, in
w = WinUSB()
File "MakeInstall.py", line 12, in init
self.d = diskwin.Disk()
File "C:\Users***\Desktop\gibMacOS\Scripts\diskwin.py", line 8, in init
self.r = run.Run()
AttributeError: module 'run' has no attribute 'Run'

@corpnewt
Copy link
Owner

corpnewt commented Nov 2, 2019

Discussed in this issue already:

Ok, I found the issue, it was package name issue. Anaconda3's interpreter (which I don't use often) also has a package named run.py.

You likely have a python distribution/interpreter with a built-in "run.py" module. If you're not using that specifically, you can uninstall python and have the script install it for you (which will just be the standard library). Alternatively - you can install another version of python, and use that explicitly to run the script to avoid class collisions.

-CorpNewt

@corpnewt corpnewt closed this as completed Nov 2, 2019
@AshishAYadav
Copy link
Author

Renamed run file to Run and replaced in MakeInstall.py and worked

@corpnewt
Copy link
Owner

corpnewt commented Nov 2, 2019

Glad to hear that fixed it 👍

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

2 participants