Open Anacardoide opened 8 months ago
Hi @Anacardoide,
So, the reason for this error you are reporting is that the latest version of PYNQ uses some f-string features that Python 3.7 (which you are using) does not support. They are supported in Python 3.8+, which we require for the latest version.
You mentioned that you cannot upgrade the Python version on the machine you are using. Have you considered using Anaconda to create a local Python 3.8 environment that you could use? If you cannot do this, then I guess the best course is to try and solve the issue you mentioned that is preventing you from using PYNQ 2.7.0. Would you mind pointing us to that issue and giving a bit more information about it? You mentioned it was resolved.
To add to this, you can find the instructions to install pynq
on an Anaconda env here https://pynq.readthedocs.io/en/latest/getting_started/alveo_getting_started.html#install-conda
Hi @Anacardoide,
So, the reason for this error you are reporting is that the latest version of PYNQ uses some f-string features that Python 3.7 (which you are using) does not support. They are supported in Python 3.8+, which we require for the latest version.
You mentioned that you cannot upgrade the Python version on the machine you are using. Have you considered using Anaconda to create a local Python 3.8 environment that you could use? If you cannot do this, then I guess the best course is to try and solve the issue you mentioned that is preventing you from using PYNQ 2.7.0. Would you mind pointing us to that issue and giving a bit more information about it? You mentioned it was resolved.
Oh, I'll try with Anaconda then! I never used it but it's very common in my CPD so I'll ask for help if needed. Also, the resolved issue I was refering to was this one: https://github.com/Xilinx/Alveo-PYNQ/issues/26
To add to this, you can find the instructions to install
pynq
on an Anaconda env here https://pynq.readthedocs.io/en/latest/getting_started/alveo_getting_started.html#install-conda
Thanks a lot!
To add to this, you can find the instructions to install
pynq
on an Anaconda env here https://pynq.readthedocs.io/en/latest/getting_started/alveo_getting_started.html#install-conda
Hi again, I've been trying to follow that guide but there's a problem: while I need to use Python 3.8, the GIST that I have to copy to generate environment.yml is made for Python 3.7.4. I tried manually changing the corresponding line to python=3.8 and letting conda solve all the dependencies while creating the environment, but it doesn't seem to work: no environment is created anywhere, even with the command being apparently successful.
Is there an updated GIST? Thanks in advance.
Hi @Anacardoide,
Please ignore the section Using a Conda Environment
.
The Install Conda instructions are enough, this env has everything you need to run pynq
. No need to use the environment.yml
file
wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh -O anaconda3.sh
bash anaconda3.sh
Hi,
My company installed the Alveo U55C FPGA and I'm trying to install the PYNQ Alveo examples package but I keep running into the same error message:
We have Python 3.7.8 already installed in the system, I can't change that. I tried both with the last PYNQ version and, due to a very similar resolved issue another user opened here, with PYNQ 2.7.0 because Python >= 3.8 is needed for the last version of PYNQ. Neither way is working and I don't know what to do.