Is Python 3.5 supported for example ?
See original GitHub issueOn Windows 7 64-bit system, with MinGW and Python 3.5.2, and Python 3 in path, I try to run the example at http://cocotb.readthedocs.io/en/latest/quickstart.html, but when doing make
in MSys terminal, it gives:
$ make
File "<string>", line 1
from distutils import sysconfig; print sysconfig.get_config_var("DESTSHARED"
)
^
SyntaxError: invalid syntax
File "<string>", line 1
import distutils.sysconfig; print distutils.sysconfig.get_python_inc()
^
SyntaxError: invalid syntax
File "<string>", line 1
from distutils import sysconfig; print sysconfig.get_config_var("DESTSHARED"
)
^
SyntaxError: invalid syntax
File "<string>", line 1
import distutils.sysconfig; print distutils.sysconfig.get_python_inc()
^
SyntaxError: invalid syntax
/home/mz/cocotb/makefiles/simulators/Makefile.icarus:49: *** "Unable to locate command >iverilog<". Stop.
Looks like the scripts does not support Python 3 with print being a function.
Is Python 3.5 supported for example, and what should I then do to use Python 3 ?
Thanks.
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
What's New In Python 3.5 — Python 3.11.1 documentation
This article explains the new features in Python 3.5, compared to 3.4. Python 3.5 was released on September 13, 2015. See the changelog...
Read more >Python Release Python 3.5.0
Python 3.5.0 was released on September 13th, 2015. Major new features of the 3.5 series, compared to 3.4. Among the new major new...
Read more >Python Release Python 3.5.3
Python 3.5.3 was released on January 17th, 2017. Major new features of the 3.5 series, compared to 3.4. Among the new major new...
Read more >Python Release Python 3.5.10
Python 3.5.10 is the final release in the Python 3.5 series. As of this release, the 3.5 branch has been retired, no further...
Read more >26.1. typing — Support for type hints — Python 3.5.9 ...
New in version 3.5. ... This module supports type hints as specified by PEP 484. ... In this example, Vector and List[float] will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jeremyherbert I guess appVeyor could be used for continuous integration in Windows.
Hi @MortenZdk
I certainly use cocotb with python 3.5 on Linux and OS X. The problem here is that the Windows/msys makefile is a bit wonky. You can have a look at the Linux one to see how it should be working.
I can immediately see that these lines can be fixed by something like this:
LOCAL_PYTHON_VERSION?=$(shell $(PYTHON_BIN) -c 'from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_version())') PYTHON_DYNLIBDIR:=$(shell $(PYTHON_BIN) -c 'from __future__ import print_function; from distutils import sysconfig; print(sysconfig.get_config_var("DESTSHARED"))')
Unfortunately I can’t test this for you because I am not near my computer (I blame any typing errors on my tablet), and I also don’t use Windows for this kind of work 😉 but keep reporting back if you find issues; there is no simple way to do regression testing for Windows using free services like there is for Linux.