From: sgn <sgn@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [ISSUE] [CLOSED] FreeCAD 0.20.1 Crashes in the AddonManager due to reported minor version being a string
Date: Sun, 04 Sep 2022 18:35:12 +0200 [thread overview]
Message-ID: <20220904163512.x-Bf5zIrVGl5NTwkXZ1GdokQafBMffuXJ9evB82pzCY@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39099@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
Closed issue by mkalte666 on void-packages repository
https://github.com/void-linux/void-packages/issues/39099
Description:
### Is this a new report?
Yes
### System Info
Void 5.18.19_1 x86_64 AuthenticAMD notuptodate rrmFFFFFFF
### Package(s) Affected
freecad-0.20.1_3
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
no.
### Expected behaviour
Open the Addon manager, manage addons
### Actual behaviour
Open the Addon manager, i get
```
Traceback (most recent call last):
File "/usr/lib/freecad/Mod/AddonManager/addonmanager_workers.py", line 175, in run
fc_minor = int(FreeCAD.Version()[1])
ValueError: invalid literal for int() with base 10: '20.1'
```
### Steps to reproduce
As above, open the Addon manager on the most recent version.
This likely happens because in the template, the version within CMakeLists.txt is modifed here
https://github.com/void-linux/void-packages/blob/4c895c78a183b21b91015bcf0c1d6df5de5d74b2/srcpkgs/freecad/template#L47
so that the "minor" version includes the patch. However, this changes stuff down the line in the build. i.E., freecads python console reports
```
>>> FreeCAD.Version()
['0', '20.1', '1', '3_voidlinux', 'VoidLinux package freecad', '(from release)']
```
, the "20.1" causing issues. The CMakeLists.txt of FreeCAD also contains the minor version however, so i wonder if one could just remove that line.
prev parent reply other threads:[~2022-09-04 16:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-04 15:17 [ISSUE] " mkalte666
2022-09-04 16:35 ` sgn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220904163512.x-Bf5zIrVGl5NTwkXZ1GdokQafBMffuXJ9evB82pzCY@z \
--to=sgn@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).