PyMoDAQ / pymodaq_femto

PyMoDAQ extension for femtosecond laser pulse characterization
MIT License
3 stars 3 forks source link

Cannot find the .pymodaq folder #4

Open HeisenbergK opened 2 months ago

HeisenbergK commented 2 months ago

Hello,

I installed using the recommended procedure in https://pymodaq-femto.readthedocs.io/en/latest/usage/Installation.html using Anaconda. I am trying to run simulator but I get the error: FileNotFoundError: [Errno 2] No such file or directory: 'Library/Application Support/.pymodaq'

Thanks in advance!

rgeneaux commented 2 months ago

Hi, Can you let us know which python version you are using, as well as pymodaq and pymodaq_femto versions? (obtained with 'pip list' in a command line)

Thanks!

Le mar. 9 juil. 2024, 13:25, Ioannis Kypriotakis @.***> a écrit :

Hello,

I installed using the recommended procedure in https://pymodaq-femto.readthedocs.io/en/latest/usage/Installation.html using Anaconda. I am trying to run simulator but I get the error: FileNotFoundError: [Errno 2] No such file or directory: 'Library/Application Support/.pymodaq'

Thanks in advance!

— Reply to this email directly, view it on GitHub https://github.com/PyMoDAQ/pymodaq_femto/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACIEUPJVGN7XHOP2DO2SCDZLPCCFAVCNFSM6AAAAABKSVBZSWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TOOJTGYZDQMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

seb5g commented 2 months ago

It looks like an installation on mac os...

Le mar. 9 juil. 2024, 13:59, rgeneaux @.***> a écrit :

Hi, Can you let us know which python version you are using, as well as pymodaq and pymodaq_femto versions? (obtained with 'pip list' in a command line)

Thanks!

Le mar. 9 juil. 2024, 13:25, Ioannis Kypriotakis @.***> a écrit :

Hello,

I installed using the recommended procedure in https://pymodaq-femto.readthedocs.io/en/latest/usage/Installation.html using Anaconda. I am trying to run simulator but I get the error: FileNotFoundError: [Errno 2] No such file or directory: 'Library/Application Support/.pymodaq'

Thanks in advance!

— Reply to this email directly, view it on GitHub https://github.com/PyMoDAQ/pymodaq_femto/issues/4, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AACIEUPJVGN7XHOP2DO2SCDZLPCCFAVCNFSM6AAAAABKSVBZSWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TOOJTGYZDQMY>

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/PyMoDAQ/pymodaq_femto/issues/4#issuecomment-2217455977, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSNYI5LKMD6YLFVIAI377LZLPGD5AVCNFSM6AAAAABKSVBZSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJXGQ2TKOJXG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

HeisenbergK commented 2 months ago

I am on Python 3.8.19 (I saw you recommending Python 3.8) and the pip list gives me a pymodaq 4.2.3 with a pymodaq_femto at 2.0.0. Full python versioning and pip list below:

     active environment : femto
    active env location : /opt/miniconda3/envs/femto
            shell level : 2
       user config file : /Users/heisenbergk/.condarc
 populated config files :
          conda version : 24.5.0
    conda-build version : not installed
         python version : 3.12.4.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=haswell
                          __conda=24.5.0=0
                          __osx=10.16=0
                          __unix=0=0
       base environment : /opt/miniconda3  (writable)
      conda av data dir : /opt/miniconda3/etc/conda
  conda av metadata url : None
           channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /opt/miniconda3/pkgs
                          /Users/heisenbergk/.conda/pkgs
       envs directories : /opt/miniconda3/envs
                          /Users/heisenbergk/.conda/envs
               platform : osx-64
             user-agent : conda/24.5.0 requests/2.32.2 CPython/3.12.4 Darwin/21.6.0 OSX/10.16 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/.
                UID:GID : 501:20
             netrc file : None
           offline mode : False

This is also answering @seb5g that it is indeed MacOS.

