GithubHelp home page GithubHelp logo

Error when exporting to csv about sterraxcyl HOT 3 OPEN

novitae avatar novitae commented on May 21, 2024
Error when exporting to csv

from sterraxcyl.

Comments (3)

novitae avatar novitae commented on May 21, 2024 1

I'm currently working on the v3 so I won't push correction for now, what you can do is

  • At C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\filerra.py, line 57 replace this
w.write(','.join(self.dict_keys)+'\n'+"\n".join([",".join([str(v).replace('\n','</b>').replace(',','</c>') for v in d.values()]) for d in self.list]))
  • By that:
w.write(','.join(self.dict_keys)+'\n'+"\n".join([",".join([str(v).replace('\n','</b>').replace(',','</c>') for v in d.values()]) for d in self.list]), encoding="utf-8")

Tell me if it works or not

from sterraxcyl.

novitae avatar novitae commented on May 21, 2024

Could you send the full traceback please ? I think it is probably a dumb encoding not specified error as described here, but I want to be sure

from sterraxcyl.

MiniMinnoww avatar MiniMinnoww commented on May 21, 2024

Could you send the full traceback please ? I think it is probably a dumb encoding not specified error as described here, but I want to be sure

Traceback (most recent call last): File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\Scripts\sterra.exe\__main__.py", line 7, in <module> File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\core.py", line 432, in main ret = globals()[module.upper()](**kwargs) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\core.py", line 89, in EXPORT scrape(t,l) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\core.py", line 59, in scrape exporter(_=_, List=__a1List, file_path=file_path, Format=Format, **{"username":username,"target":targlist})() File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\filerra.py", line 20, in __call__ getattr(self,self.Format.upper())() File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\filerra.py", line 57, in CSV w.write(','.join(self.dict_keys)+'\n'+"\n".join([",".join([str(v).replace('\n','</b>').replace(',','</c>') for v in d.values()]) for d in self.list])) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 397-398: character maps to <undefined>

from sterraxcyl.

Related Issues (20)

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.