Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples can not run with python 3.6 #114

Open
Angel-Jia opened this issue Jan 1, 2019 · 5 comments
Open

examples can not run with python 3.6 #114

Angel-Jia opened this issue Jan 1, 2019 · 5 comments

Comments

@Angel-Jia
Copy link

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

@mhangaard
Copy link
Collaborator

mhangaard commented Jan 1, 2019

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__

@Angel-Jia
Copy link
Author

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

@gusmaogabriels
Copy link
Collaborator

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

@AlexHeustc
Copy link

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

@AlexHeustc
Copy link

@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',)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants