Install Assembly Solver SolveSpace -> py-slvs not work

Report observations made with the new Toponaming branch.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Kartoffelpüre
Posts: 161
Joined: Fri Mar 11, 2022 8:33 am

Install Assembly Solver SolveSpace -> py-slvs not work

Post by Kartoffelpüre »

  1. First time using realthunder-Freecad
  2. Open Assembly3
  3. "Install Assembly Solver" appear -> Yes
  4. CMD Window appear -> "Failed install py-slvs" Popup appear

Code: Select all

08:44:42  2.552324 <asm3.main> init_gui.py(14): no solver backend found
09:18:09  <Import> ImportOCAF2.cpp(695): free shape count 1
09:20:18  FreeCAD 0.19, Libs: 2022.709R28846 (Git)
[FreeCAD Console mode <Use Ctrl-Z plus Return to exit.>]
Collecting py-slvs
  Downloading py_slvs-1.0.4-cp38-cp38-win_amd64.whl (264 kB)
Installing collected packages: py-slvs
Successfully installed py-slvs-1.0.4

09:20:18  >>> >>> >>> >>> ... ... ... 
09:20:18  WARNING: You are using pip version 20.3; however, version 22.2.2 is available.
09:20:18  You should consider upgrading via the 'D:\Downloads\FreeCAD-asm3-Stable-Win64-Py3-Qt5-20220709\bin\FreeCADCmd.exe -m pip install --upgrade pip' command.
09:20:18  
09:20:35  Running the Python command 'asm3CmdImportSingle' failed:
Traceback (most recent call last):
  File "D:\Downloads\FreeCAD-asm3-Stable-Win64-Py3-Qt5-20220709\Mod\asm3\freecad\asm3\gui.py", line 387, in Activated
    filenames = QtGui.QFileDialog.getOpenFileNames(

argument 3 must be str, not NoneRunning the Python command 'asm3CmdImportSingle' failed:
Traceback (most recent call last):
  File "D:\Downloads\FreeCAD-asm3-Stable-Win64-Py3-Qt5-20220709\Mod\asm3\freecad\asm3\gui.py", line 387, in Activated
    filenames = QtGui.QFileDialog.getOpenFileNames(

argument 3 must be str, not NoneFreeCAD 0.19, Libs: 2022.709R28846 (Git)
[FreeCAD Console mode <Use Ctrl-Z plus Return to exit.>]
Requirement already satisfied: py-slvs in c:\users\michel.ketterle\appdata\roaming\python\python38\site-packages (1.0.4)

09:20:54  >>> >>> >>> >>> ... ... ... 
09:20:54  WARNING: You are using pip version 20.3; however, version 22.2.2 is available.
09:20:54  You should consider upgrading via the 'D:\Downloads\FreeCAD-asm3-Stable-Win64-Py3-Qt5-20220709\bin\FreeCADCmd.exe -m pip install --upgrade pip' command.
09:20:54  

Code: Select all

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2022.709.28846 (Git)
Build type: Release
Branch: LinkStage3
Hash: c880c050c5f7601e4bae6740de71500edf2be0c7
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Switzerland (de_CH)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Install Assembly Solver SolveSpace -> py-slvs not work

Post by Kunda1 »

Looks like you need to update pip.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kartoffelpüre
Posts: 161
Joined: Fri Mar 11, 2022 8:33 am

Re: Install Assembly Solver SolveSpace -> py-slvs not work

Post by Kartoffelpüre »

what is pip?
I only run the RunFreeCAD.bat from the downloaded directory.

If I run the suggested command I get this error:

Code: Select all

.\bin\FreeCADCmd.exe -m pip install --upgrade pip
unrecognised option '-m'

Allowed options:

Generic options:
  -v [ --version ]          Prints version string
  -h [ --help ]             Prints help message
  -c [ --console ]          Starts in console mode
  --response-file arg       Can be specified with '@name', too
  --dump-config             Dumps configuration
  --get-config arg          Prints the value of the requested configuration key

Configuration:
  -l [ --write-log ]        Writes a log file to:
                            C:\Users\michel.ketterle\AppData\Roaming\FreeCAD\Fr
                            eeCAD.log
  --log-file arg            Unlike --write-log this allows logging to an
                            arbitrary file
  -u [ --user-cfg ] arg     User config file to load/save user settings
  -s [ --system-cfg ] arg   System config file to load/save system settings
  -t [ --run-test ] arg     Test case - or 0 for all
  -M [ --module-path ] arg  Additional module paths
  -P [ --python-path ] arg  Additional python paths
  --single-instance         Allow to run a single instance of the application
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Install Assembly Solver SolveSpace -> py-slvs not work

Post by Kunda1 »

Im not on windows. Maybe someone who is can help here?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Install Assembly Solver SolveSpace -> py-slvs not work

Post by adrianinsaval »

use the included python.exe instead of freecadcmd.exe, although I doubt an outdated pip would be the issue, looks like py-slvs got installed but somewhere else there was an error. @realthunder can you weight in?
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Install Assembly Solver SolveSpace -> py-slvs not work

Post by Syres »

I can confirm the false negative error is not Windows specific, I just downloaded the stable AppImage and installed solvespace with the same 'error' but on restarting Assembly3 loads fine and the output says that it installed OK.

Code: Select all

13:25:46  1.620824 <asm3.main> init_gui.py(14): no solver backend found
13:26:11  FreeCAD 0.19, Libs: 2022.709R28846 (Git)
[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
Collecting py-slvs
  Downloading py_slvs-1.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (294 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.3/294.3 kB 4.2 MB/s eta 0:00:00
Installing collected packages: py-slvs
Successfully installed py-slvs-1.0.3

13:26:11  >>> >>> >>> >>> ... ... ... 

OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2022.709.28846 (Git) AppImage
Build type: Release
Branch: LinkStage3
Hash: c880c050c5f7601e4bae6740de71500edf2be0c7
Python version: 3.9.13
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United Kingdom (en_GB)
Post Reply