Coder Social home page Coder Social logo

Python 3 Compatibility about optalg HOT 5 CLOSED

vogt31337 avatar vogt31337 commented on May 27, 2024
Python 3 Compatibility

from optalg.

Comments (5)

martinzellner avatar martinzellner commented on May 27, 2024

There is an attempt to make OPTALG Python 3 compatible in the python-3 branch of this project.
Maybe this helps.

from optalg.

ttinoco avatar ttinoco commented on May 27, 2024

Yes, we can do that. I will work on this and make the master branch python
3 compatible. I will notify here as soon as this is done.
On Jun 24, 2016 11:15 AM, "Martin Zellner" [email protected] wrote:

There is an attempt to make OPTALG Python 3 compatible in the python-3
branch https://github.com/ttinoco/OPTALG/tree/python-3 of this project.
Maybe this helps.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#3 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AGFYf6BZOI3Ar6jFhi9rz7xaT2fCAl8Pks5qO6A2gaJpZM4I9lzi
.

from optalg.

vogt31337 avatar vogt31337 commented on May 27, 2024

Nice thanks! The Python-3 branch doesn't work or I've made something else wrong:

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\opt_solver\augl.py to augl.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\opt_solver\augl.py", line 135
print '\nSolver: augL'
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\opt_solver\iqp.py to iqp.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\opt_solver\iqp.py", line 183
print '\nSolver: IQP'
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\opt_solver\lccp.py to lccp.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\opt_solver\lccp.py", line 171
print '\nSolver: LCCP'
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\opt_solver\nr.py to nr.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\opt_solver\nr.py", line 95
print '\nSolver: NR'
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_grad.py to stoch_grad.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_grad.py", line 22
print '\nStochastic Gradient'
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_grad_pd.py to stoch_grad_pd.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_grad_pd.py", line 22
print '\nPrimal-Dual Stochastic Gradient'
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_hyb.py to stoch_hyb.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_hyb.py", line 23
print '\nStochastic Hybrid'
^
SyntaxError: Missing parentheses in call to 'print'

byte-compiling C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_hyb_pd.py to stoch_hyb_pd.cpython-35.pyc
File "C:\Anaconda3\Lib\site-packages\optalg\stoch_solver\stoch_hyb_pd.py", line 24
print '\nPrimal-Dual Stochastic Hybrid'
^
SyntaxError: Missing parentheses in call to 'print'

running install_egg_info
Removing C:\Anaconda3\Lib\site-packages\OPTALG-1.0-py3.5.egg-info
Writing C:\Anaconda3\Lib\site-packages\OPTALG-1.0-py3.5.egg-info

from optalg.

martinzellner avatar martinzellner commented on May 27, 2024

This looks like a caching issue to me. If you look at line 137 in augl.py the print is correct.

from optalg.

vogt31337 avatar vogt31337 commented on May 27, 2024

I had to delete manually the folder in my anaconda and then it worked. Thanks for the hint!

from optalg.

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.