Python module numpy missing on clean PPA install.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Python module numpy missing on clean PPA install.
I installed a pristine Ubuntu vm (16.04.1 LTS) and immediately added freecad-daily PPA to it and installed it.
The moment I try to select the Path workbench I get a popup saying "No module named numpy" (all other WBs seem OK). Is this a known issue?
Other than that it works like a charm! Great work guys
The moment I try to select the Path workbench I get a popup saying "No module named numpy" (all other WBs seem OK). Is this a known issue?
Other than that it works like a charm! Great work guys
Re: Python module numpy missing on clean PPA install.
Thanks mlabert! It seems FreeCAD has a hard runtime dependency, not addressed, to python-numpy now. Can you try the FEM WB in the same experiment? We need a doc update.
should fix it.
EDIT: @chrisb, what's the situation on OSX?
Code: Select all
sudo apt-get install python-numpy
EDIT: @chrisb, what's the situation on OSX?
"fight the good fight"
Re: Python module numpy missing on clean PPA install.
I did start the FEM WB and it was good - is there anything I should run in the WB ?
Re: Python module numpy missing on clean PPA install.
I can select Path WB and FEM WB without problems. Tiny test in PathWB worked, no idea how or what to test in FEM WB.
OS: Mac OS X
Version: 0.17.8443 (Git)
OCC version: 7.0.0
OS: Mac OS X
Version: 0.17.8443 (Git)
OCC version: 7.0.0
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Python module numpy missing on clean PPA install.
mlampert wrote:I did start the FEM WB and it was good - is there anything I should run in the WB ?
I'm not sure how to test I did discern thischrisb wrote:I can select Path WB and FEM WB without problems. Tiny test in PathWB worked, no idea how or what to test in FEM WB.
Code: Select all
C:\Users\Chris\GitHub\FreeCAD\src\Mod\Arch\Dice3DS\dom3ds.py (1 hit)
Line 21: import numpy
C:\Users\Chris\GitHub\FreeCAD\src\Mod\Arch\Dice3DS\util.py (1 hit)
Line 9: import numpy
C:\Users\Chris\GitHub\FreeCAD\src\Mod\Fem\ccxFrdReader.py (1 hit)
Line 29: import numpy as np
C:\Users\Chris\GitHub\FreeCAD\src\Mod\Fem\_TaskPanelShowResult.py (1 hit)
Line 30: import numpy as np
C:\Users\Chris\GitHub\FreeCAD\src\Mod\PartDesign\WizardShaft\SegmentFunction.py (1 hit)
Line 24: import numpy as np
C:\Users\Chris\GitHub\FreeCAD\src\Mod\PartDesign\WizardShaft\Shaft.py (1 hit)
Line 288: import numpy as np
C:\Users\Chris\GitHub\FreeCAD\src\Mod\Path\PathScripts\PathProfile.py (1 hit)
Line 27: import numpy
Slightly off topic. Can someone explain the OSX/Python environment. I don't see this dependency in Travis.
"fight the good fight"
Re: Python module numpy missing on clean PPA install.
I am not familiar with the python situation on OSX but numpy seems to be shipped with FreeCAD.
I can do the following in FreeCAD's python console and the result shows the shipped path:
I can do the following in FreeCAD's python console and the result shows the shipped path:
Code: Select all
import numpy
>>> numpy.__path__
['/Users/cb/freeCAD/FreeCADDaily.app/Contents/lib/python2.7/site-packages/numpy']
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Python module numpy missing on clean PPA install.
Thanks again chrisb! I think we need bblacey to explain, at least to mechrisb wrote:I can do the following in FreeCAD's python console and the result shows the shipped path:
"fight the good fight"
Re: Python module numpy missing on clean PPA install.
Hello sgrogan,
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8775 (Git)
Build type: None
Branch: master
Hash: 761d684c79afe4a5758e782bc4c4fb88864701a5
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
This is probably off-topic, but I just noticed tonight that when doing File --> Open after a fresh launch of the freecad-daily package, it always opens in the /usr/lib/freecad-daily folder. It's pretty damn annoying.sgrogan wrote:I'll add python-numpy as a runtime dependency for the PPA, unless there are objections?
OS: Ubuntu 14.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8775 (Git)
Build type: None
Branch: master
Hash: 761d684c79afe4a5758e782bc4c4fb88864701a5
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
Re: Python module numpy missing on clean PPA install.
FreeCAD on macOS / OS X is installed with the following dependencies, including python-numpy.sgrogan wrote:Thanks again chrisb! I think we need bblacey to explain, at least to mechrisb wrote:I can do the following in FreeCAD's python console and the result shows the shipped path:
Code: Select all
[blacey@mbp ~]$ brew deps --include-build freecad
FreeCAD/freecad/coin
FreeCAD/freecad/med-file
FreeCAD/freecad/nglib
FreeCAD/freecad/pivy
FreeCAD/freecad/pyside
FreeCAD/freecad/pyside-tools
FreeCAD/freecad/shiboken
autoconf
automake
boost
boost-python
ccache
cmake
cppunit
eigen
fontconfig
freeimage
freetype
gcc
gdbm
git
gl2ps
hdf5
homebrew/python/matplotlib
homebrew/python/numpy
homebrew/science/hdf5
homebrew/science/opencascade
homebrew/science/orocos-kdl
homebrew/science/vtk
jpeg
libpng
libtiff
libtool
makedepend
opencascade
openssl
pcre
pkg-config
python
qt
readline
sphinx-doc
sqlite
swig
szip
tbb
xerces-c
Re: Python module numpy missing on clean PPA install.
Thanks, got it now, I had only looked at the travis.yaml. I'll look at the self tests. I thought all workbenches were loaded and this should have produced a failure on linux Travis.blacey wrote:FreeCAD on macOS / OS X is installed with the following dependencies, including python-numpy.
"fight the good fight"