erocarrera / pythonika Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/pythonika
Automatically exported from code.google.com/p/pythonika
This may be an extremely naive question, but I cannot understand how to
download (and subsequently make) the makefile. The only download that I find
that is suitable for my OSX machine is called Pythonika-2.6; if I try make -f
Makefile.osx, obviously, the target is not there. Am I missing some obvious
step?
Thanks for any help,
Best,
Sam
Original issue reported on code.google.com by [email protected]
on 8 Jul 2014 at 4:12
What steps will reproduce the problem?
1. Download Pythonika binary for MacOS and Python 2.6
2. Download Pythonika.nb example notebook
3. Adjust the path, execute first line
Get "LinkOpen::linke: ""Specified file is not a MathLink executable ""
Original issue reported on code.google.com by [email protected]
on 2 Mar 2011 at 12:33
I've experienced incorrect encoding with non-ascii (namely, cyrillic) str and
unicode objects (see
http://mathematica.stackexchange.com/questions/25730/string-encoding-issue-with-
pythonika/25738). I've fixed it, probably in a hacky way (as I'm not quite good
at C): http://hg.aplavin.ru/pythonika/diff/tip/Pythonika.c. It would be nice to
see this fix applied, probably rewritten in a better way.
Original issue reported on code.google.com by [email protected]
on 23 May 2013 at 2:47
OSX builds require the mathlink Framework to be copied to (or already available
in) @executable_path/../Frameworks
The documentation should make this clear, or an install build should be defined
that automatically codes the copying
Original issue reported on code.google.com by [email protected]
on 30 Oct 2013 at 2:44
What steps will reproduce the problem?
1. After pointing to correct homebrew Python 2.7 and added -arch i386 to the
Makefile, I can build the object file.
2. But I can't link, error message:
c++ -arch i386
-I/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x
86-64/CompilerAdditions
-I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/includ
e/python2.7 Pythonika.o Pythonikatm.o
-L/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x
86-64/CompilerAdditions -lMLi3
-F/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7
-framework Python
-F/Applications/Mathematica.app/SystemFiles/Links/MathLink/DeveloperKit/MacOSX-x
86-64/CompilerAdditions -framework mathlink -framework CoreFoundation -o
Pythonika -m32
ld: warning: ld: warning: ignoring file Pythonika.o, file was built for
unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00
0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked
(i386): Pythonika.oignoring file Pythonikatm.o, file was built for unsupported
file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01
0x00 0x00 0x00 ) which is not the architecture being linked (i386):
Pythonikatm.o
Undefined symbols for architecture i386:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Pythonika] Error 1
OS : Mac OS X 10.9.5
Mathematica 9
Python: homebrew Python 2.7 32 bit
Original issue reported on code.google.com by [email protected]
on 8 Jan 2015 at 5:13
Any idea why?
Original issue reported on code.google.com by [email protected]
on 17 Dec 2014 at 4:08
It appears that Pythonika's symbols, including its private variables (such as
"code") are not put in a separate context. If I already have a variable named
"code", it will be overwritten, then removed when loading and using Pythonika.
I suggest putting all symbols in a separate context (e.g. Py`) and all private
symbols into a separate subcontext, using the usual way when writing packages.
Then adding this context to the context path.
Please see page 6 of
http://www.edenwaith.com/development/tutorials/mathlink/ML_Tut.pdf on how to do
this.
The usual way is starting with
BeginPackage["Py`"]
Then mentioning the names all all symbols that will be available to the user
here (this is a side-effect of creating the usage message here in the example,
but you don't need to do this, listing the names of all symbols like Py,
PyReal, etc. is enough)
Then creating yet another sub-context with Begin (not BeginPackage, meaning all
symbols created there will be private)
Begin["Py`Private`"]
rest of the tm-file goes here
End[]
EndPackage[]
Finally, I think the Remove should be Remove["Py`Private`code"], not simply
Remove["code"]. But in this case it's maybe better not to remove anything at
all, after all code will be a private variable invisible to the user.
Thanks for a great package!
Original issue reported on code.google.com by [email protected]
on 16 Dec 2011 at 3:43
What steps will reproduce the problem?
1. Download Pythonika binary for MacOS and Python 2.6
2. Download Pythonika.nb example notebook
3. Adjust the path, execute first line
Get "LinkOpen::linke: ""Specified file is not a MathLink executable ""
Original issue reported on code.google.com by [email protected]
on 2 Mar 2011 at 12:33
The version of Makefile.linux included with SVN revision 4 fails to compile
Pythonika using Mathematica 8 on x86-64. With the following changes to the
Makefile (also provided as an attachment), compilation proceeds fine.
MATHEMATICA_INSTALL_DIR = /usr/local/Wolfram/Mathematica/8.0
SYS = Linux-x86-64
LIBS = -L${LIBDIR} ${LIBDIR}/libML64i3.a -lstdc++ -lrt
-lpython${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} -lm -lpthread
Original issue reported on code.google.com by [email protected]
on 16 Feb 2012 at 4:03
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.