flupke / pypotrace

Python bindings for potrace library
Other
166 stars 43 forks source link

cannot find reference to anything in pypotrace (can't import Bitmap) #22

Closed Liron-Toledo closed 5 years ago

Liron-Toledo commented 5 years ago

Hi there, I have been trying to install pypotrace on ubuntu for the better part of the day. I just cant seem to do it. I followed the instructions outlined in the readme and I'm not getting any errors or anything when i import it in python. My problem is that it doesn't contain anything. For intstance it cannot find a reference to Bitmap (or anything else for that matter) when I try to use it or import it. I'm not sure if this is a common error or if im being stupid but I feel like i've tried everything and still can't get it to work. Do you or anyone else have any suggestions?

Liron-Toledo commented 5 years ago

Thanks but still no luck. I am completely lost as to why this is happening.

On Thu, Jul 18, 2019 at 5:57 PM Luper Rouch notifications@github.com wrote:

Hi, you should give the py3k branch a try.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/flupke/pypotrace/issues/22?email_source=notifications&email_token=AHWPPD6ED22NQHFBQ7DJDF3QACHE7A5CNFSM4IE466GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2I6JEI#issuecomment-512877713, or mute the thread https://github.com/notifications/unsubscribe-auth/AHWPPDYHHCHLOXDOYHD7D43QACHE7ANCNFSM4IE466GA .

flupke commented 5 years ago

Please paste a copy of your terminal (the commands you type and their output)

Liron-Toledo commented 5 years ago

...$ sudo apt-get install build-essential python-dev libagg-dev libpotrace-dev pkg-config Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.4ubuntu1). libpotrace-dev is already the newest version (1.14-2). pkg-config is already the newest version (0.29.1-0ubuntu2). python-dev is already the newest version (2.7.15~rc1-1). libagg-dev is already the newest version (1:2.4-r127+dfsg1-1). 0 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.

...$ git clone https://github.com/flupke/pypotrace.git Cloning into 'pypotrace'... remote: Enumerating objects: 27, done. remote: Counting objects: 100% (27/27), done. remote: Compressing objects: 100% (20/20), done. remote: Total 263 (delta 8), reused 18 (delta 7), pack-reused 236 Receiving objects: 100% (263/263), 417.20 KiB | 279.00 KiB/s, done. Resolving deltas: 100% (109/109), done.

...$ cd pypotrace

.../pypotrace$ pip install numpy Collecting numpy Using cached https://files.pythonhosted.org/packages/1f/c7/198496417c9c2f6226616cff7dedf2115a4f4d0276613bab842ec8ac1e23/numpy-1.16.4-cp27-cp27mu-manylinux1_x86_64.whl Installing collected packages: numpy Successfully installed numpy-1.16.4

"Also tried pip installing requirements.txt"

.../pypotrace$ pip install . Processing /home/liron/PycharmProjects/img_aug_testing/pypotrace Installing collected packages: pypotrace Running setup.py install for pypotrace ... done Successfully installed pypotrace-0.1.4

.../pypotrace$ pip install '.[dev]' Processing /home/liron/PycharmProjects/img_aug_testing/pypotrace pypotrace 0.1.4 does not provide the extra 'dev' Installing collected packages: pypotrace Running setup.py install for pypotrace ... done Successfully installed pypotrace-0.1.4

.../pypotrace$ nosetests -v "got long error message"

.../pypotrace$ python setup.py build_ext --inplace "done to fix error messages"

.../pypotrace$ nosetests -v tests.test_basic.test_errors ... ok tests.test_basic.test_trace ... ok tests.test_basic.test_tree ... ok tests.test_bezier.test_tesselate ... ok


Ran 4 tests in 0.056s

OK

shortened folder path to make of terminal just to make things more neat but like i said i simply followed the instructions in the read me

On Thu, Jul 18, 2019 at 9:03 PM Luper Rouch notifications@github.com wrote:

Please paste a copy of your terminal (the commands you type and their output)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/flupke/pypotrace/issues/22?email_source=notifications&email_token=AHWPPD3GB7IF6A5OQOEODUDQAC5BFA5CNFSM4IE466GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JO7HI#issuecomment-512946077, or mute the thread https://github.com/notifications/unsubscribe-auth/AHWPPD5W6XCTEQC7P67H5ITQAC5BFANCNFSM4IE466GA .

