0% found this document useful (0 votes)
4 views

connectivity coding

The document outlines the process of setting up a Python project for an Event Management System on a Windows machine, including the installation of necessary packages like PyInstaller and Flask. It details the execution of a script that creates a database and tables, as well as the building of a command-line interface application into an executable. Additionally, it describes running a Flask web application with a warning about its use in a production environment.

Uploaded by

Shreeya
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

connectivity coding

The document outlines the process of setting up a Python project for an Event Management System on a Windows machine, including the installation of necessary packages like PyInstaller and Flask. It details the execution of a script that creates a database and tables, as well as the building of a command-line interface application into an executable. Additionally, it describes running a Flask web application with a warning about its use in a production environment.

Uploaded by

Shreeya
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Microsoft Windows [Version 10.0.19045.

4651]
(c) Microsoft Corporation. All rights reserved.

C:\Users\hp>python --version
Python 3.12.5

C:\Users\hp>cd documents

C:\Users\hp\Documents>cd python project

C:\Users\hp\Documents\python project>main.py
Database and tables created successfully.

C:\Users\hp\Documents\python project>main.py
Database and tables created successfully.

Event Management System


1. Add Event
2. Add Attendee
3. View Events
4. View Attendees for Event
5. Exit
Enter your choice: 1Traceback (most recent call last):
File "C:\Users\hp\Documents\python project\main.py", line 113, in <module>
main()
File "C:\Users\hp\Documents\python project\main.py", line 83, in main
choice = input("Enter your choice: ")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
^C
C:\Users\hp\Documents\python project>pip install pyinstaller
Collecting pyinstaller
Downloading pyinstaller-6.10.0-py3-none-win_amd64.whl.metadata (8.3 kB)
Collecting setuptools>=42.0.0 (from pyinstaller)
Downloading setuptools-72.2.0-py3-none-any.whl.metadata (6.6 kB)
Collecting altgraph (from pyinstaller)
Downloading altgraph-0.17.4-py2.py3-none-any.whl.metadata (7.3 kB)
Collecting pyinstaller-hooks-contrib>=2024.8 (from pyinstaller)
Downloading pyinstaller_hooks_contrib-2024.8-py3-none-any.whl.metadata (16 kB)
Collecting packaging>=22.0 (from pyinstaller)
Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting pefile>=2022.5.30 (from pyinstaller)
Downloading pefile-2023.2.7-py3-none-any.whl.metadata (1.4 kB)
Collecting pywin32-ctypes>=0.2.1 (from pyinstaller)
Downloading pywin32_ctypes-0.2.3-py3-none-any.whl.metadata (3.9 kB)
Downloading pyinstaller-6.10.0-py3-none-win_amd64.whl (1.3 MB)
---------------------------------------- 1.3/1.3 MB 1.4 MB/s eta 0:00:00
Downloading packaging-24.1-py3-none-any.whl (53 kB)
Downloading pefile-2023.2.7-py3-none-any.whl (71 kB)
Downloading pyinstaller_hooks_contrib-2024.8-py3-none-any.whl (322 kB)
Downloading pywin32_ctypes-0.2.3-py3-none-any.whl (30 kB)
Downloading setuptools-72.2.0-py3-none-any.whl (2.3 MB)
---------------------------------------- 2.3/2.3 MB 1.8 MB/s eta 0:00:00
Downloading altgraph-0.17.4-py2.py3-none-any.whl (21 kB)
Installing collected packages: altgraph, setuptools, pywin32-ctypes, pefile,
packaging, pyinstaller-hooks-contrib, pyinstaller
Successfully installed altgraph-0.17.4 packaging-24.1 pefile-2023.2.7 pyinstaller-
6.10.0 pyinstaller-hooks-contrib-2024.8 pywin32-ctypes-0.2.3 setuptools-72.2.0
C:\Users\hp\Documents\python project>
C:\Users\hp\Documents\python project>pyinstaller --onefile event_management_cli.py
960 INFO: PyInstaller: 6.10.0, contrib hooks: 2024.8
964 INFO: Python: 3.12.5
1048 INFO: Platform: Windows-10-10.0.19045-SP0
1050 INFO: Python environment: C:\Users\hp\AppData\Local\Programs\Python\Python312
1053 INFO: wrote C:\Users\hp\Documents\python project\event_management_cli.spec
1085 INFO: Module search paths (PYTHONPATH):
['C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\
pyinstaller.exe',
'C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python312\\python312.zip',
'C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python312\\DLLs',
'C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python312\\Lib',
'C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python312',
'C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages',
'C:\\Users\\hp\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\
setuptools\\_vendor',
'C:\\Users\\hp\\Documents\\python project']
1940 INFO: checking Analysis
1942 INFO: Building Analysis because Analysis-00.toc is non existent
1943 INFO: Running Analysis Analysis-00.toc
1946 INFO: Target bytecode optimization level: 0
1947 INFO: Initializing module dependency graph...
1970 INFO: Caching module graph hooks...
2166 INFO: Analyzing base_library.zip ...
5294 INFO: Processing standard module hook 'hook-heapq.py' from 'C:\\Users\\hp\\
AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\PyInstaller\\
hooks'
6731 INFO: Processing standard module hook 'hook-encodings.py' from 'C:\\Users\\
hp\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\PyInstaller\\
hooks'
11512 INFO: Processing standard module hook 'hook-pickle.py' from 'C:\\Users\\hp\\
AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\PyInstaller\\
hooks'
18535 INFO: Caching module dependency graph...
18928 INFO: Looking for Python shared library...
18958 INFO: Using Python shared library: C:\Users\hp\AppData\Local\Programs\Python\
Python312\python312.dll
18962 INFO: Analyzing C:\Users\hp\Documents\python project\event_management_cli.py
18981 INFO: Processing standard module hook 'hook-sqlite3.py' from 'C:\\Users\\hp\\
AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\PyInstaller\\
hooks'
20205 INFO: Processing module hooks (post-graph stage)...
20348 INFO: Performing binary vs. data reclassification (2 entries)
20418 INFO: Looking for ctypes DLLs
20434 INFO: Analyzing run-time hooks ...
20440 INFO: Including run-time hook 'pyi_rth_inspect.py' from 'C:\\Users\\hp\\
AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\PyInstaller\\
hooks\\rthooks'
20456 INFO: Looking for dynamic libraries
21089 INFO: Extra DLL search directories (AddDllDirectory): []
21092 INFO: Extra DLL search directories (PATH): []
21505 INFO: Warnings written to C:\Users\hp\Documents\python project\build\
event_management_cli\warn-event_management_cli.txt
21585 INFO: Graph cross-reference written to C:\Users\hp\Documents\python project\
build\event_management_cli\xref-event_management_cli.html
21652 INFO: checking PYZ
21655 INFO: Building PYZ because PYZ-00.toc is non existent
21655 INFO: Building PYZ (ZlibArchive) C:\Users\hp\Documents\python project\build\
event_management_cli\PYZ-00.pyz
22489 INFO: Building PYZ (ZlibArchive) C:\Users\hp\Documents\python project\build\
event_management_cli\PYZ-00.pyz completed successfully.
22563 INFO: checking PKG
22571 INFO: Building PKG because PKG-00.toc is non existent
22572 INFO: Building PKG (CArchive) event_management_cli.pkg
27925 INFO: Building PKG (CArchive) event_management_cli.pkg completed
successfully.
27934 INFO: Bootloader C:\Users\hp\AppData\Local\Programs\Python\Python312\Lib\
site-packages\PyInstaller\bootloader\Windows-64bit-intel\run.exe
27937 INFO: checking EXE
27939 INFO: Building EXE because EXE-00.toc is non existent
27940 INFO: Building EXE from EXE-00.toc
27941 INFO: Copying bootloader EXE to C:\Users\hp\Documents\python project\dist\
event_management_cli.exe
28152 INFO: Copying icon to EXE
28287 INFO: Copying 0 resources to EXE
28294 INFO: Embedding manifest in EXE
28388 INFO: Appending PKG archive to EXE
28424 INFO: Fixing EXE headers
28886 INFO: Building EXE from EXE-00.toc completed successfully.

