Code Monkey home page Code Monkey logo

Comments (6)

thilp avatar thilp commented on June 26, 2024 1

Thank you for your help! I have pre-released v1.3.1 with the suggested change, and will make it official (and upload it to pypi) when I have gathered the necessary approval from Zalando.

from transformer.

thilp avatar thilp commented on June 26, 2024

Hi, this looks like a duplicate of #72 (based on the first line of your error message, only partially visible in your screenshot). Unfortunately, this project currently doesn’t have the resources to support Windows as a first-class platform. Please try running Transformer inside Docker instead!

from transformer.

JustinRoll avatar JustinRoll commented on June 26, 2024

Hey all,
I had a similar issue, and found that if you just pre-process the file and re-encode it in python, you can get it to run.

_f1Text = open('har/login.har', encoding='utf-8').read()
newText = f1Text.encode('charmap', errors='ignore').decode('charmap')
newOut = open('har/login_new.har', 'w', encoding = 'charmap')
newOut.write(newText)

#now run transformer on your har directory_

It could be nice to just detect if you're on windows and use a different encoding by default though.

from transformer.

maormagori avatar maormagori commented on June 26, 2024

Hi, this looks like a duplicate of #72 (based on the first line of your error message, only partially visible in your screenshot). Unfortunately, this project currently doesn’t have the resources to support Windows as a first-class platform. Please try running Transformer inside Docker instead!

It wasn't mentioned anywhere that Windows isn't supported.
This should be acknowledged somewhere in the README.

from transformer.

bascr avatar bascr commented on June 26, 2024

I had the same issue and like @JustinRoll says the issue has to do with the file encoding. Modifying the line 315 in the scenario.py file like the image below I was able to get the resulting locust file:

image

It would be nice that the method 'dump' from the transformer class could receive the 'enconding' value as a parameter.

from transformer.

thilp avatar thilp commented on June 26, 2024

I have released v2.0.0 (major version bump because I also renamed the "blacklist" keyword argument) and also uploaded it to PyPI. Please let me know if a similar problem still occurs. 🙂

from transformer.

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.