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

Another Python3 Issue #34

Closed
jacobwilliams opened this issue Feb 14, 2015 · 2 comments
Closed

Another Python3 Issue #34

jacobwilliams opened this issue Feb 14, 2015 · 2 comments

Comments

@jacobwilliams
Copy link

If the source file has a syntax error, then I'm getting an error when running FoBiS with Python 3.4.2.

Traceback (most recent call last):
  File "/Users/anaconda/bin/FoBiS.py", line 5, in <module>
    main()
  File "/Users/anaconda/lib/python3.4/site-packages/fobis/fobis.py", line 140, in main
    build()
  File "/Users/anaconda/lib/python3.4/site-packages/fobis/fobis.py", line 90, in build
    builder.build(file_to_build=pfile, output=__config__.cliargs.output, nomodlibs=nomodlibs)
  File "/Users/anaconda/lib/python3.4/site-packages/fobis/Builder.py", line 302, in build
    print(self.colors.red + result[1] + self.colors.end)
TypeError: Can't convert 'bytes' object to str implicitly

This can be seen when trying to compile the following file (src/test.f90):

program blah

abc

end program blah

with the command:

FoBiS.py build -s ./src -compiler gnu
@szaghi
Copy link
Owner

szaghi commented Feb 15, 2015

Thank you Jacob. I do not test deep with python 3.x. Tomorrow I will try fix this bug and I will add a test unit for compiling bugged sources like your.

See you soon.

@szaghi
Copy link
Owner

szaghi commented Feb 16, 2015

The new release 1.3.2 on both PyPi and github should be free of this bug.

See you soon.

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