Package                   Version
------------------------- -----------
appnope                   0.1.4
asttokens                 2.4.1
attrs                     23.2.0
backcall                  0.2.0
bayesian-optimization     1.4.3
blosc2                    2.0.0
certifi                   2024.7.4
chardet                   5.2.0
charset-normalizer        3.3.2
cloudpickle               3.0.0
colorama                  0.4.6
comm                      0.2.2
contourpy                 1.1.1
cycler                    0.12.1
Cython                    3.0.10
DataProperty              1.0.1
debugpy                   1.8.2
decorator                 5.1.1
distlib                   0.3.8
docutils                  0.20.1
easydict                  1.13
executing                 2.0.1
fonttools                 4.53.1
h5py                      3.11.0
idna                      3.7
importlib_metadata        8.0.0
importlib_resources       6.4.0
ipykernel                 6.29.5
ipython                   8.12.3
jedi                      0.19.1
joblib                    1.4.2
jsonschema                4.23.0
jsonschema-specifications 2023.12.1
jupyter_client            8.6.2
jupyter_core              5.7.2
kiwisolver                1.4.5
loky                      3.4.1
lxml                      5.2.2
matplotlib                3.7.5
matplotlib-inline         0.1.7
mbstrdecoder              1.1.3
msgpack                   1.0.8
multipledispatch          1.0.0
nest-asyncio              1.6.0
nh3                       0.2.18
numexpr                   2.8.6
numpy                     1.24.4
packaging                 24.1
parso                     0.8.4
pathvalidate              3.2.0
pexpect                   4.9.0
pickleshare               0.7.5
pillow                    10.4.0
Pint                      0.21.1
pip                       24.0
pkgutil_resolve_name      1.3.10
platformdirs              4.2.2
prompt_toolkit            3.0.47
psutil                    6.0.0
ptyprocess                0.7.0
pure-eval                 0.2.2
py-cpuinfo                9.0.0
Pygments                  2.18.0
pyleco                    0.4.0
pymodaq                   4.2.3
pymodaq_femto             2.0.0
pymodaq_plugin_manager    1.2.3
pymodaq_plugins_mock      4.4.0
pyparsing                 3.1.2
pypret-pymodaq            0.0.1
PyQt5                     5.15.10
PyQt5-Qt5                 5.15.14
PyQt5-sip                 12.13.0
pyqtgraph                 0.13.3
pytablewriter             1.2.0
python-dateutil           2.9.0.post0
pytz                      2024.1
pyzmq                     26.0.3
QDarkStyle                3.2.3
qtconsole                 5.5.2
QtPy                      2.4.1
readme_renderer           43.0
referencing               0.35.1
requests                  2.32.3
rpds-py                   0.19.0
scikit-learn              1.3.2
scipy                     1.10.1
setuptools                69.5.1
simple-pid                2.0.0
six                       1.16.0
stack-data                0.6.3
tabledata                 1.3.3
tables                    3.8.0
tcolorpy                  0.1.6
threadpoolctl             3.5.0
toml                      0.10.2
tornado                   6.4.1
traitlets                 5.14.3
typepy                    1.3.2
typing_extensions         4.12.2
urllib3                   2.2.2
uuid6                     2024.1.12
wcwidth                   0.2.13
wheel                     0.43.0
yawrap                    0.4.10
zipp                      3.19.2
seb5g commented 2 months ago

This is an issue of configuration files. Pymodaq creates folder and save config files in a folder that should be accessible to all user. We test this a lot on windows and Linux but not on mac os. This is maybe just an issue of read/write access on these files.

Le mar. 9 juil. 2024, 14:27, Ioannis Kypriotakis @.***> a écrit :

I am on Python 3.8.19 (I saw you recommending Python 3.8) and the pip list gives me a pymodaq 4.2.3 with a pymodaq_femto at 2.0.0. Full python versioning and pip list below:

 active environment : femto
active env location : /opt/miniconda3/envs/femto
        shell level : 2
   user config file : /Users/heisenbergk/.condarc

populated config files : conda version : 24.5.0 conda-build version : not installed python version : 3.12.4.final.0 solver : libmamba (default) virtual packages : archspec=1=haswell conda=24.5.0=0 osx=10.16=0 unix=0=0 base environment : /opt/miniconda3 (writable) conda av data dir : /opt/miniconda3/etc/conda conda av metadata url : None channel URLs : https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /opt/miniconda3/pkgs /Users/heisenbergk/.conda/pkgs envs directories : /opt/miniconda3/envs /Users/heisenbergk/.conda/envs platform : osx-64 user-agent : conda/24.5.0 requests/2.32.2 CPython/3.12.4 Darwin/21.6.0 OSX/10.16 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/. UID:GID : 501:20 netrc file : None offline mode : False

