Giter Site home page Giter Site logo

httrack-py's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

httrack-py's Issues

Httrack locks threads.

What steps will reproduce the problem?

class T(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)

    def run(self):
        print "Starting thread: %s" % self.getName()
        httracklib.httrack(..)

for i in xrange(5):
    t = T()
    t.start()


What is the expected output? What do you see instead?

Starting thread: Thread-1
Starting thread: Thread-2
Starting thread: Thread-3
Starting thread: Thread-4
Starting thread: Thread-5

and instead i'm getting Starting thread: Thread-1 (and locks here until
httracklib finish)...

What version of the product are you using? On what operating system?
SVN head. Linux 2.6.23.

Please provide any additional information below.

There is any way to start many instances?

Original issue reported on code.google.com by [email protected] on 23 Jan 2008 at 1:30

Pip install fails on ubuntu 14.04

Compilation fails with error about missing "httrack-library.h".
I installed libhttrack-dev and libhttrack2.
I think the problem is the missing import of /usr/include/httrack, where 
httrack-library.h is located.

$ sudo pip install httrack-py
Downloading/unpacking httrack-py
  Downloading httrack-py-0.6.1.tar.gz
  Running setup.py (path:/tmp/pip_build_root/httrack-py/setup.py) egg_info for package httrack-py

Installing collected packages: httrack-py
  Running setup.py install for httrack-py
    building 'httracklib' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/home/petri/downloads/httrack-source -I/home/petri/downloads/httrack-source/src -I/usr/include -I/usr/include/python2.7 -I/usr/include/python2.7 -c src/httrack-py.c -o build/temp.linux-x86_64-2.7/src/httrack-py.o
    src/httrack-py.c:45:29: fatal error: httrack-library.h: No such file or directory
     #include "httrack-library.h"
                                 ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/httrack-py/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-dsOIkq-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_py

creating build

creating build/lib.linux-x86_64-2.7

copying httrack.py -> build/lib.linux-x86_64-2.7

running build_ext

building 'httracklib' extension

creating build/temp.linux-x86_64-2.7

creating build/temp.linux-x86_64-2.7/src

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 
-Wall -Wstrict-prototypes -fPIC -I/home/petri/downloads/httrack-source 
-I/home/petri/downloads/httrack-source/src -I/usr/include 
-I/usr/include/python2.7 -I/usr/include/python2.7 -c src/httrack-py.c -o 
build/temp.linux-x86_64-2.7/src/httrack-py.o

src/httrack-py.c:45:29: fatal error: httrack-library.h: No such file or 
directory

 #include "httrack-library.h"

                             ^


Original issue reported on code.google.com by [email protected] on 12 Sep 2014 at 8:21

httrack-py doesn't compile with httrack 3.4x

i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC
-I/usr/local/src/httrack-3.42.1 -I/usr/local/src/httrack-3.42.1/src
-I/usr/include/httrack -I/usr/include/python2.5
-I/usr/local/src/httrack-3.42.1 -I/usr/include/python2.5 -c
src/httrack-py.c -o build/temp.linux-i686-2.5/src/httrack-py.o
src/httrack-py.c: In function 'initialize':
src/httrack-py.c:300: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:300: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:300: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:306: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:306: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:306: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:307: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:307: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:307: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:308: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:308: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:308: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:309: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:309: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:309: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:310: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:310: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:310: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:312: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:312: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:312: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:313: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:313: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:313: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:314: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:314: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:314: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:315: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:315: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:315: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:316: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:316: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:316: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:317: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:317: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:317: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:318: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:318: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:318: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:319: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:319: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:319: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:320: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:320: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:320: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:321: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:321: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:321: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:322: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:322: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:322: error: too few arguments to function 'htswrap_add'
src/httrack-py.c:323: warning: passing argument 1 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:323: warning: passing argument 2 of 'htswrap_add' from
incompatible pointer type
src/httrack-py.c:323: error: too few arguments to function 'htswrap_add'
src/httrack-py.c: In function 'set_option_dict':
src/httrack-py.c:759: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:762: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:763: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:764: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:765: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:766: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:767: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:781: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:803: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:806: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:807: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:810: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c:811: error: incompatible type for argument 1 of
'PyString_FromString'
src/httrack-py.c: In function 'get_option_dict':
src/httrack-py.c:854: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:857: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:858: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:859: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:860: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:861: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:862: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:876: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:890: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:893: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:894: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:897: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c:898: error: incompatible type for argument 1 of 'strncpy'
src/httrack-py.c: In function 'setup_lien_back':
src/httrack-py.c:1330: error: 'lien_back' has no member named 'pass2_ptr'
src/httrack-py.c:1331: error: 'lien_back' has no member named 'pass2_ptr'
src/httrack-py.c: In function 'hts_py_hts_main':
src/httrack-py.c:2035: error: too few arguments to function 'hts_errmsg'
error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1

Original issue reported on code.google.com by [email protected] on 23 Jan 2008 at 1:36

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.