bluesheeptoken / CPT

Compact Prediction Tree: A Lossless Model for Accurate Sequence Prediction (cython implementation)
https://cpt.readthedocs.io/en/latest/
MIT License
41 stars 7 forks source link

py -3.10.3 cpt build error ... #92

Closed catchthemonster closed 2 years ago

catchthemonster commented 2 years ago

Hi Louis, Trying to compile cpt via pip on py 3.10.3 and getting errors:

Collecting cpt Using cached cpt-1.3.0.tar.gz (113 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error'

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1568 lines of output] Compiling cpt/alphabet.pyx because it depends on /cube/api/py-3.10.3/lib/python3.10/site-packages/Cython/Includes/cpython/type.pxd. Compiling cpt/cpt.pyx because it depends on /cube/api/py-3.10.3/lib/python3.10/site-packages/Cython/Includes/cpython/type.pxd. [1/2] Cythonizing cpt/alphabet.pyx [2/2] Cythonizing cpt/cpt.pyx

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from cpt.prediction_tree cimport PredictionTree
  ^
  ------------------------------------------------------------

  cpt/cpt.pxd:1:0: 'cpt/prediction_tree.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from cpt.prediction_tree cimport PredictionTree
  ^
  ------------------------------------------------------------

  cpt/cpt.pxd:1:0: 'cpt/prediction_tree/PredictionTree.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from cpt.prediction_tree cimport PredictionTree
  from cpt.alphabet cimport Alphabet
  ^
  ------------------------------------------------------------

  cpt/cpt.pxd:2:0: 'cpt/alphabet.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from cpt.prediction_tree cimport PredictionTree
  from cpt.alphabet cimport Alphabet
  ^
  ------------------------------------------------------------

  cpt/cpt.pxd:2:0: 'cpt/alphabet/Alphabet.pxd' not found

  Error compiling Cython file:
  ------------------------------------------------------------
  ...
  from cpt.prediction_tree cimport PredictionTree
  from cpt.alphabet cimport Alphabet
  from cpt.bitset cimport Bitset
  ^
  ------------------------------------------------------------

  cpt/cpt.pxd:3:0: 'cpt/bitset.pxd' not found

  Error compiling Cython file:
  -----------------------------------------------------------

did you try to compile cpt against 3.10.3

regards,

bluesheeptoken commented 2 years ago

Oups, sorry for that. I didn't follow the releases, and I had not in mind python 3.10 was out.

I will update the CIs to publish for 3.10!

bluesheeptoken commented 2 years ago

I kinda messed up the publish process ^^', but basically in a few steps, it should look something like this: #93 Can you confirm it works for you?

As you suggested, do not hesitate to do it if you think it's relevant for python 3.11

Thanks for being active on the repo! And do not hesitate to @ me, I don't always see the issues, unfortunately.

catchthemonster commented 2 years ago

Sounds good! I will do this tomorrow and let you know. Thanks for doing this ... --sasha

On Wed, Mar 23, 2022, 8:36 PM Louis FRULEUX @.***> wrote:

I kinda messed up the publish process ^^', but basically in a few steps, it should look something like this: #93 https://github.com/bluesheeptoken/CPT/pull/93 Can you confirm it works for you?

As you suggested, do not hesitate to do it if you think it's relevant for python 3.11

Thanks for being active on the repo! And do not hesitate to @ me, I don't always see the issues, unfortunately.

— Reply to this email directly, view it on GitHub https://github.com/bluesheeptoken/CPT/issues/92#issuecomment-1076745152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEC5FSLL7MRGLFY2QTB3JDVBNXCDANCNFSM5RF6UOQA . You are receiving this because you authored the thread.Message ID: @.***>

catchthemonster commented 2 years ago

Luis, next time I stop by Paris to see my ant, I will ping you and take you for coffee... Best

On Wed, Mar 23, 2022, 10:11 PM Sasha Kacanski @.***> wrote:

Sounds good! I will do this tomorrow and let you know. Thanks for doing this ... --sasha

On Wed, Mar 23, 2022, 8:36 PM Louis FRULEUX @.***> wrote:

I kinda messed up the publish process ^^', but basically in a few steps, it should look something like this: #93 https://github.com/bluesheeptoken/CPT/pull/93 Can you confirm it works for you?

As you suggested, do not hesitate to do it if you think it's relevant for python 3.11

Thanks for being active on the repo! And do not hesitate to @ me, I don't always see the issues, unfortunately.

— Reply to this email directly, view it on GitHub https://github.com/bluesheeptoken/CPT/issues/92#issuecomment-1076745152, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEC5FSLL7MRGLFY2QTB3JDVBNXCDANCNFSM5RF6UOQA . You are receiving this because you authored the thread.Message ID: @.***>

bluesheeptoken commented 2 years ago

I am glad it worked !

Do not hesitate to ping me again.

Luis, next time I stop by Paris to see my ant, I will ping you and take you for coffee...

I know some pretty cool beer places too :D