Giter Club home page Giter Club logo

aggdraw-64bits's People

Contributors

gnarea avatar scottopell avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

mattseymour

aggdraw-64bits's Issues

ASAN issues: Sized new mismatch with unsized delete

Using new PointF[size] with delete ptr, but shouldn't it be delete[] ptr ?

Here is what I am seeing, I have anonymized using ????

==2191027==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new [] vs operator delete) on 0x61800013e480
SCARINESS: 10 (alloc-dealloc-mismatch)
    #0 0x7f599ec100b0 in operator delete(void*) (????)
    #1 0x7f597d6b0187 in draw_line(DrawObject*, _object*) aggdraw-1.1-64bits/aggdraw.cxx:808
...
 0x61800013e480 is located 0 bytes inside of 808-byte region [0x61800013e480,0x61800013e7a8)
allocated by thread T0 here:
    #0 0x7f599ec0f4e8 in operator new[](unsigned long) (????)
    #1 0x7f597d6acea1 in getpoints(_object*, int*) aggdraw-1.1-64bits/aggdraw.cxx:582
    #2 0x7f597d6b004f in draw_line(DrawObject*, _object*) aggdraw-1.1-64bits/aggdraw.cxx:801

Error when executing setup.py

My system

Windows 7 Ultimate 64 bit

Python 2.7.15
pip 10.0.1 from c:\python27\lib\site-packages\pip (python 2.7)

Installed the following modules already (I'm trying to use manim)

Package       Version
------------- -------
colour        0.1.2
numpy         1.11.1
opencv-python 3.1.0.0
Pillow        3.4.2
pip           10.0.1
progressbar   2.3
scipy         0.17.1
setuptools    39.0.1
tqdm          4.7.1`

The problem

I'm having trouble when executing setup.py. The following message is what I get.


=== freetype support disabled
running install
running build
running build_ext
building 'aggdraw' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -Iagg2/include -IC:\Python27\include -IC:\Python27\P
C /Tpaggdraw.cxx /Fobuild\temp.win-amd64-2.7\Release\aggdraw.obj
aggdraw.cxx
c:\python27\include\pyconfig.h(239) : fatal error C1083: Cannot open include fil
e: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\a
md64\\cl.exe' failed with exit status 2

C:\Python27\aggdraw-64bits-master>python setup.py install
=== freetype support disabled
running install
running build
running build_ext
building 'aggdraw' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -Iagg2/include -IC:\Python27\include -IC:\Python27\P
C /Tpaggdraw.cxx /Fobuild\temp.win-amd64-2.7\Release\aggdraw.obj
aggdraw.cxx
**c:\python27\include\pyconfig.h(239) : fatal error C1083: Cannot open include fil
e: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\a
md64\\cl.exe' failed with exit status 2**

What I have tried to fix it

I have downloaded and installed both Microsoft Visual C++ 2008 Express (this one) and Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1 (this one).

Made a new renamed copy of ...\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to ...\VC\bin\amd64\vcvarsamd64.bat.

Added C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin to PATH.

Then
C:\Python27\aggdraw-64bits-master>python setup.py install and got the error you saw above

problem with setup.py

Hi,
I'm struggling to install aggdraw-64 for like a week but I still get a bunch of nonsense error!
could you please help me with this or lead me somewhere I could find the answer?
capture

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
aggdraw.cxx:114:1: error: invalid conversion from ‘const char*’ to ‘Py_ssize_t {aka long int}’ [-fpermissive]
 };
 ^
aggdraw.cxx:114:1: error: invalid conversion from ‘destructor {aka void (*)(_object*)}’ to ‘printfunc {aka int (*)(_object*, _IO_FILE*, int)}’ [-fpermissive]
aggdraw.cxx:114:1: error: invalid conversion from ‘getattrfunc {aka _object* (*)(_object*, char*)}’ to ‘setattrfunc {aka int (*)(_object*, char*, _object*)}’ [-fpermissive]
aggdraw.cxx:132:1: error: invalid conversion from ‘const char*’ to ‘Py_ssize_t {aka long int}’ [-fpermissive]
 };
 ^

Change prints to support python 3

When you are on a system that prefers python3 by default its a real pain to run things in python2.

Fixing this problem is as easy as changing print to print(. The vast majority of packages build succesfully without this problem because most packages have gotten up to date. It's very important that we recognize open print as an anti pattern because it can break entire builds with just one package failing to conform to the positive pattern.

Unable to find vcvarsall.bat (but it is there)

I have this problem:

C:\Users\HOMER\Desktop\agg\aggdraw-64bits>python setup.py build_ext -i
=== freetype support disabled
running build_ext
building 'aggdraw' extension
error: Unable to find vcvarsall.bat

C:\Users\HOMER\Desktop\agg\aggdraw-64bits>where vcvarsall.bat
C:\Users\HOMER\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat

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.