DCC-Lab / PyTissueOptics

A very simple, fairly slow but very easy to understand and very easy to use Monte Carlo code for Tissue optics simulations.
MIT License
27 stars 5 forks source link

requirements.txt / setup.py #123

Open Mateuszq28 opened 2 months ago

Mateuszq28 commented 2 months ago

Can somebody provide the exact requirements.txt package list for conda/pip that will work?

I merged those two pull requests:

And I still get an error when after typing:

python setup.py build
python setup.py install
python -m pytissueoptics --help (same for python pytissueoptics)

File "/home/miki/anaconda3/envs/sim3/lib/python3.8/site-packages/pyface-8.0.0-py3.8.egg/pyface/base_toolkit.py", line 165, in init raise NotImplementedError(msg % (toolkit, package, name)) NotImplementedError: the null tvtk.pyface.ui.null backend doesn't implement scene_editor:SceneEditor

I used Ubuntu 22.04.3 LTS WSL2. On a Windows same error arrises. Python 3.8

Originally posted by @Mateuszq28 in https://github.com/DCC-Lab/PyTissueOptics/issues/116#issuecomment-2326593115

Mateuszq28 commented 2 months ago

Maybe there is a problem with mayavi when it uses deprecated eggs to install. Or these eggs uses links to install dependencies and those dependencies have been updated to version that are not compatibile with mayavi itself. I tried to install mayavi directly from github site and still an error arrises. No matter which version of mayavi I use, it still crash in that point. I tried 4.8.1, 4.8.2, 4.8.3.dev.

Originally posted by @Mateuszq28 in https://github.com/DCC-Lab/PyTissueOptics/issues/116#issuecomment-2327545385

Mateuszq28 commented 2 months ago

Is there a specific version of these packages, that should I use?

Mateuszq28 commented 2 months ago

If somebody can run this, It would be useful to make pull request with new directory, in which would be anaconda or pip list dumps (requirements.txt). Package version lists, which were tested and works.

Mateuszq28 commented 2 months ago

I would have also use some of these methods or a docker container to help maintain the project:

https://stackoverflow.com/questions/17486578/how-can-you-bundle-all-your-python-code-into-a-single-zip-file

Mateuszq28 commented 1 month ago

124 I made pull request with a folder structure to collect environment dumps.