Dev Shed Forums - Python Programming http://forums.devshed.com/ Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language. en Sun, 27 May 2018 19:48:10 GMT vBulletin 60 http://forums.devshed.com/images/misc/rss.png Dev Shed Forums - Python Programming http://forums.devshed.com/ <![CDATA[[Python + PIP] Failed to install Pylygon, help need!]]> http://forums.devshed.com/python-programming/980653-python-pip-failed-install-pylygon-help-new-post.html Mon, 21 May 2018 16:54:53 GMT Hey Python Programmers..., I want to install pylygon (https://pypi.org/project/pylygon/), just i need for create high complex polygons with called collision detection. I try to install it with this command: ---Quote--- pip install pylygon ---End Quote--- But if i try to installed, i get the following error yet: Hey Python Programmers...,

I want to install pylygon, just i need for create high complex polygons with called collision detection.
I try to install it with this command:
Quote:

pip install pylygon
But if i try to installed, i get the following error yet:

Quote:

Microsoft Windows [versie 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.

C:\Users\JamieVanCadsand>pip install pylygon
Requirement already satisfied: pylygon in c:\program files (x86)\python36-32\lib
\site-packages (1.3.2rc0)
monty 1.0.2 requires six, which is not installed.
C:\Users\JamieVanCadsand>

So in the future, maby i want use this to create an high complex polygonal voxel engine,
use Fake 3D Techniques.... but install some python packages will not works, somtimes...
So whats wrong with pylygon, can anyone help me to fix this problem ?...

Thanks for help, Jamie. ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-pip-failed-install-pylygon-help-980653.html
<![CDATA[[Cellular Data Analyse] Failed to install PySCeS, help need!]]> http://forums.devshed.com/python-programming/980628-cellular-data-analyse-failed-install-pysces-help-new-post.html Wed, 16 May 2018 17:12:56 GMT Hey Python Programmers... Now i think i get found the just python package for organic, biologic and cellular data analyse, i needs to write advanced software for scense receptoric cellular tkinter applications they i want to plans for round 2019, just my python project, called for the next year yet... Link: PySCeS PyPi (https://pypi.org/project/PySCeS/#description) Now i want to... Hey Python Programmers...

Now i think i get found the just python package for organic, biologic and cellular data analyse,
i needs to write advanced software for scense receptoric cellular tkinter applications they i want
to plans for round 2019, just my python project, called for the next year yet...

Link: PySCeS PyPi

Now i want to install it for my 32-bit python IDLE (even i use PyScripter for serious work),
so do thad via the pip command on windows 7 yet....

This is the pip command i use to run the command as administrator:
Quote:

pip install PySCeS
but if i try to install PySCeS, i get the following error, and this works fustrated:
The error i get:
Quote:

Microsoft Windows [versie 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle rechten voorbehouden.

C:\windows\system32>pip install PySCeS
Collecting PySCeS
Using cached https://files.pythonhosted.org/packa...b4f3ecd0ef24e6
4ce97f9fb91b0edb61febd41bcd2cad4ba1a9cfe3/pysces-0.9.6.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\GEBRUI~1\AppData\Local\Temp\pip-install-_s2ymwp_\PySCeS\set
up.py", line 29
print 'Building an egg? %s.' % FRYING_EGGS
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Bui
lding an egg? %s.' % FRYING_EGGS)?

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\GEBRUI~1
\AppData\Local\Temp\pip-install-_s2ymwp_\PySCeS\

C:\windows\system32>
So i need help, to fix this problem yet... it is just, thad i need this package for program
my sciensific analyse software, i want to write for nature sciense interessed, just make
it possible to analyse organic and receptorical cell function-cohesions and discovering
sciensifical theories...

I use an 32-bit version of python 3.x and even i get upgrade pip, but no.... PySCeS will not
installed succesfully, just i need help to understand whats the problem yet...

Thanks for help to fix this problem, Jamie... ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/cellular-data-analyse-failed-install-pysces-help-980628.html
Sciencesific Data Analytics / Python Anatomy Package Search..., help need... http://forums.devshed.com/python-programming/980622-sciencesific-data-analytics-python-anatomy-package-search-help-new-post.html Tue, 15 May 2018 16:12:39 GMT Hey Python science data Programmers,

I try to find an python package for Python 3.x, to analyse anatomic
and sensorical data, for analysing as example how scenses or
motorics works and then to see the result yet...

I am Searching, but I don't find the perfect python package for the
just data analytics.....

No idea wich python package I do need for anatomic and sensoric
data analytics...

Can anyone help me to find the just python package ?...,
Thanks for help, Jamie. ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/sciencesific-data-analytics-python-anatomy-package-search-help-980622.html
<![CDATA[[Python + DLL] Failed to import DLL (or CDLL), help needed!]]> http://forums.devshed.com/python-programming/980599-python-dll-failed-import-dll-cdll-help-new-post.html Wed, 09 May 2018 17:22:55 GMT #include "stdafx.h" #include "Windows.h"]]> Hey Python Programmers...

I get writted an dll (or clib) for python, to test if it works...
So here is my clib, writted in Dev C++ yet:
Code:

#include <iostream>
#include "stdafx.h"
#include "Windows.h"

#define LIBDLL extern "C" __declspec(dllexport)

LIBDLL int ml_pixel(int x, int y) {
        return x * y;
}

LIBDLL int ml_voxel(int x, int y, int z) {
        return x * y * z;
}

LIBDLL int ml_px(int x) {
        return x;
}

LIBDLL int ml_py(int y) {
        return y;
}

LIBDLL int ml_pz(int z) {
        return z;
}


And here is my python code, writted in python 3.x yet (looks like this):
Code:

from ctypes import *
myDLL = cdll.LoadLibrary("c:\\Menar.dll")
w = myDLL.ml_pixel(5, 5)

print(w);


If i run my script, this is the error i get:
Quote:

Traceback (most recent call last):
File "C:\Users\Gebruiker\Desktop\dllTest\Library\pyDLLTest.py", line 2, in <module>
myDLL = cdll.LoadLibrary("c:\\Menar.dll")
File "C:\Program Files (x86)\Python36-32\lib\ctypes\__init__.py", line 426, in LoadLibrary
return self._dlltype(name)
File "C:\Program Files (x86)\Python36-32\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] Kan opgegeven module niet vinden
>>>

I am just learn C++ so i can create DLLs for programmers so they can extand as example
python if it doesn't get the just support they are wish... i want learn C++ to extend the python
support if it works fast for big 3D Applications yet...

So can anyone tell me whats wrong with my simple DLL or with my Python Code,
just i can learn about this how i can program it better for real time use...

So this is an simple test to starts with learn writting DLLs yet... Later i want learn
write complex and fast 3D Library(s) in called Ray Traced and Sciensifical Applications
as called VR and 3D-Printing yet..

So can anyone fix my problem with importing my DLL, i get written in Dev C++ ?...,
Thanks for help, Jamie. ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-dll-failed-import-dll-cdll-help-980599.html
<![CDATA[[Python 3.x + DLLs] Writing DLLs for Big 3D Applications, Fast ?...]]> http://forums.devshed.com/python-programming/980597-python-3-dlls-writing-dlls-3d-applications-fast-new-post.html Wed, 09 May 2018 12:47:44 GMT Hey Python Programmers and Application Writers...,

I do know, thad the thirth party python packages sush like pyOpenGL aren't very fast
in 3D Preformence, but i am learn C++ for maby create DLL's for big applications
in as example python and other languales...

So now i get an question about writting and using 3D DLLs yet, at follow:
- Are using "Real Time 3D DLLs" in "Python 2.7/3.x" fast in 3D Graphic Preformence ?...

I want to know if it works fast at 3d-graphic preformence and whats the best way to write
fast 3d applications in python 3.x and future versions yet!...

Thanks for answere my question yet, Jamie.... ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-3-dlls-writing-dlls-3d-applications-fast-980597.html
<![CDATA[[Python 3.x + DLL] Use DLLs in Python, How ?...]]> http://forums.devshed.com/python-programming/980580-python-3-dll-dlls-python-new-post.html Mon, 07 May 2018 20:07:54 GMT Hey Python Extanders and Programmers...

With wich lib can I import DLLs to Extend python,
So I can get use these to write big applications with python
and tkinter ?... as make dll's in C++ and my question is
to import then in python for if i want learn make DLLs for
Python and other languales.... maby I can start with
Searching youtube tutorials to learn it from scratch...

So for thad, i want to know how I can import them in python
yet.... I use python 3.x and pyScripter. ...

Thanks for help, Jamie.... ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-3-dll-dlls-python-980580.html
<![CDATA[[Python 3 + Tkinter] Progressbar works not correctly, help needed!]]> http://forums.devshed.com/python-programming/980525-python-3-tkinter-progressbar-correctly-help-new-post.html Sat, 28 Apr 2018 06:44:26 GMT Hey Python Programmers and GUI Envolvers....,

I try to create an progressbar thad load an serie of numbers (called i) in an for loop...,
but it don't works correctly yet...


This is my script, writted in python 3, pyScripter:
Code:

from tkinter import *
from tkinter.ttk import *

class Window(Frame):
    def __init__(self, master=None):
        Frame.__init__(self, master)
        self.master = master
        self.init_window()

    def init_window(self):
        self.master.title('Loading Bar')
        self.b = Button(self.master, text = 'Press to Range', command = self.loadBar)
        self.b.pack(fill = X, side = TOP)
        self.pb = Progressbar(self.master, length = 12, orient = HORIZONTAL, takefocus = True)

        self.l = Label(self.master)
        self.l.pack(fill = X, side = BOTTOM)

    def loadBar(self):
        r = 400
        for i in range(r):
            self.pb.pack(fill = X, side = TOP)
            self.l.config(text = str(i))
            self.pb.start()
            self.pb.step(i)
            self.pb.update()

        self.pb.stop()



if __name__ == "__main__":
    root = Tk()
    app = Window(root)
    app.mainloop()

I want thad my progressbar load the numbers one times (like an real loading bar yet), but
it load per/number again, number for number.... i want that it load one times with all numbers...
But my progressbar starts again by each number...

Can anyone correct my code, just i hope learn about program an normally progressbar, thad
load one times for all numbers yet ?.... Thanks for help, Jamie. ]]>
Python Programming JamieVanCadsand http://forums.devshed.com/python-programming-11/python-3-tkinter-progressbar-correctly-help-980525.html