python-django-exporting-files's People
Forkers
th3chainrule carocha praneethkumarpidugu ruslanec jonnycrunch papemakhou vishaltaj hernanramirez alexabruck cuahutli madamady saghirgithub gustavo17 turpure maltitco xiwen5566 nkirui umarmughal824 pngimbwa sdglobe anderlinares doraemon918 heidihoge thereseayad trivedisorabh manoj-singh-developer eritru elwan nikolas-dev kuncao celine31 gunthermarais wecodethis yudevan juandisay mavegator papel024443python-django-exporting-files's Issues
Error: Whenever I am trying to download the excel sheet. I am getting an error saying Type Error.
LINK: http://127.0.0.1:8000/weather/history/
TypeError at /weather/history/
unsupported operand type(s) for -: 'NoneType' and 'NoneType'
Request Method: POST
Request URL: http://127.0.0.1:8000/weather/history/
Django Version: 1.8
Exception Type: TypeError
Exception Value:
unsupported operand type(s) for -: 'NoneType' and 'NoneType'
Exception Location: /Users/Desktop/virtualenv/lib/python2.7/site-packages/xlsxwriter/worksheet.py in _isinf, line 4517
Python Executable: /Users/avinash.af.kumar/Desktop/virtualenv/bin/python
Python Version: 2.7.10
Python Path:
['/Users/Desktop/python-django-exporting-files-master',
'/Users/Desktop/virtualenv/lib/python27.zip',
'/Users/Desktop/virtualenv/lib/python2.7',
'/Users/Desktop/virtualenv/lib/python2.7/plat-darwin',
'/Users/Desktop/virtualenv/lib/python2.7/plat-mac',
'/Users/Desktop/virtualenv/lib/python2.7/plat-mac/lib-scriptpackages',
'/Users/Desktop/virtualenv/lib/python2.7/lib-tk',
'/Users/Desktop/virtualenv/lib/python2.7/lib-old',
'/Users/Desktop/virtualenv/lib/python2.7/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/Users/Desktop/virtualenv/lib/python2.7/site-packages']
Server time: Thu, 20 Oct 2016 07:04:07 +0000
Please help me fix this error. Thanks in advance.
EnvironmentError: mysql_config not found
Hi,
I tried to install requirements.txt but I got the following traceback
Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 1))
Collecting MySQL-python==1.2.5 (from -r requirements.txt (line 2))
Downloading MySQL-python-1.2.5.zip (108kB)
100% |################################| 110kB 841kB/s
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "", line 20, in
File "/tmp/pip-build-d7FZTz/MySQL-python/setup.py", line 17, in
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: 1: mysql_config: not found
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/tmp/pip-build-d7FZTz/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-d7FZTz/MySQL-python
Does it require any particular python version like 2.7 or 3.4 ?
TTF Error
Hi
Whenever i try to run this program, i got an error TTF Error,
Request Method: | GET |
---|---|
http://127.0.0.1:8000/ | |
1.8.2 | |
TTFError | |
Can't open file "C:/static/fonts/FreeSansBold.ttf" | |
C:\Users\Jasnoor\Documents\api\python-django-exporting-files\ExportingFiles\lib\site-packages\reportlab\pdfbase\ttfonts.py in TTFOpenFile, line 146 | |
C:\Users\Jasnoor\Documents\api\python-django-exporting-files\ExportingFiles\Scripts\python.exe | |
3.6.2 | |
['C:\Users\Jasnoor\Documents\api\python-django-exporting-files', 'C:\Users\Jasnoor\Documents\api\python-django-exporting-files\ExportingFiles\Scripts\python36.zip', 'C:\Users\Jasnoor\AppData\Local\Programs\Python\Python36\DLLs', 'C:\Users\Jasnoor\AppData\Local\Programs\Python\Python36\lib', 'C:\Users\Jasnoor\AppData\Local\Programs\Python\Python36', 'C:\Users\Jasnoor\Documents\api\python-django-exporting-files\ExportingFiles', 'C:\Users\Jasnoor\Documents\api\python-django-exporting-files\ExportingFiles\lib\site-packages'] | |
Tue, 29 May 2018 11:52:58 +0530 |
Please help me with this.
Thanks
django.db.utils.OperationalError: (1045, "Access denied for user 'YOUR_USER_NAME'@'localhost' (using password: YOUR_PASSWORD)")
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 338, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/init.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 390, in run_from_argv
self.execute(_args, _cmd_options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 440, in execute
self.check()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 478, in check
include_deployment_checks=include_deployment_checks,
File "/usr/local/lib/python2.7/dist-packages/django/core/checks/registry.py", line 72, in run_checks
new_errors = check(app_configs=app_configs)
File "/usr/local/lib/python2.7/dist-packages/django/core/checks/model_checks.py", line 28, in check_all_models
errors.extend(model.check(**kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 1181, in check
errors.extend(cls._check_fields(**kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py", line 1258, in _check_fields
errors.extend(field.check(**kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/init.py", line 934, in check
errors = super(AutoField, self).check(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/init.py", line 207, in check
errors.extend(self._check_backend_specific_checks(**kwargs))
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/init.py", line 306, in _check_backend_specific_checks
return connection.validation.check_field(self, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/validation.py", line 18, in check_field
field_type = field.db_type(connection)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/init.py", line 614, in db_type
return connection.data_types[self.get_internal_type()] % data
File "/usr/local/lib/python2.7/dist-packages/django/db/init.py", line 36, in getattr
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 60, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 196, in data_types
if self.features.supports_microsecond_precision:
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 60, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/features.py", line 52, in supports_microsecond_precision
return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)
File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 60, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 371, in mysql_version
with self.temporary_connection():
File "/usr/lib/python2.7/contextlib.py", line 17, in enter
return self.gen.next()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 462, in temporary_connection
cursor = self.cursor()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 162, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 135, in _cursor
self.ensure_connection()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 130, in ensure_connection
self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 97, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 130, in ensure_connection
self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 119, in connect
self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/mysql/base.py", line 276, in get_new_connection
conn = Database.connect(_conn_params)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/init.py", line 81, in Connect
return Connection(_args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 193, in init
super(Connection, self).init(_args, **kwargs2)
django.db.utils.OperationalError: (1045, "Access denied for user 'praneeth'@'localhost' (using password: YES)")
Can not open file
I keep getting the error: Can't open file "/static/fonts/FreeSans.ttf" when running this application.
Could you let me know if this is a known issue?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.