victorgabr / pps

PyPlanScoring codebase that was used on 2017 and 2018 - RT Plan Competition
https://radiationknowledge.org/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

No module named gui.api.backend #2

Closed rameez707 closed 5 years ago

victorgabr commented 5 years ago

Could you add provide more details?

Could you provide you full terminal output?

It seems to a relative import problem.

You may change this line for: pyplanscoring.gui.api.backend

rameez707 commented 5 years ago

Untitled

rameez707 commented 5 years ago

This issue comes when i was using Anaconda 2 and python 2.7 but if i use python 3.6 it return error No module named 'PySide' and i am unable to install pyside because its supported till python version 3.4

victorgabr commented 5 years ago

Python 2 will be deprecated soon, I do not recommend using it.

PPS GUI relies on PySide, but the package "pyplanscoring" no.

A workaround for it is create a anaconda environment with python 3.6 or greater.

and install pyside from conda-forge channel by:

conda install -c conda-forge numpy numba pandas xlsxwriter scipy matplotlib joblib pyside pillow quantities xlrd pyinstaller

Thanks, Victor

rameez707 commented 5 years ago

Untitled2

rameez707 commented 5 years ago

Using Anaconda3-4.3.1 and python 3.6.0

rameez707 commented 5 years ago

Still having issue on install pyside

victorgabr commented 5 years ago

Uninstall your current anaconda.

install: Miniconda

It is a minimal python installation without scientific packages.

create a new environment:

conda create -n py36 python=3.6

Activate the environment:

conda activate py36

Then run the command:

conda install -c conda-forge numpy numba pandas xlsxwriter scipy matplotlib joblib pyside pillow quantities xlrd pyinstaller

rameez707 commented 5 years ago

Untitled3

rameez707 commented 5 years ago

Untitled4

rameez707 commented 5 years ago

Still got same PySide Error

victorgabr commented 5 years ago

It is an anaconda/miniconda issue, It used to work before. As I said, PySide is only a hard dependency if you need to use the GUI.

pyplanscoring package does not need, it could be used as command-line/script usage as explained on the docs.

But you could install the dependencies manually from here (PySide and others from here):

Win64 Dependencies

rameez707 commented 5 years ago

Thanks a lot. I accomplished it by installing Miniconda3-4.3.31-Windows-x86_64

conda create -n py36 python=3.6.0

activate py36

conda install -c conda-forge pyside

conda install -c conda-forge numpy numba pandas xlsxwriter scipy joblib pyside quantities xlrd pyinstaller

conda install -c conda-forge pillow=3.4.2

conda install cudatoolkit

unable to install matplotlib=>2.0.0 from command line due to conflict so install it from pycharm project interpreter