Python Error: module 'numpy' has no attribute 'float'
Hi All,
I'm trying to get data from a database using GX Developer Python API. Whatever I do, I keep getting the following error
NumPy downgrading to 1.20 doesn't help. Any ideas about what could be wrong?
Answers
-
any luck with this? I'm running successfully with an older environment where the gxpy.gdb works fine (incidentally this env has numpy 1.24.2, pandas 2.0.0, Geosoft 2022.2.0 - although when I recreate a new env with these same packages I get same error as you!). For now I can only run in my original env but not in any new env I create.
0 -
Yep. I've commented out all references to np.float and np.int (two in the gx_dtype function and two in the gx_dummy function) in the utility.py file (.\site-packages\geosoft\gxpy\utility.py). That was the only solution that worked for me.
1 -
ok great. that seems to have worked :)
0
Categories
- All Categories
- 5 Community
- 3 Get Started
- 16 Latest Releases
- 15 Member Spotlight
- 39 Learning
- 2 Products
- 1 Geology
- 535 Leapfrog
- 1 Volsung
- 26 Visible Geology
- Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- Geotechnical
- 136 GeoStudio
- Geophysics
- 319 Oasis montaj
- 1 Workbench
- SPIA
- 9 Res2DInv & Res3DInv
- 3 Evo
- 26 GX Developer