This is also answering @seb5g https://github.com/seb5g that it is indeed MacOS.

Package Version


appnope 0.1.4 asttokens 2.4.1 attrs 23.2.0 backcall 0.2.0 bayesian-optimization 1.4.3 blosc2 2.0.0 certifi 2024.7.4 chardet 5.2.0 charset-normalizer 3.3.2 cloudpickle 3.0.0 colorama 0.4.6 comm 0.2.2 contourpy 1.1.1 cycler 0.12.1 Cython 3.0.10 DataProperty 1.0.1 debugpy 1.8.2 decorator 5.1.1 distlib 0.3.8 docutils 0.20.1 easydict 1.13 executing 2.0.1 fonttools 4.53.1 h5py 3.11.0 idna 3.7 importlib_metadata 8.0.0 importlib_resources 6.4.0 ipykernel 6.29.5 ipython 8.12.3 jedi 0.19.1 joblib 1.4.2 jsonschema 4.23.0 jsonschema-specifications 2023.12.1 jupyter_client 8.6.2 jupyter_core 5.7.2 kiwisolver 1.4.5 loky 3.4.1 lxml 5.2.2 matplotlib 3.7.5 matplotlib-inline 0.1.7 mbstrdecoder 1.1.3 msgpack 1.0.8 multipledispatch 1.0.0 nest-asyncio 1.6.0 nh3 0.2.18 numexpr 2.8.6 numpy 1.24.4 packaging 24.1 parso 0.8.4 pathvalidate 3.2.0 pexpect 4.9.0 pickleshare 0.7.5 pillow 10.4.0 Pint 0.21.1 pip 24.0 pkgutil_resolve_name 1.3.10 platformdirs 4.2.2 prompt_toolkit 3.0.47 psutil 6.0.0 ptyprocess 0.7.0 pure-eval 0.2.2 py-cpuinfo 9.0.0 Pygments 2.18.0 pyleco 0.4.0 pymodaq 4.2.3 pymodaq_femto 2.0.0 pymodaq_plugin_manager 1.2.3 pymodaq_plugins_mock 4.4.0 pyparsing 3.1.2 pypret-pymodaq 0.0.1 PyQt5 5.15.10 PyQt5-Qt5 5.15.14 PyQt5-sip 12.13.0 pyqtgraph 0.13.3 pytablewriter 1.2.0 python-dateutil 2.9.0.post0 pytz 2024.1 pyzmq 26.0.3 QDarkStyle 3.2.3 qtconsole 5.5.2 QtPy 2.4.1 readme_renderer 43.0 referencing 0.35.1 requests 2.32.3 rpds-py 0.19.0 scikit-learn 1.3.2 scipy 1.10.1 setuptools 69.5.1 simple-pid 2.0.0 six 1.16.0 stack-data 0.6.3 tabledata 1.3.3 tables 3.8.0 tcolorpy 0.1.6 threadpoolctl 3.5.0 toml 0.10.2 tornado 6.4.1 traitlets 5.14.3 typepy 1.3.2 typing_extensions 4.12.2 urllib3 2.2.2 uuid6 2024.1.12 wcwidth 0.2.13 wheel 0.43.0 yawrap 0.4.10 zipp 3.19.2

— Reply to this email directly, view it on GitHub https://github.com/PyMoDAQ/pymodaq_femto/issues/4#issuecomment-2217534618, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSNYI6PRXT3ZE6USCSW2NTZLPJMVAVCNFSM6AAAAABKSVBZSWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJXGUZTINRRHA . You are receiving this because you were mentioned.Message ID: @.***>

HeisenbergK commented 2 months ago

I tested the same exact setup but on a Windows and a Linux and it did indeed work. I have experience with MacO, enough Apple PCs to be able to play with and can twinkle a bit with them and other systems. Would you be interested in me looking into potentially bug-fixing it? All I need is some guide to the script that is supposed to set the .pymodaq folder up. I think I can then find a way for it to work in MacOS, or at least try.

seb5g commented 2 months ago

The default path is included in : image

at PyMoDAQ first import, the program will try to create a .pymodaq folder at this directory. If it doesn't not have write access, it will complain. Look in this direction please