TorchStudio / torchstudio

IDE for PyTorch and its ecosystem
https://torchstudio.ai
MIT License
383 stars 27 forks source link

Is there any way to install it on Majaro/Arch #38

Closed javadr closed 2 years ago

javadr commented 2 years ago

Dear @divideconcept thanks for your great job.

I wanted to install this nice package on Manjaro. First, I tried to convert deb file to zst with debtap. Although it has installed successfully, it doesn't run and throws the following error:

torchstudio: /usr/lib/libQt6Svg.so.6: no version information available (required by torchstudio)
torchstudio: symbol lookup error: torchstudio: undefined symbol: _ZTIN11DivideFrame7QWidgetE, versionQt_6

I've also installed the Qt6.

Secondly, I tried to install it from the source. Unfortunately, it just will be run with conda. I was wondering if is there any way to install it on the top of virtual environment?

divideconcept commented 2 years ago

Hi @javadr you won't find it as a conda package, it's a standalone app. That being said, I think your best shot is your first attemp. After installing the zst, make sure you can see the following files: /usr/local/bin/torchstudio /usr/local/lib/torchstudio/lib/libQt6* (including libQt6Svg.so.6)

What is supposed to happen is: when launching /usr/local/bin/torchstudio, it's supposed to look in /usr/local/lib/torchstudio/lib/ for the required libraries. Are the files (executable and libraries) properly installed in those folders ?

javadr commented 2 years ago

Hi and thanks for your response. Actually, the torchstudio has been installed at the following address in my system:

$whereis torchstudio    
torchstudio: /usr/bin/torchstudio /usr/local/lib/torchstudio

and the /usr/local/lib/torchstudio/lib directory includes the files below:

ls /usr/local/lib/torchstudio/lib/libQt6*   
/usr/local/lib/torchstudio/lib/libQt6Concurrent.so
/usr/local/lib/torchstudio/lib/libQt6Concurrent.so.6
/usr/local/lib/torchstudio/lib/libQt6Concurrent.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Core.so
/usr/local/lib/torchstudio/lib/libQt6Core.so.6
/usr/local/lib/torchstudio/lib/libQt6Core.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6DBus.so
/usr/local/lib/torchstudio/lib/libQt6DBus.so.6
/usr/local/lib/torchstudio/lib/libQt6DBus.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Designer.so
/usr/local/lib/torchstudio/lib/libQt6Designer.so.6
/usr/local/lib/torchstudio/lib/libQt6Designer.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6DesignerComponents.so
/usr/local/lib/torchstudio/lib/libQt6DesignerComponents.so.6
/usr/local/lib/torchstudio/lib/libQt6DesignerComponents.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6DeviceDiscoverySupport.a
/usr/local/lib/torchstudio/lib/libQt6EglFSDeviceIntegration.so
/usr/local/lib/torchstudio/lib/libQt6EglFSDeviceIntegration.so.6
/usr/local/lib/torchstudio/lib/libQt6EglFSDeviceIntegration.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6FbSupport.a
/usr/local/lib/torchstudio/lib/libQt6Gui.so
/usr/local/lib/torchstudio/lib/libQt6Gui.so.6
/usr/local/lib/torchstudio/lib/libQt6Gui.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Help.so
/usr/local/lib/torchstudio/lib/libQt6Help.so.6
/usr/local/lib/torchstudio/lib/libQt6Help.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6InputSupport.a
/usr/local/lib/torchstudio/lib/libQt6Network.so
/usr/local/lib/torchstudio/lib/libQt6Network.so.6
/usr/local/lib/torchstudio/lib/libQt6Network.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6OpenGL.so
/usr/local/lib/torchstudio/lib/libQt6OpenGL.so.6
/usr/local/lib/torchstudio/lib/libQt6OpenGL.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6OpenGLWidgets.so
/usr/local/lib/torchstudio/lib/libQt6OpenGLWidgets.so.6
/usr/local/lib/torchstudio/lib/libQt6OpenGLWidgets.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6PrintSupport.so
/usr/local/lib/torchstudio/lib/libQt6PrintSupport.so.6
/usr/local/lib/torchstudio/lib/libQt6PrintSupport.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Sql.so
/usr/local/lib/torchstudio/lib/libQt6Sql.so.6
/usr/local/lib/torchstudio/lib/libQt6Sql.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Svg.so
/usr/local/lib/torchstudio/lib/libQt6Svg.so.6
/usr/local/lib/torchstudio/lib/libQt6Svg.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6SvgWidgets.so
/usr/local/lib/torchstudio/lib/libQt6SvgWidgets.so.6
/usr/local/lib/torchstudio/lib/libQt6SvgWidgets.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Test.so
/usr/local/lib/torchstudio/lib/libQt6Test.so.6
/usr/local/lib/torchstudio/lib/libQt6Test.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6UiTools.so
/usr/local/lib/torchstudio/lib/libQt6UiTools.so.6
/usr/local/lib/torchstudio/lib/libQt6UiTools.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Widgets.so
/usr/local/lib/torchstudio/lib/libQt6Widgets.so.6
/usr/local/lib/torchstudio/lib/libQt6Widgets.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6XcbQpa.so
/usr/local/lib/torchstudio/lib/libQt6XcbQpa.so.6
/usr/local/lib/torchstudio/lib/libQt6XcbQpa.so.6.2.2
/usr/local/lib/torchstudio/lib/libQt6Xml.so
/usr/local/lib/torchstudio/lib/libQt6Xml.so.6
/usr/local/lib/torchstudio/lib/libQt6Xml.so.6.2.2
javadr commented 2 years ago

I moved the torchstudio file into the /usr/local/bin/ and now everything works like a charm.