Git Product home page Git Product logo

Comments (5)

hnyu avatar hnyu commented on July 26, 2024

Hi @gyuta , can you try directly installing the repo: pip install git+https://github.com/HorizonRobotics/cnest.git?

from alf.

gyuta avatar gyuta commented on July 26, 2024

@hnyu

Thanks for quick reply!!

I tried it but doesnt work

$ pip install git+https://github.com/HorizonRobotics/cnest.git                                        
Collecting git+https://github.com/HorizonRobotics/cnest.git
  Cloning https://github.com/HorizonRobotics/cnest.git to /private/var/folders/8_/_xtn7y3s07gb38gjlhgk3l4r0000gp/T/pip-req-build-rmaslzvl
  Running command git clone --filter=blob:none --quiet https://github.com/HorizonRobotics/cnest.git /private/var/folders/8_/_xtn7y3s07gb38gjlhgk3l4r0000gp/T/pip-req-build-rmaslzvl
  Resolved https://github.com/HorizonRobotics/cnest.git to commit 630d21239e282765896b6a040593066d3b796265
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pybind11<3.0.0,>=2.6.2 in /Users/myname/.local/share/virtualenvs/mac-exp-iOgqb1lD/lib/python3.7/site-packages (from cnest==1.0.4) (2.10.3)
Building wheels for collected packages: cnest
  Building wheel for cnest (pyproject.toml) ... done
  Created wheel for cnest: filename=cnest-1.0.4-cp37-cp37m-macosx_12_0_x86_64.whl size=6800 sha256=6bcf6e5645cfe2236f4dbd5ba00c8d8ba5e46083e1caebd8839314aa81aa783d
  Stored in directory: /private/var/folders/8_/_xtn7y3s07gb38gjlhgk3l4r0000gp/T/pip-ephem-wheel-cache-x21cxmpa/wheels/8e/1c/11/5d4672f85fc2f670d0db9666a56d8c7c521a230b0e327993bc
Successfully built cnest
Installing collected packages: cnest
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
alf 0.0.6 requires cnest==1.0.5, but you have cnest 1.0.4 which is incompatible.
Successfully installed cnest-1.0.4
$ ls  /Users/myname/.local/share/virtualenvs/mac-exp-iOgqb1lD/lib/python3.7/site-packages/cnest 
__init__.py     __pycache__     format.py       nest.cpp

from alf.

hnyu avatar hnyu commented on July 26, 2024

@gyuta Can you first uninstall cnest completely and try installing from the github repo link again?

One thing to note that the PyPi cnest package will try installing cnest wheels which were only tested for certain Ubuntu versions. I noticed that you're using a MacOS system, so that wheel might not be compatible. One solution is to directly installing from the github (build from source).

(A backup solution is to git clone the cnest repo, and try pip install -e . inside cnest dir and see if the .so file exists. But certainly this is not the most convenient way of installing cnest.)

from alf.

hnyu avatar hnyu commented on July 26, 2024

@hnyu

Thanks for quick reply!!

I tried it but doesnt work

$ pip install git+https://github.com/HorizonRobotics/cnest.git                                        
Collecting git+https://github.com/HorizonRobotics/cnest.git
  Cloning https://github.com/HorizonRobotics/cnest.git to /private/var/folders/8_/_xtn7y3s07gb38gjlhgk3l4r0000gp/T/pip-req-build-rmaslzvl
  Running command git clone --filter=blob:none --quiet https://github.com/HorizonRobotics/cnest.git /private/var/folders/8_/_xtn7y3s07gb38gjlhgk3l4r0000gp/T/pip-req-build-rmaslzvl
  Resolved https://github.com/HorizonRobotics/cnest.git to commit 630d21239e282765896b6a040593066d3b796265
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pybind11<3.0.0,>=2.6.2 in /Users/myname/.local/share/virtualenvs/mac-exp-iOgqb1lD/lib/python3.7/site-packages (from cnest==1.0.4) (2.10.3)
Building wheels for collected packages: cnest
  Building wheel for cnest (pyproject.toml) ... done
  Created wheel for cnest: filename=cnest-1.0.4-cp37-cp37m-macosx_12_0_x86_64.whl size=6800 sha256=6bcf6e5645cfe2236f4dbd5ba00c8d8ba5e46083e1caebd8839314aa81aa783d
  Stored in directory: /private/var/folders/8_/_xtn7y3s07gb38gjlhgk3l4r0000gp/T/pip-ephem-wheel-cache-x21cxmpa/wheels/8e/1c/11/5d4672f85fc2f670d0db9666a56d8c7c521a230b0e327993bc
Successfully built cnest
Installing collected packages: cnest
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
alf 0.0.6 requires cnest==1.0.5, but you have cnest 1.0.4 which is incompatible.
Successfully installed cnest-1.0.4
$ ls  /Users/myname/.local/share/virtualenvs/mac-exp-iOgqb1lD/lib/python3.7/site-packages/cnest 
__init__.py     __pycache__     format.py       nest.cpp

Hi @gyuta, we've published a new cnest version 1.0.8 and fixed an issue of building the so file PR #1434 . Please give it a try and see if it also solves your problem. Thanks!

from alf.

gyuta avatar gyuta commented on July 26, 2024

I apologize for the delay in my response. Thank you again for addressing the issue. I have confirmed that it is now working properly. Thank you very much.

from alf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.