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
- 288 Community
- 3 Get Started
- 16 Latest Releases
- 16 Member Spotlight
- 42 Learning
- 1.1K Products
- 565 Geology
- 538 Leapfrog
- 1 Volsung
- 26 Visible Geology
- 36 Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- 136 Geotechnical
- 136 GeoStudio
- 332 Geophysics
- 321 Oasis montaj
- 1 Workbench
- SPIA
- 10 Res2DInv & Res3DInv
- 3 Evo
- 27 GX Developer
