error "ModuleNotFoundError: No module named 'pymcx'"

171 views
Skip to first unread message

Q W

unread,
Jul 15, 2022, 7:58:21 PM7/15/22
to hddm-users
Dear guys,

I have encountered a issue, about pymcx.
When I import pymcx, it gave me the following errors :

import pymcx
Traceback (most recent call last):

  File "C:\Users\QuanWang\AppData\Local\Temp/ipykernel_19884/3192498641.py", line 1, in <module>
    import pymcx

ModuleNotFoundError: No module named 'pymcx'


but I have already installed pymcx, please see it ,

pip install pymcx
Requirement already satisfied: pymcx in d:\anaconda3\envs\pytorch_env\lib\site-packages (0.0.1)
Note: you may need to restart the kernel to use updated packages.


I restarted the kernel, but still can not work, does any one can help , i appreciate it.

I also tried pycharm, have the same issue after I installed the pymcx successully.

thanks again
best regards,
Quan

Alexander Fengler

unread,
Jul 21, 2022, 11:09:44 AM7/21/22
to hddm-users
The corresponding package is 
'pymc' not 'pymcx'.

Let us know if problems remain.

Best,
Alex

Q W

unread,
Jul 21, 2022, 4:54:09 PM7/21/22
to hddm-...@googlegroups.com
Dear  Alex,

My problem still remains, is there any possible to remote in to have a look when you are available ?

we can use Teamviewer or any other remote tool you prefer to.

My personal email is : qwang...@gmail.com

best regards,
Quan

Alexander Fengler <alexande...@brown.edu> 于2022年7月21日周四 16:09写道:
--
You received this message because you are subscribed to a topic in the Google Groups "hddm-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hddm-users/-618hnYHgS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hddm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hddm-users/111af0e4-1275-4aab-9393-78352f988b01n%40googlegroups.com.

Q W

unread,
Jul 27, 2022, 2:57:41 AM7/27/22
to hddm-...@googlegroups.com
Dear Alex,

This email finds you well!

Is there any possible to remote in (we can using teamviewer) when you are available ? 

My issue still there, you can see even I installed the pymcx successfully, I still can not import it.

pip install pymcx
Requirement already satisfied: pymcx in d:\anaconda3\envs\pytorch_env\lib\site-packages (0.0.1)
Note: you may need to restart the kernel to use updated packages.

import pymcx
Traceback (most recent call last):

  File "C:\Users\QuanWang\AppData\Local\Temp/ipykernel_30596/3192498641.py", line 1, in <module>

    import pymcx

ModuleNotFoundError: No module named 'pymcx'


thanks in advance!
regards,
Sunny

Q W <qwang...@gmail.com> 于2022年7月21日周四 21:53写道:

Michael J Frank

unread,
Jul 27, 2022, 4:45:13 PM7/27/22
to hddm-...@googlegroups.com
Did you try installing and importing pymc instead of pymcx?


You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hddm-users/CAOvA73SJbgyGHACUKS8%2BCz0QMjRGwEr1%2BpS3k7M-zG9J%3DL_wYw%40mail.gmail.com.

Q W

unread,
Jul 27, 2022, 5:30:15 PM7/27/22
to hddm-...@googlegroups.com
Dear Michael,

I tried pymc, please see below:

