Giter Club home page Giter Club logo

Comments (7)

Falldog avatar Falldog commented on June 18, 2024

@Zoeybird which python version in your environment?

from pyconcrete.

fangchih avatar fangchih commented on June 18, 2024

I also got this error, my python ver is 2.7.9

from pyconcrete.

Falldog avatar Falldog commented on June 18, 2024

Reference by stackoverflow thread
It's seems caused by build & run by different python version
ex: build .pye by python 2.7.8, run .pye by python 2.7.9

@fangchih Please help to make sure build & run on same python version
Or you can rebuild all .pye, and try again

from pyconcrete.

fangchih avatar fangchih commented on June 18, 2024

@Falldog thanks, I just found the root cause same as you said.

have any workaround on this? because the PROD's python is older than CI's python.

Seems different platform will cause this issue too, still checking...

from pyconcrete.

Falldog avatar Falldog commented on June 18, 2024
  1. The easiest way is that make sure all python version sync.
  2. Use Vagrant or docker to process CI task to make sure python version is sync in VM env
  3. Production environment is hard to control the python version, maybe you should try PyInstaller rather than pyconcrete

@fangchih I don't know how your Production or CI work
Maybe you can explain more detail then I can give you more suggestion.

from pyconcrete.

fangchih avatar fangchih commented on June 18, 2024

@Falldog, thanks for your help...

My PROD is embedded linux box which have 32bit and 64bit os, so far we only have 2.7.9 because of our toolchian limitation.

My approach now is use docker in CI to emulate PROD env, same as you mentioned.
I will also give PyInstaller a try, but seems pycontrete is more light weight to just meet my requirement. XD

from pyconcrete.

Falldog avatar Falldog commented on June 18, 2024

@fangchih, sounds great!
:)

@Zoeybird I will close this issue, cause the root cause should be run & build by different python version. If there is another root cause of the issue, you can reopen it.

from pyconcrete.

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.