Hi Kaj,

Please can you go to your virtual environment directory:
../casper-venv/libpython3.5/site-packages and do a "ls -la". It will list
all the packages installed. There should be colorlog, lxml, numpy, odict,
pip, pkg_resources,pyaml,setuptools and yaml python packages. Please can
you send me a screen capture, thanks?

It looks like your pyyaml did eventually install correctly though at the
end - let's assume for now all is good with your virtual environment. You
may be able to continue trying to build your slx file in the toolflow now.
Try the next step.

1)
https://casper-toolflow.readthedocs.io/en/latest/src/Configuring-the-Toolflow.html
2)
https://casper-toolflow.readthedocs.io/en/latest/src/Running-the-Toolflow.html

Let me know what you get.

Kind regards,

Adam Isaacson
South African Radio Astronomy Observatory (SARAO)
Hardware Manager
Cell: (+27) 825639602
Tel:  (+27) 215067300
email: [email protected]



On Mon, Feb 1, 2021 at 6:13 PM Kaj Wiik <[email protected]> wrote:

> Sorry, I sent a wrong screenshot, here's a correct one...
> https://seafile.utu.fi/f/50b186da6c404a7db4ee
>
> Kaj
>
> On 2/1/21 6:05 PM, Kaj Wiik wrote:
> > Hi all!
> >
> > Many thnks for looking into this, I have followed the emails over the
> > week but couldn't do any testing because of other commitments.
> >
> > I tried to follow the suggested procedure accurately but still got an
> > error. Well, in addition to that I ran update and had to 'apt-get
> > install python3-venv' to get venv working.
> >
> > The error I got is 'Running setup.py bdist_wheel for PyYAML ... error',
> > see the attached screenshot for the full log (here's a link to the log:
> > https://seafile.utu.fi/f/a464c7711d6e441c8898/?dl=1).
> >
> > As I am not a python user (Julia, C and Perl only...), I have no idea
> > what wheels it is trying to turn ;-).
> >
> > Any ideas?
> >
> > Thanks again,
> > Kaj
> >
> >
> > On 1/29/21 12:42 PM, Adam Isaacson wrote:
> >> Okay, so it turns out that creating the virtual environment for python
> >> using "virtualen -p python3 <name_of_env>" does not work. This is what
> >> you need to do in order to create a successful virtual environment and
> >> get your designs to build. I tested it on a brand new virtual
> >> environment and it works. Thanks to Clifford van Wyk (Peralex), Morag
> >> Brown and Jack Hickish for their assistance. The docs will definitely
> >> need to be updated - we will add this to the agenda for the CASPER
> >> meeting.
> >>
> >> The following needs to be done if you want to generate a proper
> >> virtual environment that will build in the toolflow - Kaj, I recommend
> >> the below way:
> >>
> >> 1) Create the virtual environment: "python3 -m venv <some-venv-name>".
> >> The old way of using virtualenv -p python 3 <some-venv-name> just
> >> doesn't work. Thanks to Jack and Morag for pointing this out to me.
> >> 2) Activate the environment: "source <some-venv-name>/bin/activate"
> >> 3) Go to the mlib_devel directory and edit the requirements.txt file.
> >> It should have "numpy<1.19" (thanks for your sleuth work, Jack!). Now
> >> save the file.
> >> 4) Go to mlib_devel directory and type exactly: "pip install -r
> >> requirements.txt". This will install without error or issues. if you
> >> check the site-packages in the virtual environment you will see what I
> >> mean - all the python packages will be installed properly in your
> >> virtual environment.
> >> 5) You will need to edit line 32 of castro.py (located in the same
> >> folder as mlib_devel/jasper_library), so that it is "c = yaml.load(fh,
> >> Loader=yaml.Loader) . Refer to
> >> https://github.com/yaml/pyyaml/issues/266
> >> <https://github.com/yaml/pyyaml/issues/266>for more info on this
> >> version change issue. I tested the build with my original working
> >> virtualenv and the newly generated virtualenv and it works for both.
> >> Don't worry, I will be committing this change once I have done a bit
> >> more investigation - maybe adding versions in requirements.txt is not
> >> a bad idea for future support.
> >>
> >> You can now start your matlab session and build your designs :). Hooray!
> >>
> >
>
> --
> 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/4f852e11-4725-c8e8-03fe-d84add6a4198%40utu.fi
> .
>

-- 
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/CADTJ%3DnHacLga2eCWexYa5RChnq-pJ3muqWb_rQx%3Dd3W3Jk-dkw%40mail.gmail.com.

Reply via email to