flupke commented 5 years ago

Looks like it works then, if the tests pass.

Liron-Toledo commented 5 years ago

Ya you would think so but like i said it can't find a reference to anything that should be there. Very frustrating but this seems like a very unique problem. If you are unsure on how to approach it. I think ill just give up for now.

On Thursday, July 18, 2019, Luper Rouch notifications@github.com wrote:

Looks like it works then, if the tests pass.

Le jeu. 18 juil. 2019 à 21:32, Liron Toledo notifications@github.com a écrit :

...$ sudo apt-get install build-essential python-dev libagg-dev libpotrace-dev pkg-config Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.4ubuntu1). libpotrace-dev is already the newest version (1.14-2). pkg-config is already the newest version (0.29.1-0ubuntu2). python-dev is already the newest version (2.7.15~rc1-1). libagg-dev is already the newest version (1:2.4-r127+dfsg1-1). 0 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.

...$ git clone https://github.com/flupke/pypotrace.git Cloning into 'pypotrace'... remote: Enumerating objects: 27, done. remote: Counting objects: 100% (27/27), done. remote: Compressing objects: 100% (20/20), done. remote: Total 263 (delta 8), reused 18 (delta 7), pack-reused 236 Receiving objects: 100% (263/263), 417.20 KiB | 279.00 KiB/s, done. Resolving deltas: 100% (109/109), done.

...$ cd pypotrace

.../pypotrace$ pip install numpy Collecting numpy Using cached

https://files.pythonhosted.org/packages/1f/c7/ 198496417c9c2f6226616cff7dedf2115a4f4d0276613bab842ec8ac1e23 /numpy-1.16.4-cp27-cp27mu-manylinux1_x86_64.whl Installing collected packages: numpy Successfully installed numpy-1.16.4

"Also tried pip installing requirements.txt"

.../pypotrace$ pip install . Processing /home/liron/PycharmProjects/img_aug_testing/pypotrace Installing collected packages: pypotrace Running setup.py install for pypotrace ... done Successfully installed pypotrace-0.1.4

.../pypotrace$ pip install '.[dev]' Processing /home/liron/PycharmProjects/img_aug_testing/pypotrace pypotrace 0.1.4 does not provide the extra 'dev' Installing collected packages: pypotrace Running setup.py install for pypotrace ... done Successfully installed pypotrace-0.1.4

.../pypotrace$ nosetests -v "got long error message"

.../pypotrace$ python setup.py build_ext --inplace "done to fix error messages"

.../pypotrace$ nosetests -v tests.test_basic.test_errors ... ok tests.test_basic.test_trace ... ok tests.test_basic.test_tree ... ok tests.test_bezier.test_tesselate ... ok


Ran 4 tests in 0.056s

OK

shortened folder path to make of terminal just to make things more neat but like i said i simply followed the instructions in the read me

On Thu, Jul 18, 2019 at 9:03 PM Luper Rouch notifications@github.com wrote:

Please paste a copy of your terminal (the commands you type and their output)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/flupke/pypotrace/issues/22?email_ source=notifications&email_token=AHWPPD3GB7IF6A5OQOEODUDQAC5BFA 5CNFSM4IE466GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5 WW2ZLOORPWSZGOD2JO7HI#issuecomment-512946077 , or mute the thread < https://github.com/notifications/unsubscribe-auth/ AHWPPD5W6XCTEQC7P67H5ITQAC5BFANCNFSM4IE466GA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/flupke/pypotrace/issues/22?email_ source=notifications&email_token=AABOEIWT3SHLUQLKEIGE5RDQADAMBA 5CNFSM4IE466GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5 WW2ZLOORPWSZGOD2JRKOQ#issuecomment-512955706, or mute the thread https://github.com/notifications/unsubscribe-auth/ AABOEISIR4BKQNIPK5IBNK3QADAMBANCNFSM4IE466GA .

-- Luper Rouch

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/flupke/pypotrace/issues/22?email_source=notifications&email_token=AHWPPD3N624LOLNOUSDJSSDQADD3BA5CNFSM4IE466GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2JTZ6A#issuecomment-512965880, or mute the thread https://github.com/notifications/unsubscribe-auth/AHWPPDY5G2RC3YMHWOLSBUDQADD3BANCNFSM4IE466GA .