Comments (1)
Hi Daniel,
I'm trying to install pycsamt with
python setup.py build
under Python 3.10errors.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:
-
- Missing the folder
_loggerfiles
.
-The logging module expects a folder called_loggerfiles
. The error comes
from the logging configuration ofp.configlog.yml
- Missing the folder
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
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 pycsamt.