Page MenuHome

TypeError in the python console when executing a command need to reopen
Closed, ArchivedPublic

Description

Relates to: T35796

--- Operating System, Graphics card ---
OSX 10.6.8 intel 64 bit

ATI

--- Blender version with error, and version that worked ---
Builder bot 57540 not working

Last working : Official release 2.67b

--- Short description of error ---

Traceback (most recent call last):
File "/Applications/Blender/blender.app/Contents/MacOS/2.67/scripts/startup/bl_operators/console.py", line 54, in execute
return execute(context, self.interactive)
TypeError: execute() takes 1 positional argument but 2 were given

location: <unknown location>:-1

location: <unknown location>:-1

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
NO steps required. New clean file and type a command in the python console and you get the error above

Included are the console.py files labeled according to their version and fresh out of the zip files as downloaded. There is clearly a difference at line 54 from one to the other. The official release does not have anything on that line but the one from the build does.

Event Timeline

Something is broken in your installation,
line 54 in the file you attached is a blank line,

If this were an error in our build then many more users would have this problem.

The file you have attached doesn't contain the text "self.interactive",

Whats almost certainly happened is you have somehow managed to get 2 blender installations mixed up.

I can only suggest to remove existing Blender installation, search your hard drive for console.py and make sure none exist, then do a clean install.

I'm sorry, but that is simply not the case as it is near impossible to mix up installations on OSX. They are self contained, portable app wrappers with nothing to "install".

I have included 2 files, one which does contain the text "self.interactive" and another which does not and both are straight out of the downloads from blender.org. However, you are saying that my installation is mixed up. Again this is simply not correct as I haven't installed these versions. Maybe someone should download them and take a look. Here is a screenshot out of the downloaded zip file from builder bot and NOT the installation on my HD. Again, I repeat this is not the installation on my HD and it is straight from the zip file downloaded from builder.blender.org.

It is almost impossible to mix up installations as this particular file is contained in the blender.app folder which is the app "icon" you see in the zip file. It is a self-contained wrapper for the application files. Blender doesn't read this particular file from any other place other than the folders that come with the build/self-contained .app. I have tested this by putting the version of the file (working version) that you mention in a folder located at /user/library/applicationsupport/blender/2.67/scripts/startup, which is another place for blender to look for config/addons and it doesn't read it from there, otherwise it would work correctly.

Please download the two versions I have mentioned from the blender.org and verify that these files are in fact different and don't just pass this off as an installation error because it's not.

I am including another screenshot of the folder layout in the blender.app with the file in question and also a an image of the file open in an editor

Can someone on OSX check this?

Can you link to the URL of the Blender version that fails? (while I dont have OSX I could extract and check the scripts directory)

www.builder.blender.org and download the 64 bit build for osx

All OSX builds run fine for me, releases and svn today.

can you run this in a terminal on your system to see if you have conflicting blender installs?

sudo find / -name "console.py"

I realize that you think this isn't a broken install, but everything points to this being the case.

OSX 10.7.5

I can confirm that config.py from 2.67b official is different to buildbot r57540 64 bit in 3 locations, including line 54, which is the third difference. However, I cannot provoke an error in the python console in either version.

After having problems with other programs and my system in general I ran Diskwarrior and the problem is fixed. However, I don't understand why that would fix it. The only thing I can think of is that Qgis.app has a "console.py" file as well that somehow was switched/altered with the blender one????? and that was causing the confusion. I am not sure about this but its the only reasonable explanation I can come up with. Thanks to Campbell for suggesting to use the terminal to de the search for that file. By the way Qgis wasn't working either.

I tried the installs on my wifes laptop and they worked fine but again I have no explanation as to why/how this happened or why/how it got fixed.

Sorry for wasting everyones time.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Jun 20 2013, 7:46 AM