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

Version checking on startup #141

Closed
joshrsmith opened this issue Mar 3, 2016 · 1 comment
Closed

Version checking on startup #141

joshrsmith opened this issue Mar 3, 2016 · 1 comment

Comments

@joshrsmith
Copy link
Contributor

@cmarqu Recommended in chat that the Python version be checked on startup and a helpful message be emitted if the version is not supported.

e.g. Check for Major == 2 and Minor ==7 or Major == 3

@cmarqu
Copy link
Contributor

cmarqu commented Mar 14, 2016

Sorry for not checking this earlier, but using Python 2.6.1.1 gives me now:

Traceback (most recent call last):
  File "examples/vhdl/user_guide/run.py", line 8, in <module>
    from vunit import VUnit
  File "/home/marquardt/tools/vunit/vunit/__init__.py", line 12, in <module>
    import vunit.version_check
  File "/home/marquardt/tools/vunit/vunit/version_check.py", line 24, in <module>
    if not version_is_ok():
  File "/home/marquardt/tools/vunit/vunit/version_check.py", line 19, in version_is_ok
    version = (sys.version_info.major,
AttributeError: 'tuple' object has no attribute 'major'

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