Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Update to wxpython 4.1.1 breaks UI client #96

Open
SeaOrb opened this issue May 17, 2021 · 17 comments
Open

Update to wxpython 4.1.1 breaks UI client #96

SeaOrb opened this issue May 17, 2021 · 17 comments

Comments

@SeaOrb
Copy link

SeaOrb commented May 17, 2021

Hi, I'm on Arch and yesterday the python-wxpython package updated from version 4.0.7.2 to 4.1.1 and it breaks the UI client. Downgrading to 4.0.7.2 fixes it.

This is what I could get from the terminal after the update to 4.1.1:

Traceback (most recent call last):
File "/usr/bin/nuxhash-gui", line 33, in <module>
sys.exit(load_entry_point('nuxhash==1.0.0b2', 'console_scripts', 'nuxhash-gui')())
File "/usr/lib/python3.9/site-packages/nuxhash/__init__.py", line 7, in nuxhash_gui
main()
File "/usr/lib/python3.9/site-packages/nuxhash/gui/main.py", line 146, in main
frame = MainWindow(None, title='nuxhash')
File "/usr/lib/python3.9/site-packages/nuxhash/gui/main.py", line 42, in __init__
MiningScreen(notebook, devices=self._Devices),
File "/usr/lib/python3.9/site-packages/nuxhash/gui/mining.py", line 91, in __init__
bottomSizer.Add(self._StartStop, wx.SizerFlags().Expand()
wx._core.wxAssertionError: C++ assertion "!(flags & (wxALIGN_BOTTOM | wxALIGN_CENTRE_VERTICAL))" failed at /build/python-wxpython/src/wxPython-4.1.1/ext/wxWidgets/src/common/sizer.cpp(2181) in DoInsert(): Vertical alignment flags are ignored with wxEXPAND
/usr/lib/python3.9/site-packages/wx/lib/pubsub/__init__.py:23: wxPyDeprecationWarning: wx.lib.pubsub has been deprecated, plese migrate your code to use pypubsub, available on PyPI.
warnings.warn('wx.lib.pubsub has been deprecated, plese migrate your '

Thanks!

@vfbsilva
Copy link

vfbsilva commented Jun 1, 2021

I could not install it in manjaro how did you manage it?

@MatthewRalston
Copy link

I'm having the same issue, also on Arch, installed the source code via nuxhash-git on the AUR.

@vfbsilva
Copy link

vfbsilva commented Jun 5, 2021

I tried to downgrade the package with no luck. We need to discover which version is compatible preferably they could provide us a requirements file so we can create a conda environment to run the app.

@JoshuaJakowlew
Copy link

same problem in Arch. GUI crashes with infinite output to the terminal

@thetuxinator
Copy link

Hmm, looks like this got another dead project.last commit on oct 2019

@idkau
Copy link

idkau commented Jan 6, 2022

Hmm, looks like this got another dead project.last commit on oct 2019

Im tempted to try to fix it.

@thetuxinator
Copy link

Maybe a fork contains a fix already, didn't have time to checkout

@thetuxinator
Copy link

I think he goes to a fixed older wxpython: https://github.com/folkien/nuxhash/commits/master

@idkau
Copy link

idkau commented Jan 6, 2022

I dont see one. I did a test on a VM and updated the code. I was able to load the GUI and no longer see the deprecation error.

jason@kubuntu:~/IdeaProjects/nuxhash$ nuxhash-gui

(nuxhash-gui:12822): Gtk-WARNING **: 00:08:24.531: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)

Running on my other machine without the code update, it does this but still loads the gui.

jason@gucci:~/.config$ nuxhash-gui
/usr/lib/python3/dist-packages/wx/lib/pubsub/init.py:23: wxPyDeprecationWarning: wx.lib.pubsub has been deprecated, plese migrate your code to use pypubsub, available on PyPI.
warnings.warn('wx.lib.pubsub has been deprecated, plese migrate your '

Im gonna test on my main machine and see what happens.

@thetuxinator
Copy link

Forgot to mention, i am on Mageia 8, however exactly the same error, i am now testing aboves version from folkien

@idkau
Copy link

idkau commented Jan 6, 2022

Forgot to mention, i am on Mageia 8, however exactly the same error, i am now testing aboves version from folkien

I opened a pull request and updated the file. I can now load the gui on 4.1.1

@thetuxinator
Copy link

Forgot to mention, i am on Mageia 8, however exactly the same error, i am now testing aboves version from folkien

I opened a pull request and updated the file. I can now load the gui on 4.1.1

Seems not to fix in my case when i install pubsub

@idkau
Copy link

idkau commented Jan 6, 2022

Forgot to mention, i am on Mageia 8, however exactly the same error, i am now testing aboves version from folkien

I opened a pull request and updated the file. I can now load the gui on 4.1.1

Seems not to fix in my case when i install pubsub

Check your mining.py file and make sure you have line 91 that looks like this

bottomSizer.Add(self._StartStop, wx.SizerFlags().Center())

Then you have to uninstall the nuxhash and reinstall.

You can also try my fork as it has all the updates I made.

https://github.com/idkau/nuxhash

@thetuxinator
Copy link

You are my hero! Your fork works!

@idkau
Copy link

idkau commented Jan 7, 2022

You are my hero! Your fork works!

Glad to hear it :)

@cprn
Copy link

cprn commented Jan 11, 2022

@idkau I pinged AUR maintainer to switch to your fork. Hopefully that's okay.

@idkau
Copy link

idkau commented Jan 11, 2022

@idkau I pinged AUR maintainer to switch to your fork. Hopefully that's okay.

Yes, that is fine with me.

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

No branches or pull requests

7 participants