Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of the extension impossible when using accented characters in user name #62

Open
jdemiaux opened this issue Oct 20, 2022 · 8 comments

Comments

@jdemiaux
Copy link

Hi,
The installation of the connector is not possible if the name of the user, I used Jérôme, contains some characters (à, é, è, ç ...).
Here are the error messages.

Erreur de chargement du fichier C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/main.rb
Error: #<LoadError: cannot load such file -- sqlite3>
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/accounts.rb:8:in rescue in <top (required)>' C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/accounts.rb:3:in <top (required)>'
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/dialog.rb:5:in <top (required)>' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/main.rb:4:in <top (required)>'
C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in load'
C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:39:in register_extension' C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:39:in module:SpeckleConnector'
C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:6:in <module:SpeckleSystems>' C:/Users/Jérôme/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:5:in <top (required)>'

Regards.

@oguzhankoral
Copy link
Member

@jdemiaux Thanks for reporting,

This is happening most probably load paths forced to encode "UTF-8". I will check this one out and fix.

Best,

@oguzhankoral
Copy link
Member

@jdemiaux Can you please test your case with new release 2.10.0-rc4? Let me know please if issue is still persist! Hope will work.
2 10 0-rc4_installer

@jdemiaux
Copy link
Author

jdemiaux commented Dec 2, 2022

Hi,
Not better.
The installation works well but as soon as I use it, sketchup crashes.
At launch the following messages appear

Erreur de chargement du fichier C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/main.rb
Error: #<LoadError: cannot load such file -- sqlite3>
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/accounts.rb:8:in rescue in <top (required)>' C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/accounts.rb:3:in <top (required)>'
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/dialog.rb:5:in <top (required)>' C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
C:/Program Files/SketchUp/SketchUp 2022/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/main.rb:4:in <top (required)>'
C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in require' C:/Program Files/SketchUp/SketchUp 2022/Tools/extensions.rb:197:in load'
C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:39:in register_extension' C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:39:in module:SpeckleConnector'
C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:6:in <module:SpeckleSystems>' C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector.rb:5:in <top (required)>'

Hope this helps

@oguzhankoral
Copy link
Member

@jdemiaux It seems to me somehow you could not install latest version appropriately. Because error causes from file main.rb in C:/Users/Hélène/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/speckle_connector/main.rb which we do not have this file anymore with new releases. So your SketchUp tries to run old version.

Can you please uninstall SketchUp connector by Manager for Speckle and reinstall 2.10.0?

@jdemiaux
Copy link
Author

jdemiaux commented Dec 2, 2022

apologies.
Indeed the update was not done correctly.
So I redid a clean installation of the connector 2.10.0.
No more error messages at launch but a bugsplat as soon as I click on the launch connector button.
Works on the same computer with a path without accent.
no pressure, no emergency, I changed the name of the user directory.
Thanks for your work
Temp.zip

@oguzhankoral
Copy link
Member

@jdemiaux Thanks for reporting this issue anyway. This might happen to someone else, I will investigate to fix this one.

@oguzhankoral
Copy link
Member

oguzhankoral commented Dec 2, 2022

@jdemiaux Let me ask you something please to understand encoding problem with more detail. I guess this happens when users not using English version of Windows + when we use encoding as UTF-8 on our Connector paths. Can you confirm me please if your current Windows is not an English version? If not can you provide me with which language you run your Windows?

@jdemiaux
Copy link
Author

jdemiaux commented Dec 3, 2022

@oguzhankoral French version of windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants