Git Product home page Git Product logo

Comments (4)

tyszwh avatar tyszwh commented on July 30, 2024 1

Hi, julesghub
Sorry, there was a problem with the previous file.
LOG_FILE_1.txt

However, I think I have located the issue.
Please ensure Petsc is using version 3.19.4 and the Setuptools version is less than 65.
GCC 13 results in errors during compilation.
(Although, I don't know which error is preventing pip from installing.)

Hopefully, this will help anyone experiencing the same problem

Cheers

from underworld2.

tyszwh avatar tyszwh commented on July 30, 2024

I have recently configured a new environment that includes Python 3.10.13 and Petsc 3.19.4. However, I encountered an issue while trying to install it using the recommended method, which is the command pip install -v git+https://github.com/underworldcode/underworld2. I have attached the installation log for reference. Errors are different from the previous ones.
LOG_FILE_1.log

from underworld2.

julesghub avatar julesghub commented on July 30, 2024

Hi @tyszwh,
Yes a newer version of petsc is required, compared to the previous attempt you made. 3.16 is too old for the current version of UW2.

I see this in the error log.

2023-11-30T19:57:39,393   Running command git clone --filter=blob:none https://github.com/underworldcode/underworld2 /tmp/pip-req-build-1ltcspyg
2023-11-30T19:57:39,396   Cloning into '/tmp/pip-req-build-1ltcspyg'...
2023-11-30T19:57:43,693 ERROR: Operation cancelled by user

Your download from git appears to have been cancelled. Any ideas why?

from underworld2.

julesghub avatar julesghub commented on July 30, 2024

Thanks for the points @tyszwh. Glad you got to the bottom of it. I'll close the ticket for now.

PS: The compile error in the log file is

2023-12-10T23:36:53,280   /home/tysz/miniconda3/envs/geo3/include/petscstring.h:688:249: error: expected ')' before 'PRIxPTR'
2023-12-10T23:36:53,280     688 |   PetscAssert(!(((al > bl) && (al - bl) < n) || (bl - al) < n), PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "Memory regions overlap: either use PetscMemmove()\nor make sure your copy regions and lengths are correct.\nLength (bytes) %zu first address %" PRIxPTR " second address %" PRIxPTR, n, al, bl);

I guessing this is a gcc version related issue.

Feel free to reopen the ticket if you like.

from underworld2.

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.