Giter Site home page Giter Site logo

UnicodeEncodeError on win7 64bit OS about ahkab HOT 8 CLOSED

ahkab avatar ahkab commented on June 26, 2024
UnicodeEncodeError on win7 64bit OS

from ahkab.

Comments (8)

ggventurini avatar ggventurini commented on June 26, 2024

Hi,

Thanks for the feedback. I will look into this issue.

I have updated the script file to take into account unrelated changes in the library. Would you like to download it again and run it directly with Python? Do you get the same error? with both 3 and 2?

I do not have easy access to a WIndows PC, I will be looking into this issue but it may take a bit.

Thanks.

Cheers,

GV

from ahkab.

chinghua0731 avatar chinghua0731 commented on June 26, 2024

Hi GV,

I download the script file from below link, and run it again.But I got same error message .
https://raw.githubusercontent.com/ahkab/ahkab/master/doc/misc/script.py

I also noted another error message show: " Error: The system can not find the path specified "
if i run the script in command line. Is this the same situation mentioned in Issue#30 ?
(#30)
You mentioned that many OS's delete the temporary files when they are closed.

if so, could you show me how to specify an output file in python code ?

Anthony

from ahkab.

ggventurini avatar ggventurini commented on June 26, 2024

Hi,

Did you try to run the latest master? I have merged a commit
specifically for your case, I'd like to know if it makes things
better.

The error message you refer to is a harmless error that happens on
windows when the program checks for matplotlib. you can safely ignore
that.

Cheers,

GV

On Mon, Jun 22, 2015 at 7:46 PM, chinghua0731 [email protected] wrote:

Hi GV,

I download the script file from below link, and run it again.But I got same
error message .
https://raw.githubusercontent.com/ahkab/ahkab/master/doc/misc/script.py

I also noted another error message show: " Error: The system can not find
the path specified "
if i run the script in command line. Is this the same situation mentioned in
Issue#30 ?
(#30)
You mentioned that many OS's delete the temporary files when they are
closed.

if so, could you show me how to specify an output file in python code ?

Anthony


Reply to this email directly or view it on GitHub.

from ahkab.

chinghua0731 avatar chinghua0731 commented on June 26, 2024

Hi GV,

Yes , i tried the latest master but it doesn't make anything change. I still got the same error message.

I take a look into the code today and have some finding. I found the define functions of _get_elements_op() in results.py (line 339) return some character that can't be identified in windows . But not a problem in Mac .

In Windows
image

In Mac
mac

from ahkab.

ggventurini avatar ggventurini commented on June 26, 2024

Hi,

Thanks for your update!

I think it's the Ohm and flux (*edit) unit symbols. I will be trying to use the same encoding
as you do and see if i can reproduce that.

Unicode handling sometimes is complicated.

Cheers

GV

On 18:13, Tue, Jun 23, 2015 chinghua0731 [email protected] wrote:

Hi GV,

Yes , i tried the latest master but it doesn't make anything change. I
still got the same error message.

I take a look into the code today and have some finding. I found the
define functions of _get_elements_op() in results.py (line 339) return some
character that can't be identified in windows . But not a problem in Mac .

In Windows
[image: image]
https://cloud.githubusercontent.com/assets/8695699/8310724/6ec64b84-1a04-11e5-892e-cb5e23c9c705.png

In Mac
[image: mac]
https://cloud.githubusercontent.com/assets/8695699/8310920/9e70c322-1a05-11e5-847f-11eb55c16171.png


Reply to this email directly or view it on GitHub
#31 (comment).

from ahkab.

ggventurini avatar ggventurini commented on June 26, 2024

Hi Anthony,

Thanks for your detailed reply. I think I understood what goes on.

If I am right, Python3 does not open files as utf-8 on systems where utf-8 is not the standard. Now, starting with 69b1063 we enforce that files are always opened as utf-8.

That should fix your problem, I believe. Can you please give the latest master a try and let me know?

If that works I'll shortly put out a bugfix release.

Thanks!

Cheers, GV

from ahkab.

chinghua0731 avatar chinghua0731 commented on June 26, 2024

Hi GV,

Good news, it works!! I could run the script normally on Windows.

I am glad to have such a great package to run the circuit simulation in python.
It really help me a lot : ) and thanks for your effort on this issue.

Anthony

from ahkab.

ggventurini avatar ggventurini commented on June 26, 2024

Hi Anthony,

I am pleased to hear the good news. Thanks for your report, and for the nice words. I am pleased it is useful.

Cheers,

GV

from ahkab.

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.