leon-thomm / Ryven

Flow-based visual scripting for Python
https://ryven.org
MIT License
3.76k stars 439 forks source link

How to install and use? #26

Open simkimsia opened 3 years ago

simkimsia commented 3 years ago

I am using macOS cataline 10.15.7

leon-thomm commented 3 years ago

Guys, come on, it's really not difficult. You need what is stated in the requirements, as always on GitHub, and then you literally run the file from the the folder as described on the website. If you have trouble running it on macOS, please open an issue with a precise description of the problem.

simkimsia commented 3 years ago

Sorry it's not that obvious to me. but I eventually got it to run.

AlexRMU commented 3 years ago

Win64 Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23)

C:\Windows\System32>python D:\Desktop\Ryven-2.4.1\Ryven\Ryven.py
Traceback (most recent call last):
  File "D:\Desktop\Ryven-2.4.1\Ryven\Ryven.py", line 4, in <module>
    import custom_src.Console.MainConsole as MainConsole
  File "D:\Desktop\Ryven-2.4.1\Ryven\custom_src\Console\MainConsole.py", line 75
    context = {**old_context, **new_context}  # merge dicts
                ^
SyntaxError: invalid syntax
leon-thomm commented 3 years ago

Please update your Python version :) In this case, the ** syntax was introduced in Python 3.5 I think.

AlexRMU commented 3 years ago
Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
   QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
   QT_SCREEN_SCALE_FACTORS to set per-screen DPI.
   QT_SCALE_FACTOR to set the application global scale factor.
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

https://www.qt.io/pricing $233? idk

leon-thomm commented 3 years ago

Did you install it? Which version do you have?

leon-thomm commented 3 years ago

For installing use pip install pyside2, for upgrading use pip install pyside2 --upgrade In case you still see that error after upgrading: where exactly does it print that? And how did you start the app?

AlexRMU commented 3 years ago

PySide2 is already installed Python\Launcher\py.exe or cmd -> Ryven.py and Ryven NodeManager.py

AlexRMU commented 3 years ago

There may be a problem in Windows?

leon-thomm commented 3 years ago

yes. hm, that doesn't sound like a normal python path, it should be something like programs/Python38/python.exe. (and on your windows, python should be an env variable, so you would just need to call ...\Ryven\Ryven> python Ryven.py from cmd in the inner Ryven folder) Did you try just opening it with python from the file explorer? and please tell me your pyside2 version (pip freeze)

AlexRMU commented 3 years ago

I reduced the path for the sake of brevity. Via explorer = via py.exe

PySide2==5.15.1
shiboken2==5.15.1
leon-thomm commented 3 years ago

yeah, but thing is I don't directly use the macros the warning above shows. So the problem probably isn't inside Ryven.

Did you try just opening it with python from the file explorer?

I'm not sure, there may be different pythons messing up your env variables, or something, that's why I ask. So, right now I cant really tell where the problem is, most likely it has something to do with your python on your OS

AlexRMU commented 3 years ago
  1. pip install pyqt5
  2. copy Python39\Lib\site-packages\PyQt5\Qt\plugins\platforms to Python39\ (i.e. Python39\platforms) (Python39 means python root folder like Python38 or Python 26)
  3. Everything worked but outputs to the console:
    Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
    QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
    QT_SCREEN_SCALE_FACTORS to set per-screen DPI.
    QT_SCALE_FACTOR to set the application global scale factor.
AlexRMU commented 3 years ago

Done

leon-thomm commented 3 years ago

I don't really see why you do that... In any case, I wouldn't recommend running it like that, PySide2 and PyQt5 are not exactly the same and I would speculate, it's not a good idea to mix the configurations. Might work, though, idk

AlexRMU commented 3 years ago

Is this normal? Judging by the pictures and videos, this should be a big list

AlexRMU commented 3 years ago

I don't really see why you do that... In any case, I wouldn't recommend running it like that, PySide2 and PyQt5 are not exactly the same and I would speculate, it's not a good idea to mix the configurations. Might work, though, idk

The program required qt - I installed qt

leon-thomm commented 3 years ago

The program required qt - I installed qt

grafik

Is this normal? Judging by the pictures and videos, this should be a big list

Please read the doc/guides on the website, if the software wouldn't require some instructions, it would be pretty limited :)

