Add-ons (such as Archipack and Tissue) won't activate (error "%1 is not a valid Win32 Application") #72796

Closed
opened 2019-12-30 15:13:24 +01:00 by Ilnar · 19 comments

System Information
Operating system: Windows-8.1-6.3.9600 64 Bits
Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.20

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: f1aa4d18d4
Worked: (optional)

Short description of error
Trying to activate Archipack add-on (or Tissue and lots of others) I have this error: error.png The same thing happens when I try to install add-ons from the internet

Exact steps for others to reproduce the error
Open Edit -> Preferences -> Add-ons
Try to activate Archipack for example

**System Information** Operating system: Windows-8.1-6.3.9600 64 Bits Graphics card: GeForce GTX 960/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.20 **Blender Version** Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash: `f1aa4d18d4` Worked: (optional) **Short description of error** Trying to activate Archipack add-on (or Tissue and lots of others) I have this error: ![error.png](https://archive.blender.org/developer/F8251882/error.png) The same thing happens when I try to install add-ons from the internet **Exact steps for others to reproduce the error** Open Edit -> Preferences -> Add-ons Try to activate Archipack for example
Author

Added subscriber: @LOSTSVUND

Added subscriber: @LOSTSVUND

Added subscriber: @StephenSwaney

Added subscriber: @StephenSwaney

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Looks like you are trying to open a 64 dll on a 32bit windows system. This will not work.

Looks like you are trying to open a 64 dll on a 32bit windows system. This will not work.
Author

I have 64bit Windows system. What should I do then?

I have 64bit Windows system. What should I do then?
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

Hi @LOSTSVUND

From Googling, it appears that this is caused by a conflict (difference) between the version of python that Blender and the addons use, and the other version of python that you have on your computer.

From your screenshot, I can see that Blender is loading your version of numpy instead of the one included with Blender.

You could uninstall your version of python and see if that fixes your issue.

Hi @LOSTSVUND From Googling, it appears that this is caused by a conflict (difference) between the version of python that Blender and the addons use, and the other version of python that you have on your computer. From your screenshot, I can see that Blender is loading your version of numpy instead of the one included with Blender. You could uninstall your version of python and see if that fixes your issue.
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

try staring blender with the blender_factory_startup.cmd batch file located in the blender folder, does it load properly using that?

try staring blender with the `blender_factory_startup.cmd` batch file located in the blender folder, does it load properly using that?
Author

In #72796#840289, @EAW wrote:
Hi @LOSTSVUND

From Googling, it appears that this is caused by a conflict (difference) between the version of python that Blender and the addons use, and the other version of python that you have on your computer.

From your screenshot, I can see that Blender is loading your version of numpy instead of the one included with Blender.

You could uninstall your version of python and see if that fixes your issue.

Hi, I've uninstalled Python via Apps & Features from Control Panel. Still doesn't work

> In #72796#840289, @EAW wrote: > Hi @LOSTSVUND > > From Googling, it appears that this is caused by a conflict (difference) between the version of python that Blender and the addons use, and the other version of python that you have on your computer. > > From your screenshot, I can see that Blender is loading your version of numpy instead of the one included with Blender. > > You could uninstall your version of python and see if that fixes your issue. Hi, I've uninstalled Python via Apps & Features from Control Panel. Still doesn't work
Author

In #72796#840292, @LazyDodo wrote:
try staring blender with the blender_factory_startup.cmd batch file located in the blender folder, does it load properly using that?

I looked into Blender folder and found blender_factory_startup.cmd there. And Blender works fine with that. Should I remove it or..? Безымянный.png

> In #72796#840292, @LazyDodo wrote: > try staring blender with the `blender_factory_startup.cmd` batch file located in the blender folder, does it load properly using that? I looked into Blender folder and found blender_factory_startup.cmd there. And Blender works fine with that. Should I remove it or..? ![Безымянный.png](https://archive.blender.org/developer/F8256679/Безымянный.png)
Member

if it work, why would you remove it?!

if it work, why would you remove it?!
Author

In #72796#841272, @LazyDodo wrote:
if it work, why would you remove it?!

you're right
I just dont know what to do

> In #72796#841272, @LazyDodo wrote: > if it work, why would you remove it?! you're right I just dont know what to do
Member

Just to double check, when you start blender with the blender_factory_startup,cmd batch file you can enable the addon you want and everything works?

Just to double check, when you start blender with the `blender_factory_startup,cmd` batch file you can enable the addon you want and everything works?
Author

In #72796#841301, @LazyDodo wrote:
Just to double check, when you start blender with the blender_factory_startup,cmd batch file you can enable the addon you want and everything works?

No, I still cant enable the add-ons, but Blender is working fine.

> In #72796#841301, @LazyDodo wrote: > Just to double check, when you start blender with the `blender_factory_startup,cmd` batch file you can enable the addon you want and everything works? No, I still cant enable the add-ons, but Blender is working fine.
Author

Well, I deleted all Python references that could possibly cause incorrect work of Blender. And also Re-installed Blender. And now the add-ons are activating

Well, I deleted all Python references that could possibly cause incorrect work of Blender. And also Re-installed Blender. And now the add-ons are activating
Author

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Ilnar closed this issue 2020-01-05 06:25:55 +01:00

Added subscriber: @ideasman42

Added subscriber: @ideasman42

@LazyDodo pointed me to this report.
Suspect this is either:

  • An incompatible numpy DLL which is getting found instead of the one Blender provides.
  • An issue in with the encoding of the path name, causing _dlopen to fail (this seems unlikely, mentioning it as a possability).

This needs someone who can redo the error to output the path _dlopen is attempting to load, to see why this keeps happening.


In ctypes/__init__.py make the following edit, adding lines above the _dlopen call:

P1201: Snippet to debug #72796

        # Add these lines.
        if handle is None:
            print("Check for error loading path:", self._name)
            _sys.stdout.flush()
        # End added lines.


        if handle is None:
            self._handle = _dlopen(self._name, mode)
        else:
            self._handle = handle
@LazyDodo pointed me to this report. Suspect this is either: - An incompatible numpy DLL which is getting found instead of the one Blender provides. - An issue in with the encoding of the path name, causing `_dlopen` to fail (this seems unlikely, mentioning it as a possability). This needs someone who can redo the error to output the path `_dlopen` is attempting to load, to see why this keeps happening. ---- In `ctypes/__init__.py` make the following edit, adding lines above the `_dlopen` call: [P1201: Snippet to debug #72796](https://archive.blender.org/developer/P1201.txt) ```python # Add these lines. if handle is None: print("Check for error loading path:", self._name) _sys.stdout.flush() # End added lines. if handle is None: self._handle = _dlopen(self._name, mode) else: self._handle = handle ```
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#72796
No description provided.