pip install pymc
Requirement already satisfied: pymc in d:\anaconda3\envs\pytorch_env\lib\site-packages (4.1.2)
Requirement already satisfied: pandas>=0.24.0 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (1.3.4)
Requirement already satisfied: aeppl==0.0.32 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (0.0.32)
Requirement already satisfied: fastprogress>=0.2.0 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (1.0.2)
Requirement already satisfied: aesara==2.7.5 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (2.7.5)
Requirement already satisfied: arviz>=0.12.0 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (0.12.1)
Requirement already satisfied: cloudpickle in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (2.0.0)
Requirement already satisfied: cachetools>=4.2.1 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (5.0.0)
Requirement already satisfied: numpy>=1.15.0 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (1.21.2)
Requirement already satisfied: typing-extensions>=3.7.4 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (3.10.0.2)
Requirement already satisfied: scipy>=1.4.1 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pymc) (1.7.3)
Requirement already satisfied: etuples in d:\anaconda3\envs\pytorch_env\lib\site-packages (from aesara==2.7.5->pymc) (0.3.5)
Requirement already satisfied: filelock in d:\anaconda3\envs\pytorch_env\lib\site-packages (from aesara==2.7.5->pymc) (3.7.1)
Requirement already satisfied: cons in d:\anaconda3\envs\pytorch_env\lib\site-packages (from aesara==2.7.5->pymc) (0.4.5)
Requirement already satisfied: miniKanren in d:\anaconda3\envs\pytorch_env\lib\site-packages (from aesara==2.7.5->pymc) (1.0.3)
Requirement already satisfied: logical-unification in d:\anaconda3\envs\pytorch_env\lib\site-packages (from aesara==2.7.5->pymc) (0.4.5)
Requirement already satisfied: packaging in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from arviz>=0.12.0->pymc) (21.3)
Requirement already satisfied: netcdf4 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from arviz>=0.12.0->pymc) (1.6.0)
Requirement already satisfied: matplotlib>=3.0 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from arviz>=0.12.0->pymc) (3.5.2)
Requirement already satisfied: xarray>=0.16.1 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from arviz>=0.12.0->pymc) (2022.3.0)
Requirement already satisfied: setuptools>=38.4 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from arviz>=0.12.0->pymc) (58.0.4)
Requirement already satisfied: xarray-einstats>=0.2 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from arviz>=0.12.0->pymc) (0.3.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from matplotlib>=3.0->arviz>=0.12.0->pymc) (1.4.4)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from matplotlib>=3.0->arviz>=0.12.0->pymc) (3.0.9)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from matplotlib>=3.0->arviz>=0.12.0->pymc) (4.34.4)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from matplotlib>=3.0->arviz>=0.12.0->pymc) (2.8.2)
Requirement already satisfied: pillow>=6.2.0 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from matplotlib>=3.0->arviz>=0.12.0->pymc) (9.2.0)
Requirement already satisfied: cycler>=0.10 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from matplotlib>=3.0->arviz>=0.12.0->pymc) (0.11.0)
Requirement already satisfied: pytz>=2017.3 in d:\anaconda3\envs\pytorch_env\lib\site-packages (from pandas>=0.24.0->pymc) (2021.3)
Requirement already satisfied: six>=1.5 in c:\users\quanwang\appdata\roaming\python\python39\site-packages (from python-dateutil>=2.7->matplotlib>=3.0->arviz>=0.12.0->pymc) (1.16.0)
Requirement already satisfied: multipledispatch in d:\anaconda3\envs\pytorch_env\lib\site-packages (from logical-unification->aesara==2.7.5->pymc) (0.6.0)
Requirement already satisfied: toolz in d:\anaconda3\envs\pytorch_env\lib\site-packages (from logical-unification->aesara==2.7.5->pymc) (0.12.0)
Requirement already satisfied: cftime in d:\anaconda3\envs\pytorch_env\lib\site-packages (from netcdf4->arviz>=0.12.0->pymc) (1.6.1)

Note: you may need to restart the kernel to use updated packages.

import pymc
Could not locate executable gfortran
Could not locate executable f95
Could not locate executable g95
Could not locate executable efort
Could not locate executable efc
Could not locate executable flang
don't know how to compile Fortran code on platform 'nt'


But actually, I need pymcx

this is the example of my project: 

import pymcx as mcx

cfg = mcx.create() #create a default config dictionary

cfg["Session"]["Photons"] = 1e6
cfg["Optode"]["Detector"] = [{"Pos": [29.0,  19.0,  0.0], "R": 1.0}]

data = mcx.run(cfg)



thanks in advance!

Regards,
Sunny

Michael J Frank <Michae...@brown.edu> 于2022年7月27日周三 21:45写道:

Michael J Frank

unread,
Jul 27, 2022, 6:12:07 PM7/27/22
to hddm-...@googlegroups.com
Hi Sunny, I'm not sure what the issue is here but it seems unrelated to HDDM altogether. maybe ask the pymcx developers?

Michael 


Reply all
Reply to author
Forward
0 new messages