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 [pyrevit.extensions.genericcomps] Folder*: Does not have a script file #1375

Closed
cgofer opened this issue Nov 4, 2021 · 5 comments
Closed

Comments

@cgofer
Copy link

cgofer commented Nov 4, 2021

Describe the bug
I've tried creating my own Revit Extensions after some "Interactive Python Shell" trials.

I did it following de tutorial bellow: https://www.youtube.com/watch?v=zERdPh1vNBQ

For some reason when I try to load the extension from pyRevit > Settings appears de following message:
"ERROR [pyrevit.extensions.genericcomps] Command <type_id '.pushbutton' name 'hello' @ 'C:\Users\cgofer\Desktop\MyExtension\MyCostumeExtension.extension\My tools.tab\Basic Tools.panel\hello.pushbutton'>: Does not have script file."

Screenshots
Loading Error
PyRevitError

Panels and buttons are created
Buttons

Buttons don't work
RevitError

pyRevit Settings
PyRevitSettings

Folder structure
Folder

Example script
Script

Desktop:

  • OS: Microsoft Windows 10 [Version 10.0.19043]
  • pyRevit Version 4.8.8
@cgofer
Copy link
Author

cgofer commented Nov 4, 2021

And here's the solution!! The icon has to be named "icon" and de script has to be named "script".

Thanks anyway.

solution

@jmcouffin
Copy link
Contributor

actually you can name the script:
"whatever you like_script.py"
"or like this.script.py"

@jmcouffin
Copy link
Contributor

@cgofer you should close the issue

@cgofer cgofer closed this as completed Nov 5, 2021
@cgofer
Copy link
Author

cgofer commented Nov 5, 2021

Thanks @jmcouffin , it was my first github issue, in fact I opened this account for it.

@jmcouffin
Copy link
Contributor

jmcouffin commented Nov 5, 2021 via email

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