Hey Guys,
i want to install "openpyxl" to work with Excel 2007 files. I tried to install it in the "python 2.6.zip" File in the FreeCAD installation Folder.
Just Copy and Paste the openpyxl folder to "FreeCAD0.13\Mod" didn't work. Now I need Help
The best of all would be, if i could Install the module exactly into the FreeCAD Folder, because i want to work with the FreeCAD Python console and a friend of mine wants to help/and test my modules, so i just want to copy the install folder
greece from germany
Fanta
How to install new Python modules to FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: How to install new Python modules to FreeCAD
In this example don't you just have to install the library on your system and then in FreeCAD Python console type "import library name"?
Re: How to install new Python modules to FreeCAD
Hey,
sure this way should be possible. But what happened, if I didn't install Python as a standalone version, and just use the implemented Python. Sure its not the best way, but it might be possible. Or better...i hope it might be possible. Just for understanding...I didn't have to install Python himself!?
sure this way should be possible. But what happened, if I didn't install Python as a standalone version, and just use the implemented Python. Sure its not the best way, but it might be possible. Or better...i hope it might be possible. Just for understanding...I didn't have to install Python himself!?
Re: How to install new Python modules to FreeCAD
what version of FreeCAD are are you trying to do this with? and what operating system?
Re: How to install new Python modules to FreeCAD
I'm using FreeCAD 0.13 stable... there I got an implemented Python 2.6 Version right? (as a ziped Folder and an Python.exe File). I Hoped i could "manipulate" the zip folder, to get access to the Python Version...but i couldn't unzip it. So its not possible to change/manipulate it.
My OS is Win 7 64-Bit
But the more i think about it, the more i think I should install a standalone Python 2.6 Version and implement every extension module there.
All in all, I would like to know if i could manipulate the FreeCAD Python
My OS is Win 7 64-Bit
But the more i think about it, the more i think I should install a standalone Python 2.6 Version and implement every extension module there.
All in all, I would like to know if i could manipulate the FreeCAD Python
Re: How to install new Python modules to FreeCAD
Actually it should be possible to add the openpyxl sources to the Python26.zip file because it only has .py and no .pyd files. Alternatively you can copy it to the FreeCAD's bin directory.
Re: How to install new Python modules to FreeCAD
Ok I think I'm too stupid for this world.
I did install Python 2.7 and there i placed the openpyxl folder into the Lib folder. At Python2.7 everything is fine.
Placing the Folder in to the FreeCAD0.13\bin folder and try to run the implemented "python2.6.exe" console...he told me, that nothing is good ... ok what i want to know...is it possible to work with the installed python2.7 version? if not, how to install the damn thing...couldn't extract the python26.zip folder -.-' help
i also manipulated the system path...didn't help
I did install Python 2.7 and there i placed the openpyxl folder into the Lib folder. At Python2.7 everything is fine.
Placing the Folder in to the FreeCAD0.13\bin folder and try to run the implemented "python2.6.exe" console...he told me, that nothing is good ... ok what i want to know...is it possible to work with the installed python2.7 version? if not, how to install the damn thing...couldn't extract the python26.zip folder -.-' help
i also manipulated the system path...didn't help
Re: How to install new Python modules to FreeCAD
I opened the Python26.zip with 7-Zip and also the openpyxl archive. Drag and drop only the subdirectory called "openpyxl" not the root directory. Afterwards I was able to import this from the python.exe and inside FreeCAD.
NOTE: It seems that latest version 1.7.0 doesn't work with Python 2.6. When doing so it complains about a missing module "date_time". So, for Python 2.6 I tried version 1.1.0. A newer version might work too but I haven't tested this.
NOTE: It seems that latest version 1.7.0 doesn't work with Python 2.6. When doing so it complains about a missing module "date_time". So, for Python 2.6 I tried version 1.1.0. A newer version might work too but I haven't tested this.
Re: How to install new Python modules to FreeCAD
Oh man You made my day,
thank you very much, the Problem is solved, I gonna to look for the newest working Version. If i found it, i gonna post it for the other Users
1.1.0 works, 1.5.8 brings up the "date_time" error
ok guys... Version 1.6.1 is still running for Python 2.6 ... BUT!!! you have to change a Filename in the Python26.zip File.
Open Python26.zip with 7zip
go to the Directory "xml"
switch to "etree"
and change the Name from "cElementTree.py" to "cElementtree.py"
thats it
thank you very much, the Problem is solved, I gonna to look for the newest working Version. If i found it, i gonna post it for the other Users
1.1.0 works, 1.5.8 brings up the "date_time" error
ok guys... Version 1.6.1 is still running for Python 2.6 ... BUT!!! you have to change a Filename in the Python26.zip File.
Open Python26.zip with 7zip
go to the Directory "xml"
switch to "etree"
and change the Name from "cElementTree.py" to "cElementtree.py"
thats it