C:\Users\hp\Documents\python project\dist>pip install flask


Collecting flask
Downloading flask-3.0.3-py3-none-any.whl.metadata (3.2 kB)
Collecting Werkzeug>=3.0.0 (from flask)
Downloading werkzeug-3.0.3-py3-none-any.whl.metadata (3.7 kB)
Collecting Jinja2>=3.1.2 (from flask)
Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting itsdangerous>=2.1.2 (from flask)
Downloading itsdangerous-2.2.0-py3-none-any.whl.metadata (1.9 kB)
Collecting click>=8.1.3 (from flask)
Downloading click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting blinker>=1.6.2 (from flask)
Downloading blinker-1.8.2-py3-none-any.whl.metadata (1.6 kB)
Collecting colorama (from click>=8.1.3->flask)
Downloading colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting MarkupSafe>=2.0 (from Jinja2>=3.1.2->flask)
Downloading MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl.metadata (3.1 kB)
Downloading flask-3.0.3-py3-none-any.whl (101 kB)
Downloading blinker-1.8.2-py3-none-any.whl (9.5 kB)
Downloading click-8.1.7-py3-none-any.whl (97 kB)
Downloading itsdangerous-2.2.0-py3-none-any.whl (16 kB)
Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
Downloading werkzeug-3.0.3-py3-none-any.whl (227 kB)
Downloading MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl (17 kB)
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: MarkupSafe, itsdangerous, colorama, blinker,
Werkzeug, Jinja2, click, flask
Successfully installed Jinja2-3.1.4 MarkupSafe-2.1.5 Werkzeug-3.0.3 blinker-1.8.2
click-8.1.7 colorama-0.4.6 flask-3.0.3 itsdangerous-2.2.0

C:\>cd users

C:\Users>cd hp
C:\Users\hp>cd document
The system cannot find the path specified.

C:\Users\hp>cd documents

C:\Users\hp\Documents>mkdir event_management_web

C:\Users\hp\Documents>cd event_management_web

C:\Users\hp\Documents\event_management_web>mkdir templates

C:\Users\hp\Documents\event_management_web>python app.py
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 285-506-699

You might also like