Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26252] Py error when installing addon through UI

Date:
2011-02-28 16:43
Priority:
3
State:
Closed
Submitted by:
Tom Edwards (artfunkel)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Py error when installing addon through UI
Detailed description
Same with any script at all:

Traceback (most recent call last):
File "c:\BLENDE~1\blender\vc9\bin\Debug\2.56\scripts\ui\space_userpref.py", line 1092, in execute
if os.path.samefile(pyfile_dir, addon_path):
AttributeError: 'module' object has no attribute 'samefile'

Followup

Message
  • Date: 2011-02-28 19:25
  • Sender: Ton Roosendaal
  • To me it seems there's a conflict in py scripts in your install/compile... but campbell will know better.
  • Date: 2011-02-28 20:46
  • Sender: Campbell Barton
  • Tested python
    - 2.7.1
    - 3.1.3
    - 3.2.0

    all have os.path.samefile()

    There must be some trouble with your python installation.
    can you do this in the python console?
    import os; dir(os.path)

    and paste the output.
  • Date: 2011-02-28 22:13
  • Sender: Tom Edwards
  • ['__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_get_altsep', '_get_bothseps', '_get_colon', '_get_dot', '_get_empty', '_get_sep', '_getfullpathname', 'abspath', 'altsep', 'basename', 'commonprefix', 'curdir', 'defpath', 'devnull', 'dirname', 'exists', 'expanduser', 'expandvars', 'extsep', 'genericpath', 'getatime', 'getctime', 'getmtime', 'getsize', 'isabs', 'isdir', 'isfile', 'islink', 'ismount', 'join', 'lexists', 'normcase', 'normpath', 'os', 'pardir', 'pathsep', 'realpath', 'relpath', 'sep', 'split', 'splitdrive', 'splitext', 'splitunc', 'stat', 'supports_unicode_filenames', 'sys']

    Same with MinGW and VC builds.

    I did notice an update to the Py libs when I checked SVN earlier today...
  • Date: 2011-02-28 22:13
  • Sender: Tom Edwards
  • PYTHON INTERACTIVE CONSOLE 3.1.2 (r312:79147, Aug 27 2010, 16:34:49) [MSC v.1500 32 bit (Intel)]
  • Date: 2011-03-01 09:29
  • Sender: Campbell Barton
  • Turns out this was only added for windows in py3.2, we should upgrade soon, fixed r35275.
  • Date: 2011-03-01 10:38
  • Sender: Tom Edwards
  • Scons+MinGW builds now fail:

    C:\blender-svn\build\lib\libbf_python.a(bpy_rna.o):bpy_rna.c:(.text+0xf6): undefined reference to `_imp__PyExc_ReferenceError'
    C:\blender-svn\build\lib\libbf_python.a(bpy_rna.o):bpy_rna.c:(.text+0x160): undefined reference to `_imp__PyExc_ReferenceError'

    Related?
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
close_dateNone2011-03-01 09:29campbellbarton
detailsSame with any script at all: Traceback (most recent call last): File "c:\\BLENDE~1\\blender\\vc9\\bin\\Debug\\2.56\\scripts\\ui\\space_userpref.py", line 1092, in execute if os.path.samefile(pyfile_dir, addon_path): AttributeError: \'module\' object has no attribute \'samefile\'2011-03-01 09:29campbellbarton
StatusInvestigate2011-03-01 09:29campbellbarton
status_idOpen2011-03-01 09:29campbellbarton
detailsSame with any script at all: Traceback (most recent call last): File "c:\\BLENDE~1\\blender\\vc9\\bin\\Debug\\2.56\\scripts\\ui\\space_userpref.py", line 1092, in execute if os.path.samefile(pyfile_dir, addon_path): AttributeError: \'module\' object has no attribute \'samefile\'2011-02-28 20:46campbellbarton
assigned_tonone2011-02-28 19:25ton
detailsSame with any script at all: Traceback (most recent call last): File "c:\\BLENDE~1\\blender\\vc9\\bin\\Debug\\2.56\\scripts\\ui\\space_userpref.py", line 1092, in execute if os.path.samefile(pyfile_dir, addon_path): AttributeError: \'module\' object has no attribute \'samefile\'2011-02-28 19:25ton
StatusNew2011-02-28 19:25ton