JMG1 / ExplodedAssembly

FreeCAD workbench to create exploded views and animations of assemblies
GNU Lesser General Public License v2.1
115 stars 27 forks source link

Initialization fails on FreeCAD 0.18.3 #15

Open dxp21 opened 5 years ago

dxp21 commented 5 years ago

With that error (seems different from #12 ) :

During initialization the error 'ascii' codec can't decode byte 0xc3 in position 98: ordinal not in range(128) occurred in /Users/dxp/Library/Preferences/FreeCAD/Mod/ExplodedAssembly/InitGui.py
Please look into the log file for further information

FC infos :

OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: (HEAD detached at 0.18.3)
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.7
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/Switzerland (fr_CH)
JMG1 commented 5 years ago

I can't reproduce it. Does this persist if you update freecad? (daily)

dxp21 commented 5 years ago

Can't reproduce with 0.19_pre either

OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17445 (Git)
Build type: Release
Branch: master
Hash: 741dddf25485f692596faa9b7911e2e0f5d362a3
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/Switzerland (fr_CH)

Guess that it will resolve itself with the next stable release.

giacomomarchioro commented 5 years ago

OS: OS X El Capitan (10.11) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18.16131 (Git) Build type: Release Branch: (HEAD detached at 0.18.3) Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3 Python version: 3.6.7 Qt version: 5.6.2 Coin version: 4.0.0a OCC version: 7.3.0 Locale: Italian/Italy (it_IT)

I can't see any workbench in the list I see only \<none>. No error is showing.

luzpaz commented 4 years ago

@giacomomarchioro is this still an issue for you?

giacomomarchioro commented 4 years ago

@giacomomarchioro is this still an issue for you?

For me it still doesn't work I don't know if it's due to the old operating system El Capitan. I'll try tomorrow again.

luzpaz commented 4 years ago

I found https://github.com/certbot/certbot/issues/5509#issuecomment-416037701 and ran: grep -r -P '[^\x00-\x7f]' inside ./Mod/ExplodedAssembly
Resulting in:

$ grep -r -P '[^\x00-\x7f]'
EAInit.py:# (c) 2016 Javier Mart��nez Garc��a
EAInit.py:#*   (c) Javier Mart��nez Garc��a 2016                                       *
README.md:Javier Mart��nez @JMG1
CameraAnimation.py:# (c) 2016 Javier Mart��nez Garc��a
CameraAnimation.py:#*   (c) Javier Mart��nez Garc��a 2016                                       *
ExplodedAssembly.py:# (c) 2016 Javier Mart��nez Garc��a
ExplodedAssembly.py:#*   (c) Javier Mart��nez Garc��a 2016                                       *
InitGui.py:# (c) 2016 Javier Mart��nez Garc��a
InitGui.py:#*   (c) Javier Mart��nez Garc��a 2016                                       *
InitGui.py:__author__ = "Javier Mart��nez Garc��a"

@JMG1 perhaps the unicode in your name is b0rking some users systems?

Edit: @giacomomarchioro perhaps you can:

  1. Go in to your ~/.FreeCAD/Mod/ExplodedAssembly/ directory
  2. ~fire up an editor and erase the lines with unicode (i wish i could hack a 1 liner for you to run that would do this, but I don't know how)~
    Run from terminal: for f in *.{py,md}; do sed -i '' '/Javier/d' $f; done
  3. Restart FreeCAD

PS unless there is a way we can get @giacomomarchioro's system to recognize the unicode instead?

loboestepariozgz commented 4 years ago

Thank you!! Worked perfectly for me