Code Monkey home page Code Monkey logo

Comments (10)

jafluri avatar jafluri commented on June 1, 2024

Hello,

Thanks for your interest in deepsphere!

The package needs a special PyGSP, which should be installed with the requirements. You can reinstall it via:

pip install git+https://github.com/jafluri/pygsp.git@sphere-graphs

and try if this fixes your issue. What python version are you using?

from deepsphere-cosmo-tf2.

Wasim04 avatar Wasim04 commented on June 1, 2024

Hi
Thanks for your prompt reply. I have installed the given PyGSP version from the link, but the issue seems to remain the same. I am using python 3.10.5.

Many Thanks

from deepsphere-cosmo-tf2.

jafluri avatar jafluri commented on June 1, 2024

I cannot reproduce this issue. I just created a new 3.10 environment and get the correct dependencies with the requirements install.
Could you send me the output of pip freeze?
Can you try to create a fresh venv / conda env?

Otherwise, because the PyGSP version is quite low, you might need to force a reinstall:

pip install --force-reinstall git+https://github.com/jafluri/pygsp.git@sphere-graphs

from deepsphere-cosmo-tf2.

Wasim04 avatar Wasim04 commented on June 1, 2024

Hi

Thanks for the advice. I shall try this with fresh conda env.
pip freeze produced a huge list with versions of installed packages etc. Not sure if you wanted to see that.
PyGSP, which I found there, is 0.5.1. probably this version is causing my issue.

Many Thanks

from deepsphere-cosmo-tf2.

Wasim04 avatar Wasim04 commented on June 1, 2024

Hi,

Thanks for your help. I have been able to insall deepsphere in a fresh conda env. There is still, however, a conflict sustained with the tensorflow and numpy version.

An error prompted from healpy_networks.py script, at the line 70.

The Error reads: module 'numpy' has no attribute 'int'.
np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

Many Thanks

from deepsphere-cosmo-tf2.

jafluri avatar jafluri commented on June 1, 2024

You are right, the newest version of numpy removes np.int, so I replaced it with python standard ints. If you have not already changed it yourself, pull the repo should fix it.

from deepsphere-cosmo-tf2.

Wasim04 avatar Wasim04 commented on June 1, 2024

Hi,

Yes, I have replaced it. Another conflict I encountered is that the specified Scipy version is not compatible with the current python version. New version of scipy promts the following error:

File _ckdtree.pyx:783, in scipy.spatial._ckdtree.cKDTree.query()

File _ckdtree.pyx:387, in scipy.spatial._ckdtree.get_num_workers()

TypeError: Unexpected keyword argument {'n_jobs': -1}

This is because the 'n_jobs' argument has been renamed in the new version of scipy. I am not entirely sure how to work around that. Thanks a lot for your continuous support.

Many Thanks
Wasim

from deepsphere-cosmo-tf2.

jafluri avatar jafluri commented on June 1, 2024

Yes, makes sence, the PyGSP is on the same decrepated version of numpy and scipy as deepsphere was. I just updated the repo, please reinstall PyGSP via:

pip install --force-reinstall git+https://github.com/jafluri/pygsp.git@sphere-graphs

and try again.

from deepsphere-cosmo-tf2.

Wasim04 avatar Wasim04 commented on June 1, 2024

Hi,

Thanks for the update. It works now. I cannot thank you enough for this great package that you ( and your team) have developed. You have done service to humanity.

Easter Greetings to you. Have a wonderful time.

Many Thanks
Wasim

from deepsphere-cosmo-tf2.

jafluri avatar jafluri commented on June 1, 2024

Thanks, glad that it works!

Happy Easter.

from deepsphere-cosmo-tf2.

Related Issues (8)

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.