abulka / pynsource

Reverse engineer Python source code into UML
http://pynsource.com
283 stars 40 forks source link

Installation issue on Win10 with accented character in user name #72

Open jkbgbr opened 4 years ago

jkbgbr commented 4 years ago

Hi,

I just tried multiple ways to install PyNSources (exe, source...), but no success for a few hours. When installing from source, a setup.py is missing - I generated one and installed the package to a non-virtual environment - still no success with starting the App but at least there was a trackback.

The problem comes from the fact I have a character with an accent in my name: "á" thus around pynsource-gui.py Line 481

config_dir = os.path.join(wx.StandardPaths.Get().GetUserConfigDir(), PYNSOURCE_CONFIG_DIR)

returns a value that configobj.py in line 2117 can't handle, so I hardcoded a new path.

Then, when setting the details for "some sensible defaults" the same problem occurs, but simply commenting out these lines enabled starting the App \o/.

I wonder if the config dir could be user-defined during the install process or fall back to some sane location if the original attempt fails, as simply installing the App will not result in a working install.

abulka commented 4 years ago

Thanks for the info - I will take a look at this sometime and improve the situation with accented characters.

P.S. There is no setup.py because Pynsource is not a package. Simply follow the installation instructions in the Readme which is just to pip3 install -r requirements.txt etc.

jkbgbr commented 4 years ago

Thank you. Currently the app works, I'm happy :-)

canglangshushu commented 3 years ago

AssertionError OnInit returned false, exiting... sys:1: RuntimeWarning: coroutine 'MainApp.check_for_updates' was never awaited when I run .\bin\run-win10.bat