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

MakeInstall.py AttributeError #21

Closed
yourlastnamesoundslikeatypeofpasta opened this issue Sep 22, 2019 · 4 comments
Closed

MakeInstall.py AttributeError #21

yourlastnamesoundslikeatypeofpasta opened this issue Sep 22, 2019 · 4 comments

Comments

@yourlastnamesoundslikeatypeofpasta

I'm getting an AttributeError when running MakeInstall.py. I'm on the latest version of the master branch.

Python Version: 3.7
Admin Privileges: True
Error:
`
C:\ProgramData\Anaconda3\python.exe`` C:/Users/christian/Desktop/gibMacOS/MakeInstall.py
#######################################################

Verifying OS

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

Verifying OS name...

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

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

@corpnewt
Copy link
Owner

AttributeError: module 'run' has no attribute 'Run'

This makes me think your clone of the repo is incomplete, or you're running it without changing current directory to the script's first - as the run module most certainly has a Run class.

@yourlastnamesoundslikeatypeofpasta
Copy link
Author

yourlastnamesoundslikeatypeofpasta commented Sep 25, 2019

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.
I changed run.py >> mac_run.py, made the necessary import edits in MakeInstall.py and diskwin.py and I'm now sailing smoothly.

@corpnewt
Copy link
Owner

Sounds good - I'll close the issue then.

-CorpNewt

@gijoegotyler
Copy link

gijoegotyler commented Feb 25, 2020

I am having a similar problem with the same error messages but don't have anaconda installed. What did you change to make it work? @corpnewt

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