realthunder/FreeCAD_assembly3

Assembly3 py_slvs install issues (macOS Ventura, FreeCAD build 31483)

marc-medley opened this issue · 1 comments

I used the system python3 to install py_slvs before installing the Assembly3 workbench.

python3 -m pip install py_slvs
# Downloading py_slvs-1.0.4-cp310-cp310-macosx_11_0_arm64.whl (189 kB)

python3 -m pip show py_slvs
# Name: py-slvs
# Version: 1.0.4
# Home-page: https://github.com/realthunder/slvs_py
# Location: /opt/homebrew/lib/python3.10/site-packages
/usr/bin/python3 -m pip install py_slvs
# Downloading py_slvs-1.0.4-cp310-cp310-macosx_11_0_arm64.whl (189 kB)

/usr/bin/pip3 show py_slvs
# Name: py-slvs
# Version: 1.0.4
# Home-page: https://github.com/realthunder/slvs_py
# Location: /Users/mc/Library/Python/3.9/lib/python/site-packages

However, apparently, an existing py_slvs installation was not detected:

Screenshot 2023-02-03 at 12 08 50 AM

The FreeCAD Assembly3 workbench install of py_slvs also failed:

23:07:38  >>> >>> >>> >>> ... ... ... ... ... ... 
ERROR: Could not find a version that satisfies the requirement py-slvs (from versions: none)
ERROR: No matching distribution found for py-slvs

Screenshot 2023-02-03 at 12 07 59 AM

There is also an issue with the "Don't ask again" checkbox:

23:14:00  Traceback (most recent call last):
23:14:00    File "/Users/username/Library/Application Support/FreeCAD/Mod/Assembly3/./freecad/asm3/install_prompt.py", line 97, in dont_ask
23:14:00      param.SetBool('CheckSLVS', checked)
23:14:00      ^^^^^
23:14:00  NameError: name 'param' is not defined. Did you mean: '_param'?

What the next step(s)? Some path change? Manual install?? or something else?

Configuration

OS: macOS 13.2
Word size of FreeCAD: 64-bit
Version: 0.21.0.31483 (Git)
Build type: Release
Branch: master
Hash: 588620fd9fd138892b1cd2466f5c87d441493174
Python 3.11.0, Qt 5.15.6, Coin 4.0.0, Vtk 9.2.2, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * A2plus 0.4.60i
  * Assembly4 0.12.5
  * Assembly3 0.11.4

Chip: Apple M1 Pro

Apparently, this is a python 3.10 vs 3.11 version issue. See: py_slvs distribution for python 3.11 (including ARM) [Issue #4]