Giter Club home page Giter Club logo

pythonika's People

Contributors

erocarrera avatar wesen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pythonika's Issues

Makefile.linux incompatible with x86-64, Mathematica 8.

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:

Mac OS X 10.9.5 Mathematica 9 + homebrew Python 2.7 32 bit

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

Pythonika symbols are not localized, might overwrite user-defined Global` symbols

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

Documentation/makefile needs clarity around OSX framework

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

Encoding problem

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

no Makefile

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

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.