ValdemarQ commented 3 years ago

How to run the software?

  1. I open CMD
  2. Cd to Ryven folder
  3. run ryven.py
  4. Visual editor opens the code editor with ryven.py code in it, instead of visual editor.

Can you help?

leon-thomm commented 3 years ago

you need to start it with python, seems like you have set .py file extensions in your OS to open in an editor, instead of with Python. if your python is set up correctly: python Ryven.py

ValdemarQ commented 3 years ago

you need to start it with python, seems like you have set .py file extensions in your OS to open in an editor, instead of with Python. if your python is set up correctly: python Ryven.py

Understood, thank you. Simply running python Ryven.py solved the issue :)

leon-thomm commented 3 years ago

no worries :)

Mecil9 commented 3 years ago

same, in macos run ryven.py,it's notice, how to fix it! You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded. qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa, minimal, offscreen.

ChitaJazz commented 3 years ago

Hi!My system is mac OS Big Sur 11.0.1.It looks so cool,however,I can't make it run properly. Traceback (most recent call last): File "/Users/songpingping/Documents/passwords/python file/Ryven-2.4.2/Ryven/Ryven.py", line 4, in import custom_src.Console.MainConsole as MainConsole File "/Users/songpingping/Documents/passwords/python file/Ryven-2.4.2/Ryven/custom_src/Console/MainConsole.py", line 3, in from PySide2.QtWidgets import QWidget, QLineEdit, QGridLayout, QPlainTextEdit, QLabel, QPushButton ModuleNotFoundError: No module named 'PySide2'

leon-thomm commented 3 years ago

did you install the dependencies as shown in the readme?

temco commented 3 years ago

such a problem was met when I ran python Ryven/Ryven.py in the root folder of this project.

qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
iamjuush commented 3 years ago

such a problem was met when I ran python Ryven/Ryven.py in the root folder of this project.

qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Same problem here for me too. Running on macOS big sur 11.1

davesgonechina commented 3 years ago

Similar problem to above trying to run on Chrombook crostini:

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/davesgonechina/.pyenv/versions/3.7.3/bin/platforms" ...
Cannot load library /home/davesgonechina/.local/share/virtualenvs/Ryven-LMfEpAUt/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/home/davesgonechina/.local/share/virtualenvs/Ryven-LMfEpAUt/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/davesgonechina/.local/share/virtualenvs/Ryven-LMfEpAUt/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Running ldd on libqxcb.so, I see libxcb-util.so.1 => not found

This led me to this known bug for QT on Debian 10 where libxcb-util.so.0 exists but libxcb-util.so.1 does not

I tried symlinking libxcb-util.so.1 to the existing libxcb-util.so.0 but got "Failed to extract plugin meta data from '/usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0'" not a plugin

naim5am commented 2 years ago

Similar problem to above trying to run on Chrombook crostini:

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/davesgonechina/.pyenv/versions/3.7.3/bin/platforms" ...
Cannot load library /home/davesgonechina/.local/share/virtualenvs/Ryven-LMfEpAUt/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)
QLibraryPrivate::loadPlugin failed on "/home/davesgonechina/.local/share/virtualenvs/Ryven-LMfEpAUt/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so" : "Cannot load library /home/davesgonechina/.local/share/virtualenvs/Ryven-LMfEpAUt/lib/python3.7/site-packages/PySide2/Qt/plugins/platforms/libqxcb.so: (libxcb-util.so.1: cannot open shared object file: No such file or directory)"
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Running ldd on libqxcb.so, I see libxcb-util.so.1 => not found

This led me to this known bug for QT on Debian 10 where libxcb-util.so.0 exists but libxcb-util.so.1 does not

I tried symlinking libxcb-util.so.1 to the existing libxcb-util.so.0 but got "Failed to extract plugin meta data from '/usr/lib/x86_64-linux-gnu/libxcb-util.so.0.0.0'" not a plugin

On linux, I usually do this to in a new directory. This tells python to install requirements separately from your user's python environment.

sudo apt install virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt
25shmeckles commented 2 years ago

I can't get it to work. It hangs when loading the very first window element. I am using Python 3.6 on MacOS Big Sur

Screenshot 2021-11-23 at 16 25 14