Install FreeCAD-addons-master

Having trouble installing or compiling FreeCAD? Get help here.
MMSN
Posts: 37
Joined: Wed May 28, 2014 7:36 pm

Re: Install FreeCAD-addons-master

Postby MMSN » Fri Jul 08, 2016 4:28 pm

sgrogan wrote:It's probably easier to just install the add-on manually. Which add-on in particular are you interested in.
Thanks very much sgrogan , as you have noted on the previous post, I have tried several times run the add-on without success. Some specific issue happens on Window Vista that isn't agible to load any add-on. For my case I need specifically the Assemble2.
User avatar
sgrogan
Posts: 6213
Joined: Wed Oct 22, 2014 5:02 pm

Re: Install FreeCAD-addons-master

Postby sgrogan » Fri Jul 08, 2016 4:47 pm

MMSN wrote: Thanks very much
Go here https://github.com/hamish2014/FreeCAD_assembly2 click on the green "Clone or download" and download the .zip. Extract this in your downloads folder. Open the extracted folder. You should have a sub-folder called "FreeCAD_assembly2-master"
Next start FreeCAD and from the menu Macro > Macros.. copy the User macros location. Close the macro editor and close FreeCAD.
Open MyComputer and paste the copied file path into the address bar and hit enter.
Copy the "FreeCAD_assembly2-master" sub-folder to this directory.
Start FreeCAD you should have assembly2 available in the workbench selector.
"fight the good fight"
monsontt
Posts: 2
Joined: Sat Jul 23, 2016 10:40 pm

Re: Install FreeCAD-addons-master

Postby monsontt » Sat Jul 23, 2016 10:50 pm

I just recently installed FreeCAD on a Window 7 64bit machine and am getting the same error described in this post. When I run the suggested commands in the Python console window, the import ssl command generates the following error:

Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files\FreeCAD 0.16\bin\lib\ssl.py", line 60, in <module>
import _ssl # if we can't import it, let the error propagate

It looks like OpenSSL might be missing. Should it have been installed by the FreeCAD .msi file?
jmaustpc
Posts: 10526
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Install FreeCAD-addons-master

Postby jmaustpc » Sun Jul 24, 2016 3:06 am

monsontt wrote:I just recently installed FreeCAD on a Window 7 64bit machine an
Welcome to FreeCAD!

Please tell us the exact version and exactly which file you downloaded and from where.
monsontt
Posts: 2
Joined: Sat Jul 23, 2016 10:40 pm

Re: Install FreeCAD-addons-master

Postby monsontt » Sun Jul 24, 2016 2:38 pm

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6704 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: 0c449d7e8f9b2b1fb93e3f8d1865e2f59d7ed253
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

I downloaded the installer (FreeCAD-0.16.6704.oc449d7-WIN-x64_Installer-1.exe) from http://www.freecadweb.org/wiki/?title=Download

I've already manually installed the specific add-on workbench I was interested in, but I'm still curious why the Add-ons Installer macro is failing.
User avatar
sgrogan
Posts: 6213
Joined: Wed Oct 22, 2014 5:02 pm

Re: Install FreeCAD-addons-master

Postby sgrogan » Sun Jul 24, 2016 10:28 pm

monsontt wrote:I've already manually installed the specific add-on workbench I was interested in, but I'm still curious why the Add-ons Installer macro is failing.
I'm beginning to think it's proxy settings
On my working system from the installer

Code: Select all

Python 2.7.8 (default, Nov 17 2014, 20:37:05) [MSC v.1800 64 bit (AMD64)] on win32
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import httplib
>>> import socket
>>> import ssl
>>> hasattr(httplib, 'HTTPS')
True
>>> hasattr(socket, 'ssl')
True
I have no system installed python. As far as I can see there's nothing in PATH
"fight the good fight"
User avatar
easyw-fc
Posts: 2928
Joined: Thu Jul 09, 2015 9:34 am

Re: Install FreeCAD-addons-master

Postby easyw-fc » Mon Aug 01, 2016 6:37 pm

