DiCarloLab-Delft / PycQED_py3

Python3 version of PycQED using QCoDeS as backend
MIT License
67 stars 40 forks source link

Develop branch cannot work with Python 3.9 #728

Closed dangokuson closed 3 months ago

dangokuson commented 3 months ago

I'm using source on the develop branch and Python 3.9.x. However, I cannot successfully install the PycQED dependency defined in the requirements.txt file. The develop branch does not support Python 3.9.x right ?

MiniSean commented 3 months ago

The develop branch should support Python 3.9.x. Can you specify what problem you are running into?

dgks0n commented 3 months ago

@MiniSean Thanks!

Here is my environment:

I used this comment to install OpenQL: pip install qutechopenql@git+https://github.com/DiCarloLab-Delft/OpenQL@82a9881bdb2c2f2b0620c14c549c436f21d1607c. However, I encountered below problem:

Collecting qutechopenql@ git+https://github.com/DiCarloLab-Delft/OpenQL@82a9881bdb2c2f2b0620c14c549c436f21d1607c
  Cloning https://github.com/DiCarloLab-Delft/OpenQL (to revision 82a9881bdb2c2f2b0620c14c549c436f21d1607c) to /private/var/folders/gs/9rcssk014tb1h7rmbmfy0kyh0000gn/T/pip-install-1taj1bqf/qutechopenql_570100364ed946668175b11435c412b1
  Running command git clone --filter=blob:none --quiet https://github.com/DiCarloLab-Delft/OpenQL /private/var/folders/gs/9rcssk014tb1h7rmbmfy0kyh0000gn/T/pip-install-1taj1bqf/qutechopenql_570100364ed946668175b11435c412b1
  Running command git rev-parse -q --verify 'sha^82a9881bdb2c2f2b0620c14c549c436f21d1607c'
  Running command git fetch -q https://github.com/DiCarloLab-Delft/OpenQL 82a9881bdb2c2f2b0620c14c549c436f21d1607c
  Running command git checkout -q 82a9881bdb2c2f2b0620c14c549c436f21d1607c
  Resolved https://github.com/DiCarloLab-Delft/OpenQL to commit 82a9881bdb2c2f2b0620c14c549c436f21d1607c
  Running command git submodule update --init --recursive -q
  error: RPC failed; curl 18 transfer closed with outstanding read data remaining
  error: 23384 bytes of body are still expected
  fetch-pack: unexpected disconnect while reading sideband packet
  fatal: early EOF
  fatal: fetch-pack: invalid index-pack output
  fatal: Fetched in submodule path 'deps/eigen', but it did not contain 39142904cc2301628931481e8b331cc2d567e22f. Direct fetching of that commit failed.
  error: subprocess-exited-with-error

  × git submodule update --init --recursive -q did not run successfully.
  │ exit code: 128
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× git submodule update --init --recursive -q did not run successfully.
│ exit code: 128
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

How can I install OpenQL?

MiniSean commented 3 months ago

@dgks0n thanks for letting us know about this issue.

This requirement on a specific development version of qutech-openql is something we are trying to phase-out. Try pip install qutechopenql. Most of the common functionality in Pycqed is compatible with the public release of qutech-openql.

dgks0n commented 3 months ago

@MiniSean It seems it does not work on Apple Chip M2 (arm64). I tried this pip install qutechopenql:

ERROR: Could not find a version that satisfies the requirement qutechopenql (from versions: none)
ERROR: No matching distribution found for qutechopenql

Here is my environment: