Re virtual environments -- your simplest work around is probably to use the `CASPER_PYTHON_VENV_ON_START` variable described at https://casper-toolflow.readthedocs.io/en/latest/src/Configuring-the-Toolflow.html
Alternatively, if "just" changing the shebang line to point to "python3" works, that seems like a reasonable thing to do. (Others may disagree). Cheers Jack On Tue, 19 Nov 2019 at 10:08, Wesley New <[email protected]> wrote: > Hi Nitish > > This is a python 2/3 issue. The toolflow has been upgraded to use python > 3. Most people are running it in a virtual environment and install the > requirements.txt in the root of mlib_devel. Assuming you are using the > latest version of mlib_devel in casper-astro. > > Hope this helps. > > Regards > > Wesley > > On Tue, 19 Nov 2019, 7:03 PM Nitish Ragoomundun, < > [email protected]> wrote: > >> Hi, >> >> I was using Matlab R2017b and Vivado 2016.4 until recently. Most things >> were working until I had issues with the complex fft block and decided to >> get the latest mlib_devel to program our SNAP board. I followed >> https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html >> and installed Matlab R2018a and Vivado 2019.1.1 on Ubuntu 16.04. I tested >> using a design which I know was working before. I noticed that new Matlab >> could not save the Simulink design if I opened the old one itself. So, I >> manually made a replica of the .slx design with the same blocks and same >> parameters. Ctrl+D was successfull. Compilation should have worked but got >> the following error at some stage after running jasper: >> >> ..... >> ('wb_register_ppc2simulink_sync', >> ['/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/hdl_sources/wb_register_ppc2simulink_sync']) >> snap >> ('infrastructure', >> ['/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/hdl_sources/infrastructure']) >> ('wbs_arbiter', >> ['/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/hdl_sources/wbs_arbiter']) >> sys_block >> <yellow_blocks.sys_block.sys_block object at 0x7f7b6cbe3790> doesn't have >> an attribute 'fullpath' >> ('sys_block', >> ['/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/hdl_sources/sys_block']) >> spi_wb_bridge >> <yellow_blocks.spi_wb_bridge.spi_wb_bridge object at 0x7f7b6cbe3990> >> doesn't have an attribute 'fullpath' >> ('spi_wb_bridge', >> ['/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/hdl_sources/spi_wb_bridge']) >> xadc >> <yellow_blocks.xadc.xadc object at 0x7f7b6cbe3a50> doesn't have an >> attribute 'fullpath' >> ('xadc/xadc.v', >> ['/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/hdl_sources/xadc/xadc.v']) >> ('xadc/xadc_wiz_0.xci', >> ['/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/hdl_sources/xadc/xadc_wiz_0.xci']) >> instantiating user peripherals >> top: >> /home/aragorn/Documents/SNAP/new_Spectrum_Analyser/spectrum_480mhz_2048pts_3c/top.v >> instantiating user_ip >> regenerating top >> Dumping pickle of top-level Verilog module >> Extracting constraints from peripherals >> Generating physical constraints >> Traceback (most recent call last): >> File >> "/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/cit2csl.py", line >> 107, in <module> >> sys.stdout.buffer.write(csl) >> AttributeError: 'file' object has no attribute 'buffer' >> Failed to generate binary file >> /home/aragorn/Documents/SNAP/new_Spectrum_Analyser/spectrum_480mhz_2048pts_3c/core_info.jam.tab.bin, >> error code 256. >> Traceback (most recent call last): >> File >> "/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/exec_flow.py", >> line 202, in <module> >> tf.write_core_jam_info() >> File >> "/home/aragorn/Documents/CASPER/mlib_devel/jasper_library/toolflow.py", >> line 525, in write_core_jam_info >> raise Exception(errmsg) >> Exception: Failed to generate binary file >> /home/aragorn/Documents/SNAP/new_Spectrum_Analyser/spectrum_480mhz_2048pts_3c/core_info.jam.tab.bin, >> error code 256. >> Error using jasper (line 23) >> Backend build failed! Check log files for more information >> >> >> If you wish to see the beginning of the messages, please see attached >> log. The messages in the Matlab window following the jasper command are in >> Matlab.log. >> Since the error is a "Traceback" from Python, I am guessing something. I >> did download the new mlib_devel (master branch) and installed the >> requirements using pip3. I saw in >> https://casper-toolflow.readthedocs.io/en/latest/src/Installing-the-Toolflow.html >> that for SNAP, we need Python3 and I checked dependencies. One thing I >> noticed by looking into the scripts inside mlib_devel/jasper_library is the >> line "#! /usr/bin/env python". On Ubuntu 16.04 the default Python is >> version 2.7 and "python" is actually a symlink at /usr/bin/python which >> links to /usr/bin/python2.7. So, for example, if exec_flow.py is run, I am >> pretty sure it is running with python2.7 and not python3. >> >> So, what do you think? >> Can you please advise? >> >> Thanks. >> Regards, >> Nitish >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "[email protected]" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAC6X4cP%3DkUfwym5YKZKxnZvjE%2BwxQNxSo_XcoAx95%2Ba1x5OF6A%40mail.gmail.com >> <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAC6X4cP%3DkUfwym5YKZKxnZvjE%2BwxQNxSo_XcoAx95%2Ba1x5OF6A%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups " > [email protected]" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAE2vkmWJUjyS7PYbF0v%2BQ6zaxwyk7Pj8PjX_9-R%3Dk8fV9bypHg%40mail.gmail.com > <https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAE2vkmWJUjyS7PYbF0v%2BQ6zaxwyk7Pj8PjX_9-R%3Dk8fV9bypHg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/CAG1GKSm8rZ4uhLYDMQ1W4h9hyaUp0hGj-nH%2BpuB1J2YLMvUpnQ%40mail.gmail.com.

