GithubHelp home page GithubHelp logo

Setup difficulties about pycsamt HOT 1 CLOSED

meerfrau avatar meerfrau commented on June 14, 2024 1
Setup difficulties

from pycsamt.

Comments (1)

WEgeophysics avatar WEgeophysics commented on June 14, 2024 1

Hi Daniel,

I'm trying to install pycsamt with python setup.py build under Python 3.10

errors.log must exist or setup fails: FileNotFoundError: [Errno 2] No such file or directory: './pyCSAMT/pycsamt/_loggerfiles/errors.log'

Then my GDAL is not detected, despite being present and working well:

Ignore GDAL as it is not working. Will use pyproj
error in pycsamt setup command: 'NoneType' object has no attribute 'group'

You mentioned two problems:

    1. Missing the folder _loggerfiles .
      -The logging module expects a folder called _loggerfiles . The error comes
      from the logging configuration of p.configlog.yml
    error_file_handler:
        class: logging.handlers.RotatingFileHandler
        level: ERROR
        formatter: simple
        filename: pycsamt/_loggerfiles/errors.log
        maxBytes: 1000000 # 1MB
        backupCount: 2
        encoding: utf8

You can clone the new version of the repo then you will get everything fixed.

-2) second problem: GDAL not set

  • Install manually GDAL is a little bit complicated. To see where the warnings comes, check the decorator
    gdal_data_check. in :func:pycsamt.utils.decorator. To let `pycsamt`` recognizes the GDAL, you must set a GDAL Environment variable as ::
   import os 
    os.environ['GDAL_DATA'] = <output>

where output is the GDAL file location in your local machine. If you use Window system, you can manually set the Environmental variable : System Properties --> Environment Variables

from pycsamt.

Related Issues (4)

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.