Matminer CompositionToOxidComposition() error

Hi, there.

I am trying to use

CompositionToOxidComposition().featurize_dataframe(df, ‘structure’)

and following error messages appears.

Please help.


Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\Yimc\Anaconda3\envs\lib\multiprocessing\”, line 105, in spawn_main
exitcode = _main(fd)
File “C:\Users\Yimc\Anaconda3\envs\lib\multiprocessing\”, line 114, in _main
File “C:\Users\Yimc\Anaconda3\envs\lib\multiprocessing\”, line 225, in prepare
File “C:\Users\Yimc\Anaconda3\envs\lib\multiprocessing\”, line 277, in _fixup_main_from_path
File “C:\Users\Yimc\Anaconda3\envs\lib\”, line 261, in run_path
code, fname = _get_code_from_file(run_name, path_name)
File “C:\Users\Yimc\Anaconda3\envs\lib\”, line 231, in _get_code_from_file
with open(fname, “rb”) as f:
OSError: [Errno 22] Invalid argument: ‘C:\Users\Yimc\PycharmProjects\Base\’

Hi, welcome to the forum!

What OS are you running on? Windows 10?
What versions of python are you using?
And finally, what version of matminer and multiprocessing you do have?


Hi, Alex.
Thanks for your help. I have setup the python environment in pyCharm, and I assume this is the reason why it is not working. The version are as following.

  • OS: Window 10
  • python: 3.5
  • Matminer: 0.6.3.
  • multiprocessing: package could not be found or installed.

I am trying to uninstall and setup the python in Anaconda, which was working from previous computer…
Please let me know if there is any other solution.


Hey Chae-Ho,

Well, we don’t officially support windows OS’s and we don’t test on python 3.5, just python 3.7 and newer. However, this doesn’t mean it won’t work. I would try getting a newer version of python/anaconda (3.7 or newer) and reinstalling matminer.