Hi,
I recently moved from win8 64 to win10 64 and now I cannot run correctly the addons_installer
I checked to download the latest code here
https://github.com/FreeCAD/FreeCAD-addo ... er.FCMacro
but I get these errors

Code: Select all

Traceback (most recent call last):
  File "C:/Cad/Progetti_K/3D-FreeCad-tools/addons_installer.FCMacro", line 197, in run
    u = urllib2.urlopen("https://github.com/FreeCAD/FreeCAD-addons")
  File "C:\FreeCAD\bin\lib\urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\FreeCAD\bin\lib\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "C:\FreeCAD\bin\lib\urllib2.py", line 427, in _open
    'unknown_open', req)
  File "C:\FreeCAD\bin\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\FreeCAD\bin\lib\urllib2.py", line 1247, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>
both on FC 0.17 and FC 0.16
Am I missing something?
Maurice

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8062 (Git)
Build type: Release
Branch: master
Hash: 33bb67edcbd63d17681f7dc89e5a7cdf3f66be14
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6704 (Git)
Build type: Release
Branch: releases/FreeCAD-0-16
Hash: 0c449d7e8f9b2b1fb93e3f8d1865e2f59d7ed253
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
User avatar
yorik
Site Admin
Posts: 12146
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels, Belgium
Contact:

Re: Install FreeCAD-addons-master

Postby yorik » Mon Aug 01, 2016 10:41 pm

Can you guys (who has problems with the addons_installer) try this from the python console?

Code: Select all

import urllib2
print urllib2.__version__
mine here returns 2.7
and

Code: Select all

print urllib2._have_ssl
it should return True
and

Code: Select all

print urllib2.ssl
mine gives <module 'ssl' from '/usr/lib/python2.7/ssl.pyc'>

Unfortunately we can't use http because nowadays github automatically redirects http to https...
User avatar
sgrogan
Posts: 6213
Joined: Wed Oct 22, 2014 5:02 pm

Re: Install FreeCAD-addons-master

Postby sgrogan » Mon Aug 01, 2016 10:52 pm

yorik wrote:Can you guys (who has problems with the addons_installer) try this from the python console?
I will try this tomorrow on my non-working system. The problem is I'm on an almost identical win system where the macro works. I think it has something to do with network proxies but I'm too ignorant to understand. Same FreeCAD, same windows works. For me the only difference is the network. Why upgrading the OS on the same network would matter I don't know.
"fight the good fight"
User avatar
easyw-fc
Posts: 2928
Joined: Thu Jul 09, 2015 9:34 am

Re: Install FreeCAD-addons-master

Postby easyw-fc » Tue Aug 02, 2016 1:23 am

yorik wrote:Can you guys (who has problems with the addons_installer) try this from the python console?

Code: Select all

import urllib2
print urllib2.__version__
mine here returns 2.7
and

Code: Select all

print urllib2._have_ssl
it should return True
and

Code: Select all

print urllib2.ssl
mine gives <module 'ssl' from '/usr/lib/python2.7/ssl.pyc'>

Unfortunately we can't use http because nowadays github automatically redirects http to https...
Hi @yorik, thanks for support...
I tried the commands both on FC 0.17 and FC 0.16 and here the result:
FC0.17

Code: Select all

Python 2.7.8 (default, Nov 17 2014, 20:37:05) [MSC v.1800 64 bit (AMD64)] on win32
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import urllib2
>>> print urllib2.__version__
2.7
>>> print urllib2._have_ssl
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute '_have_ssl'
>>> print urllib2.ssl
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ssl'
>>> 
FC0.16

Code: Select all

Python 2.7.8 (default, Nov 17 2014, 20:37:05) [MSC v.1800 64 bit (AMD64)] on win32
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> import urllib2
>>> print urllib2.__version__
2.7
>>> print urllib2._have_ssl
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute '_have_ssl'
>>> print urllib2.ssl
Traceback (most recent call last):
  File "<input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'ssl'
>>>