Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks with python-3.6 #62

Closed
yurivict opened this issue Apr 16, 2018 · 7 comments
Closed

Breaks with python-3.6 #62

yurivict opened this issue Apr 16, 2018 · 7 comments

Comments

@yurivict
Copy link

This error:

cylp/cy/CyClpPrimalColumnPivotBase.cpp:5019:19: error: no member named 'f_tstate' in '_frame'
        (*frame)->f_tstate = tstate;
        ~~~~~~~~  ^

And also non-ascii characters in README.rst cause this error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 362, in <module>
    s_README = getBdistFriendlyString(open('README.rst').read())
  File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 343: ordinal not in range(128)
*** Error code 1
@yurivict
Copy link
Author

yurivict commented Apr 16, 2018

@tkralphs , maybe you could help and solve this?

Thank you!
Yuri.

@sschnug
Copy link

sschnug commented Apr 16, 2018

As far as i know, python3 is not supported at all.

There is a pull-request / fork here with a lot of discussion. I don't know if it works with py36, but i think at least <=py3.5 works.

@yurivict
Copy link
Author

Thanks for this info!

@yogeshkkolte
Copy link

(wradlib) yogesh@yogesh:~/anaconda$ conda install -c jjhelmus cylp
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:

cylp -> python=2.7
python=3.6
Use "conda info " to see the dependencies for each package.

I am getting following error . How can i install cylp for python 3.6?

@tkiral
Copy link

tkiral commented Oct 30, 2018

@godofyoga please read the thread; python3 is unsupported by cylp. @sschnug references the thread in which the issue is being discussed

Edit: per @sschnug earlier versions could work but are not officially supported atm

@philzook58
Copy link

I was able to eventually get this to install and run on python 3.7. I used the py3 branch mentioned here.
#28
https://github.com/jjhelmus/CyLP

git checkout py3

It is somewhat similar to the issue here.
scikit-hep/root_numpy#365
It seems that this is a problem in cython generated code. It needs to be generated with the latest version of cython.

I am on a Mac so I think the setup.py was somehow using a rotten version of cython belonging to my system distro of python.

I was able to get it to compile by getting the latest cython
pip3 install cython

Disable cython manually in setup.py by setting USECYTHON=False in line 38

Then go into the cylp/cy folder and run

python3 -m cython --cplus CyCbcModel.pyx
python3 -m cython --cplus CyClpSimplex.pyx

which were the two problem files for me (Although not in your original question?)

Now python3 setup.py install should hopefully work in the top folder.

@tkralphs
Copy link
Member

Master now has Python 3 support, so I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants