catmap icon indicating copy to clipboard operation
catmap copied to clipboard

examples can not run with python 3.6

Open Angel-Jia opened this issue 6 years ago • 5 comments

I have run the example in Generating an Input File and I got this error.

Traceback (most recent call last): File "D:/Jupyter-notebook/ASE/test.py", line 123, in parser.parse() File "D:\catmap\catmap\parsers\table_parser.py", line 60, in parse self._baseparse() File "D:\catmap\catmap\parsers\parser_base.py", line 41, in _baseparse self.transition_state_names+self.site_names+tuple(self._gas_sites)): TypeError: can only concatenate list (not "NoneType") to list

Angel-Jia avatar Jan 01 '19 11:01 Angel-Jia

More information is needed to reproduce the error. Which version of CatMAP are you running? To find out, go to python command line and type:

>> from catmap import __version__
>> __version__

mhangaard avatar Jan 01 '19 14:01 mhangaard

I have tried the latest version of CatMAP(0.3.0), anaconda2, anaconda3, none of them could run the examples in tutorials. when I ran the first example in Generating an Input File, I got this error:

Traceback (most recent call last):
File "D:/Jupyter-notebook/ASE/test.py", line 123, in 
parser.parse()
File "D:\catmap\catmap\parsers\table_parser.py", line 60, in parse
self._baseparse()
File "D:\catmap\catmap\parsers\parser_base.py", line 41, in _baseparse
self.transition_state_names+self.site_names+tuple(self._gas_sites)):
TypeError: can only concatenate list (not "NoneType") to list

Angel-Jia avatar Jan 01 '19 23:01 Angel-Jia

@Mabinogiysk, are you able to run the example files in your environment with the current CatMAP version?

gusmaogabriels avatar Jul 29 '19 12:07 gusmaogabriels

@Angel-Jia I meet the same problem,have you solved it?

AlexHeustc avatar Oct 01 '22 14:10 AlexHeustc

@Angel-Jia I compared the different examples in documentation tutorial and the tutorial in code-master , it seems like the difference bettween the tuple and the list rxm.adsorbate_names = ('CO','C','O','H','CH','OH','CH2','CH3') rxm.transition_state_names = ('C-O','H-OH','H-C') rxm.gas_names = ('CO_g','H2_g','CH4_g','H2O_g') rxm.site_names = ('s',)

AlexHeustc avatar Oct 01 '22 14:10 AlexHeustc