Comments (14)
Glad you like it! We are slowly working towards a smoother install process.
Can you remind me what platform you are on? Presumably you are following the developer route so have compiled the Cython extensions? or have you downloaded the pre-built extensions for your platform?
from gprmax.
Hey,
I just get the last gprmax-master.zip, conda env create -f conda_env.yml it and activate it.
Trying to get it build on a cluster, ubuntu64bits
cheers
e
from gprmax.
OK, so follow step 4 to build the Cython extensions and you should be good to go. The gcc (the C compiler with OpenMP support) should already be installed on Ubuntu.
from gprmax.
yeah, but still not:
To activate this environment, use:
$ source activate gprMax
To deactivate this environment, use:
$ source deactivate
[eleger@n0001 gprMax-master]$ source activate gprMax
discarding /global/home/users/eleger/miniconda3/bin from PATH
prepending /global/home/users/eleger/miniconda3/envs/gprMax/bin to PATH
(gprMax)[eleger@n0001 gprMax-master]$ python -m gprMax user_models/cylinder_Ascan_2D.in
Traceback (most recent call last):
File "/global/home/users/eleger/miniconda3/envs/gprMax/lib/python3.5/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/global/home/users/eleger/miniconda3/envs/gprMax/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/global/home/users/eleger/bin/gprMax-master/gprMax/main.py", line 3, in
from .gprMax import main
File "/global/home/users/eleger/bin/gprMax-master/gprMax/gprMax.py", line 35, in
from gprMax.fields_update import *
ImportError: No module named 'gprMax.fields_update'
I'd say this is because I'm loading python3.2 (not 3.5) on the cluster could it be because of that ?
cheers
e
from gprmax.
From the traceback you have Python 3.5. Did you follow step 4, i.e. compile the Cython extensions?
from gprmax.
No, since I was building the endusers version.
Trying to compile the cython yields:
python setup.py build_ext --inplace
Traceback (most recent call last):
File "setup.py", line 37, in
open(os.path.join(packagename, 'gprMax.py')).read(),
File "/global/home/users/eleger/miniconda3/envs/gprMax/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 8733: ordinal not in range(128)
Thanks
e
from gprmax.
Hello,
Facing a similar issue.
PFA screenshot of the error.
miniconda and gprMax installs were absolutely fine. But not able to simulate the sample Ascan.
Thank You
from gprmax.
Hi NishanthBhonsle,
I think your issue is different. Can you confirm a few facts:
- What version of Windows are you using? Is it 32- or 64-bit?
- Have you copied the compiled Python extensions into the gprMax-v.3.0.0b18/gprMax directory? This was part of step 1. Get the code
- Can you post a listing of the gprMax-v.3.0.0b18/gprMax directory?
from gprmax.
- I am using windows 8.1 64-bit version.
- Yes i have copied the extensions into the gprMax-v.3.0.0b18/gprMax directory.
PFA Screenshot of the directory.
In addition to these there are the following files
- yee_cell_build.pyx
- yee_cell_setget_rigid.cp35-win_amd64.pyd
- yee_cell_setget_rigid.pxd
- yee_cell_setget_rigid.pyx
Thank You.
from gprmax.
@NishanthBhonsle I think Windows users may still have to install the Microsoft Visual Studio 2015 C++ Redistributable (vc_redist.x64.exe
for 64-bit) from https://www.microsoft.com/en-us/download/details.aspx?id=48145. Can you give that a try and let me know if that solves it.
@ELEGER I think I've fixed the issue you were having. It was to do with reading the version number. The fix is in the master branch, and I'll make a new release tomorrow.
from gprmax.
Good job Craig,
Pulled the latest dev version and everything worked smoothly.
Thanks for you help (quick, efficient and clever), and I'm glad I could help to find a small bug.
e
from gprmax.
@NishanthBhonsle Did installing the Microsoft Visual Studio 2015 C++ Redistributable solve the problem for you?
from gprmax.
@craig-warren Was unable to download Microsoft Visual Studio 2015 C++ Redistributable due to various reasons.
So using GprMax on linux platform and it is working perfectly.
Thanks a lot and will update you if I am able to get Visual Studio on windows.
from gprmax.
OK, thanks. From my testing it should work with the Redistributable installed on Windows. I'll close this issue for now, but if you come back to Windows and can't get it working then please open this issue up again.
from gprmax.
Related Issues (20)
- pyopencl event timing on macOS
- Setup fails with error message HOT 1
- Error examples/Subgrids/gssi HOT 3
- Cannot use GPU with models that contain sub-grids. HOT 1
- Running out of memory
- hdf5 file not generated with only transmission line source/receiver (v4) HOT 3
- Output issue heterogeneous soil model HOT 1
- Installation in MacOS 10.16 HOT 3
- Feature: Adding contributors section to the README.md file. HOT 5
- How can this error be resolved HOT 1
- Bscan in 3D model HOT 1
- Bug fix: Grid global object persists through multiple python API calls HOT 4
- Custom waveform behavior does not match docs (v4) HOT 3
- Run gprmax iteratively from python without saving files HOT 3
- question about Field Strength HOT 1
- Feeding point in an open-ended coaxial probe HOT 1
- Problem with relation between parameter "beta" and fractal dimension "D" HOT 7
- Error in water epsilon r (master branch) HOT 3
- Grid.solid and materials numID mismatch for multiple fractal boxes with Peplinski soils - master branch HOT 1
- #hertzian_dipole Antenna Pattern HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gprmax.