Closed Syr3L closed 5 years ago
Hi,
I cannot reproduce your error. I'm running it on elementary OS Loki (built on top of Ubuntu 16.04) with python 3.6.1. Can you run this command in your terminal and copy-paste the results here: python -V
. I'm pretty sure that you're using python 2.7.X and it seems that the code only works with python3.
I just lanched the code using python 2.7.12 and I received the following error:
Traceback (most recent call last):
File "examples.py", line 19, in <module>
image = camogen.generate(parameters)
File "/home/gayouf/Documents/Other/camogen/camogen/generate.py", line 167, in generate
starting_polygon.add_vertices(first_vertices)
File "/home/gayouf/Documents/Other/camogen/camogen/polygon.py", line 68, in add_vertices
raise ValueError("Element should be of the class Vertex")
ValueError: Element should be of the class Vertex
It seems to be the error you got before updating the error message.
For the moment, I suggest you to install python3 and use this version to run the code. If you need help to install it, tell me. I'll add a TODO to update the code in order to make it work with python2.
Best
You where right its Python 2.7.12 interesting - and i also suspected a wrong verson of python (suspected i have to youse an older version thou) I give python3 a go and give you the results
strange ...
apt install python3 says this: python3 is already the newest version (3.5.1-3).
EDIT:
ok I removed python 2.7 made apt autoremove installed numpy with pip installed images with pip
now its all working!!
thanks man you are awesome
Hi!
When i execute the examples.py (also checked if it changes if i give all the files +x rights but it does not help at all)
here is a putty extract of the errors i get:
I've modified the errorValue to print the contents of v, vs and the type to get an idea of whats happening
I'm not familiar with python at all so if you could tell me whats wrong would be apprichiated
Setup is: Ubuntu 16.04 LTS Linux OS Installed Numpy like described in their Installation Documentation with a Debian / Ubuntu Arch using apt as Package-Manager
for me it seems it can't get a hold of the contents of the variables
Am I missing something?