Console Error with latest RPS installer

82 views
Skip to first unread message

Callum

unread,
Jul 10, 2017, 1:00:26 AM7/10/17
to RevitPythonShell
Hi Daren, Im getting this error after installing the latest RPS

IronPython 2.7.7 (2.7.7.0) on .NET 4.0.30319.42000 (64-bit)
 
Type "help", "copyright", "credits" or "license" for more information.
 
>>> Traceback (most recent call last):
 
AttributeError: Method not found: 'Void RevitPythonShell.RpsRuntime.ScriptExecutor.SetupEnvironment(Microsoft.Scripting.Hosting.ScriptEngine, Microsoft.Scripting.Hosting.ScriptScope)'.

Ive tried 
> Reinstalling
> uninstalling IronPython, reinstalling RPS
> Checking path variables to make sure "C:\Program Files (x86)\RevitPythonShell2017" was pathed
> Checking Revit Addin manifest to make sure path to assembly is "C:\Program Files (x86)\RevitPythonShell2017\RevitPythonShell.dll" 

Installer: "2017.04.06_Setup_RevitPythonShell_2017.exe" 

Note also, Im finding RPS isnt deleting all its old folders when uninstalled (Users > Roaming, Addin manifest etc), I keep having to go and clean them out manually.

I uninstalled and reinstalled the R2016 version of RPS and everything works well though for now

Let me know if you have any ideas!

Daren Thomas

unread,
Jul 10, 2017, 5:43:30 AM7/10/17
to revitpyt...@googlegroups.com
Hi Callum,

oh dear... my Revit License seems to have expired. I'll need to figure that out sometime later this week as I'm in deep-debugging mode right now. But here's a small observation: looks like you have a 64-bit version of IronPython there... is that really the correct version?

Best,
Daren

--
You received this message because you are subscribed to the Google Groups "RevitPythonShell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to revitpythonshell+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Callum

unread,
Jul 13, 2017, 11:50:28 PM7/13/17
to RevitPythonShell
No problems Daren

Yep, the system Im on is definitely 64 bit. Ive done some more sniffing around and found that even with the search paths added, I cannot import standard modules like 'os', or any modules Ive made.

I can, however, run these:


import clr

clr
.AddReference('RevitAPI')
clr
.AddReference('RevitAPIUI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.UI import *
 

These are the statements that throw errors:


import os

app
= __revit__.Application
doc
= __revit__.ActiveUIDocument.Document
ui
= __revit__.ActiveUIDocument


("IronPython.Runtime.UnboundNameException: name '__revit__'" is not defined, and "IronPython.Runtime.Exceptions.ImportException: No module named os")

I had thought that the working directory may have been off, hence trying to import the os module to reset it - which Im unable to do. 

Hope this throws some light on the issue!

To unsubscribe from this group and stop receiving emails from it, send an email to revitpythonshe...@googlegroups.com.

Daren Thomas

unread,
Jan 5, 2018, 5:12:03 AM1/5/18
to RevitPythonShell
Hi Callum,

Sorry for the tardy reply... does this work for you now?

Best,
Daren

Callum

unread,
Jan 9, 2018, 4:03:43 PM1/9/18
to RevitPythonShell
Hi Daren, yup all fixed - I think it had to do with my startup script setting the chdir to something irrelevant
Reply all
Reply to author
Forward
0 new messages