Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkidgen3 issues #30

Open
joshuadorafshan opened this issue May 7, 2024 · 3 comments
Open

mkidgen3 issues #30

joshuadorafshan opened this issue May 7, 2024 · 3 comments

Comments

@joshuadorafshan
Copy link

Hi
we cannot install from this repo
cd ~
mkdir ~/src
git clone https://github/com/mazinlab/mkidgen3.git ~/src/
fatal: unable to access 'https://github/com/mazinlab/mkidgen3.git/': Could not resolve host: github
if we install this :
git clone --recursive https://github.com/MazinLab/MKIDGen3.git
pip install -e '.[client,plotting]'
or pip install -e ...
Successfully built mkidgen3
DEPRECATION: distro-info 1.1build1 has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at pypa/pip#12063
DEPRECATION: gpg 1.16.0-unknown has a non-standard version number. pip 24.1 will enforce this behaviour change. A possiblereplacement is to upgrade to a newer version of gpg or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at pypa/pip#12063
Installing collected packages: mkidgen3
Attempting uninstall: mkidgen3
Found existing installation: mkidgen3 0.0.0
Uninstalling mkidgen3-0.0.0:
Successfully uninstalled mkidgen3-0.0.0
Successfully installed mkidgen3-0.0.0

it is installed successfully however if we run [opfb_demo.ipynb]
we have this error :
ModuleNotFoundError: No module named 'mkidgen3.fccm22_demo'
could you please help us thanks

@JennySmith888
Copy link
Collaborator

Hi Joshua!

Hm yes looks like the install instructions for the software component of the RFSoC_OPFB repo have fallen out of date... I'll have to think about the best way to fix this going forward as the MKIDGen3 project has diverged significantly from the state it was in when the OPFB was developed...

I'm glad you were able to install the mkidgen3 package though. The command git clone https://github/com/mazinlab/mkidgen3.git ~/src/ failed because the URL is wrong-- the correct path as you found is git clone https://github.com/MazinLab/MKIDGen3.git ~/src/mkidgen3/. The install instructions in MKIDGen3 are the most up-to-date right now.

I'll have to look into the deprecation warnings but should be ok for now.

Assuming you installed mkidgen3 on a ZCU111 and are trying to get the opfb demo up and running on the ZCU111, you should be able to go to /home/xilinx/src/mkidgen3 or wherever you installed it on the ZCU111 and do git checkout 8040a0a to get the older version of the mkidgen3 software the opfb demo was last tested with. After running that command, restart the jupyter notebook kernel and see you if you can import fccm22_demo. It should be there if you use the 8040a0a commit hash.

The modern version of MKIDGen3 uses the RFSoC4x2. Let me know if you have one of those and would rather run the opfb demo on that platform and I will give separate instructions which will use a newer version of mkidgen3.

Let me know if you run into more issues.

Thanks!

@joshuadorafshan
Copy link
Author

joshuadorafshan commented May 9, 2024

DEAR,
thanks for your great works.
FIRST:
after do some extra installation and add ifboard from MKIDGen3/mkidgen3/drivers to driver installation that it is not exist it runs however I face this error
opfb_demo.ipynb <-

RuntimeError Traceback (most recent call last)
in
2 if ol.dac_table.register_map.run.run:
3 ol.dac_table.stop()
----> 4 ol.dac_table.replay(dactable['iq'], fpgen='simple')

/home/xilinx/jupyter_notebooks/src/mkidgen3/drivers/dactable.py in replay(self, data, tlast, tlast_every, replay_len, start, fpgen, stop_if_needed)
33 """
34 if self.register_map.run.run and not stop_if_needed:
---> 35 raise RuntimeError('Replay in progress. Call .stop() or with stop_if_needed=True')
36 if fpgen == 'simple':
37 data = (data*2048).round().clip(-2048, 2047)*16

RuntimeError: Replay in progress. Call .stop() or with stop_if_needed=True
and also

Trigger Capture

Capture does not support phase capture
SECOND:
my bit file are generated with Vivado 2022.X it seems OK for generating opfb_streaming.bit
however there are some other ipynb files like iqtest.ipynb in notebooks how can generate .bit for these
I have XCU111
THANKS

@tkgunaratne
Copy link

Hi Jenny,

I'm trying to test the OPFB with ZCU111 board. I encountered issues trying to install MKIDGen3 that directed me here. When I follow your instruction given in the comment on May 7th, 2024 for PYNQ Installation I get the following error.
Obtaining file:///home/xilinx/src/mkidgen3 Installing build dependencies ... done Checking if build backend supports build_editable ... done ERROR: Project file:///home/xilinx/src/mkidgen3 has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.

Kindly note that I'm using Pynq overlay version 3.0 for RFSOC. I really appreciate if you can suggest me a way to resolve this.

Kind regards,

T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants