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

python 3 support broken by print statements #199

Open
jcwright77 opened this issue Jun 9, 2019 · 1 comment
Open

python 3 support broken by print statements #199

jcwright77 opened this issue Jun 9, 2019 · 1 comment

Comments

@jcwright77
Copy link

The release notes say adios python interface is compatible since 1.10, but 1.13.1 release has many print statements that don't use parenthesis.

Python 3.6.0 (default, Mar 16 2017, 15:05:11) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import adios
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "XXXXXXXXXXXXXXXX/adios/1.13.1/lib/python/adios.py", line 15
    print 'malformed adios config file, should contain only a single adios-config element'
                                                                                         ^
SyntaxError: Missing parentheses in call to 'print'

Is there something in ./configure to fix this, or does adios not actually support python3?

@jychoi-hpc
Copy link
Member

Could you try in other directory? It looks like import statement is trying to load adios.py in the current directory, instead of loading adios.so.

Here is my output:

$ python
Python 3.7.3 (default, Mar 27 2019, 16:54:48) 
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import adios
>>> adios.__file__
'/Users/jyc/anaconda3/lib/python3.7/site-packages/adios/__init__.py'

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

2 participants