Giter VIP home page Giter VIP logo

Comments (8)

halbmy avatar halbmy commented on September 25, 2024

How did you install pybert and which version do you have?

from gimli.

IsabellaLorenzen avatar IsabellaLorenzen commented on September 25, 2024

I installed it using pip install pybert and its the 0.0.2 version.

It is a folder i my site packages in the pygimli environment.

from gimli.

halbmy avatar halbmy commented on September 25, 2024

You probably installed some other pybert. Up to now, there is no pip installation of OUR pybert (but there should be one as now pyGIMLi can also be installed by pip). Please use conda install -c gimli pybert or just clone pyBERT by git.

from gimli.

IsabellaLorenzen avatar IsabellaLorenzen commented on September 25, 2024

I am not able to run conda install -c gimli pybert with my current python version (3.11), but to be able to run it i have made a new environment, that will allow be to run the install. The envionment is made with this code:
conda create -n pg_newness -c gimli -c conda-forge python=3.8 "pygimli<=1.4.0"

But in spyder when i run only import pygimli as pg and import pybert as pb it yields the following error:

AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
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

(In addition i would like to use the newest version of pygimli as possible. I was succesful in running my code with pygimli 1.3.1 version, but i am using the dataframe .copy() command, and that is not accessable in the 1.3.1 version)

from gimli.

halbmy avatar halbmy commented on September 25, 2024

Why would you want pygimli <= 1.4.0 ? Can you please try with >= 1.5.0 ?

from gimli.

IsabellaLorenzen avatar IsabellaLorenzen commented on September 25, 2024

I didnt think i was able to, but I have now created an environment with
conda create -n pg_newness -c gimli -c conda-forge python=3.8 "pygimli<=1.5.0"

When i run each of these import:
import pygimli as pg
import pybert as pb
from pybert.importer.exportData import exportRes2dInv

I still get the error:
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
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

I suspected it had something to do with my numpy version, but i have tried different version from 1.19 to 1.24, and i keep getting the same issue, and i am not even calling any .np commands with just importing pg and pd.

from gimli.

IsabellaLorenzen avatar IsabellaLorenzen commented on September 25, 2024

Hallo again, and sorry for all of the back and forth!

I finally created an environment with
conda create -n pg_newness -c gimli -c conda-forge python=3.9 "pygimli<=1.5.0"

And it apprears to all be working now, thank you!

from gimli.

halbmy avatar halbmy commented on September 25, 2024

In this case the <= does not make much sense, did you now install 1.5.0 or 1.4.x?

In any case, we stopped supporting Python<3.9 so fixing to 3.8 was the source of the problem.

from gimli.

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.