joinmarket-clientserver icon indicating copy to clipboard operation
joinmarket-clientserver copied to clipboard

macOS PySide2 error for QT installation

Open Fonta1n3 opened this issue 2 years ago • 5 comments

When running ./install.sh and selecting y for installing the GUI I always get:

ERROR: Could not find a version that satisfies the requirement PySide2!=5.15.0,!=5.15.1,!=5.15.2,!=6.0 (from versions: none)
ERROR: No matching distribution found for PySide2!=5.15.0,!=5.15.1,!=5.15.2,!=6.0

Even if I run brew install pyside@2.

I am on Big Sur m1 macOS.

Fonta1n3 avatar Nov 17 '21 10:11 Fonta1n3

M1 support for PySide is on the way https://wiki.qt.io/Qt_for_Python_Development_Notes. However this will be for PySide6 not PySide2. A temporary fix would be to the open the terminal in Rosetta mode. You can do this from Application directory, going to info for terminal app and choosing the option "Open in Rosetta". This will force pip to download the general wheel file for PySide2.

Now you can proceed with installing PySide2 via pip using:

pip install PySide2

TomAmpiath avatar Nov 20 '21 12:11 TomAmpiath

Thanks very much, will try this.

Fonta1n3 avatar Nov 21 '21 05:11 Fonta1n3

@TomAmpiath my intel machine died so I am trying to get jm running on my m1 again. I did what you suggested but am now getting:

ImportError: Cannot load secp256k1 library: dlopen(/Users/fontaine/joinmarket-clientserver/jmvenv/lib/libsecp256k1.dylib, 6): no suitable image found.  Did find:
	/Users/fontaine/joinmarket-clientserver/jmvenv/lib/libsecp256k1.dylib: mach-o, but wrong architecture

Fonta1n3 avatar Feb 23 '22 23:02 Fonta1n3

@TomAmpiath @Fonta1n3 did you guys solve this? I currently don't know if Qt is installable on Mac on latest version (0.9.7).

AdamISZ avatar Sep 11 '22 11:09 AdamISZ

Tried running tests with the GitHub Actions new M1 macOS runner and have the same error:

Collecting PyQt5!=5.15.0,!=5.15.1,!=5.15.2,!=6.0 (from joinmarket==0.9.11.dev0)
  Downloading PyQt5-5.15.10-cp37-abi3-macosx_11_0_arm64.whl.metadata (2.1 kB)
INFO: pip is looking at multiple versions of joinmarket[jmqtui] to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement PySide2!=5.15.0,!=5.15.1,!=5.15.2,!=6.0; extra == "jmqtui" (from joinmarket[jmqtui]) (from versions: none)
ERROR: No matching distribution found for PySide2!=5.15.0,!=5.15.1,!=5.15.2,!=6.0; extra == "jmqtui"
Joinmarket was not installed. Exiting.
Error: Process completed with exit code 1.

kristapsk avatar Jan 31 '24 23:01 kristapsk