numpy does not load

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
ikua
Posts: 159
Joined: Fri Apr 07, 2017 1:32 pm

numpy does not load

Post by ikua »

Hello!

I reinstalled FC 0.18 today and tried to start one of my scripts which needs numpy. Tried to start the script and got this message:

Traceback (most recent call last):
File "C:/Users/dm/AppData/Roaming/FreeCAD/Macro/Rohr_bearbeiten.py", line 13, in <module>
import numpy as np
File "C:\Program Files\FreeCAD 0.18\bin\lib\site-packages\numpy\__init__.py", line 142, in <module>
from . import core
File "C:\Program Files\FreeCAD 0.18\bin\lib\site-packages\numpy\core\__init__.py", line 52, in <module>
raise ImportError(msg.format(path))
<class 'ImportError'>: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['C:\\Program Files\\FreeCAD 0.18\\bin\\lib\\site-packages\\numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.


I only found a way to update it on a linux machine but not for windwos. Anybody a clou?
Also simply import numpy as np gives this error message.

greets ikua

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
Last edited by Kunda1 on Wed Jul 24, 2019 1:51 pm, edited 3 times in total.
Reason: fixed typo in thread title
ikua
Posts: 159
Joined: Fri Apr 07, 2017 1:32 pm

Re: numpy does not laod

Post by ikua »

also tried to reinstall with the following instructions and it did not work

https://forum.freecadweb.org/viewtopic.php?t=20674

Numpy version 1.16.4
ikua
Posts: 159
Joined: Fri Apr 07, 2017 1:32 pm

Re: numpy does not load

Post by ikua »

Reinstalled. Works now. Strange!!
Post Reply