myhdl / myhdl

The MyHDL development repository
http://www.myhdl.org
GNU Lesser General Public License v2.1
1.05k stars 248 forks source link

different python versions #414

Open olisnr opened 1 year ago

olisnr commented 1 year ago

i had problems to get my code, that was running on one computer with python3.8, running on an other with python3.11. there were many strage messages, pointing deep in myHDLs verilog-converter. i needed long time to find out, that i dont need an old python version, but to update myHDL.

would it be esay to check the python version from myHDL and tell if the python version is suitable for the current myHDL version?

josyb commented 1 year ago

Even if we added such a feature, that would not protect you from using an outdated MyHDL version (without this feature) with a newer Python version.

olisnr commented 1 year ago

yes, You are right. but it would give me a hint where to search: if i install myHDL via pip, i was thinking i have a good version. i tried different python-versions, and i had no idea what was needed. it should work from v3.6 and it was working on a 3.8, but not 3.10 and there is even a python 3.11 avaliable. the information, what python-versions are tested would have helped me. if its easy to implement i would print this information. the thing is: at the point where the new myHDL version is in the pip, it will work. it would also be ok, if the website says: the pip-version isnt new and should work at this and that versions

josyb commented 1 year ago

I updated the README.md on the web-site. Currently MyHDL is tested against Python versions 3.7, 3.8, 3.9, 3.10, 3.11 and PyPy 3.9

olisnr commented 1 year ago

thats great, can we also have this information on "https://myhdl.org/start/installation.html#installation-using-pip"?

josyb commented 1 year ago

That is another section :)

olisnr commented 1 year ago

who is responsible for web-site changes?

olisnr commented 1 year ago

there is also the broken link we could fix

josyb commented 1 year ago

who is responsible for web-site changes?

the community is ... I have merging rights, but that doesn't mean I do all the work :) @davekeeshan and @hgomersall will help in reviewing PRs

there is also the broken link we could fix

which one?

olisnr commented 1 year ago

on https://github.com/myhdl/myhdl ther is an installation link: pip install -e 'git+https://github.com/myhdl/myhdl#egg=myhdl on the end is a ' missing. correct would it be: pip install -e 'git+https://github.com/myhdl/myhdl#egg=myhdl' <--- this

josyb commented 1 year ago

No, there isn't any longer - I corrected that Perhaps refresh the browser cache?

olisnr commented 1 year ago

thanks. i didn't saw it. there is an other thing thats wrong. the links of the page https://myhdl.org/start/installation.html goes to an old v0.9 verison on SourceForge instead of the actual GitHub version:

To install MyHDL on your system, download the latest release. Untar and unzip the downloaded file:

josyb commented 1 year ago

Like I said that is another section; perhaps @JanCoombs can find the time to work on that

JanCoombs commented 1 year ago

@josyb ok, will do.

josyb commented 10 months ago

@bjohan Can you please open a new issue for this, keeping things apart. Thanks, Josy