apache mod_expire does not work

I have configured Apache mod_expire as described below, but it did not work. I added in .htaccess file this block: ExpiresActive On ExpiresDefault A900 ExpiresByType text/html A1800 ...

How to install wxversion for Python

I'm experimenting with the "SPy" Spectral Python library, using PyCharm, and I've gotten to the point where it tells me that wxversion was not found. How can I install wxversion? I'm very new to...

Errors with matplotlib, what am I missing?

I've been experimenting with SPy (Spectral Python), using PyCharm on a Mac. I've been running into error after error, but as it stands, its this error I'm completely stumped on: Program...

Distribute a Python package with a compiled dynamic shared library

How do I package a Python module together with a precompiled .so library? Specifically, how do I write setup.py so that when I do this in Python >>> import top_secret_wrapper It can easily find...

Bootstrap 4 scrollspy not working to change active navbar items

I am using Bootstrap 4.0 to create a simple landing page and using ScrollSpy in this page but I am not able to make it work, it does not changing the active menu items. index.html - <body> <!--...

packaging multiple pre-compiled binary python c extensions(.so, created using SWIG interface)

I have used SWIG to generate wrapper code for my c application and compiled them as shared libraries (dynamically linked). Now I want to package my application be able to install it on another...

Zipline buyapple tutorial - UnicodeDecodeError

Software stack version: Spyder 3.2.4 Python 3.5 Zipline 1.1.1 OSX El capitan When running Zipline from terminal just to try it out: $ zipline run -f buyapple.py --start 2000-1-1 --end 2014-1-1...

Convert Unicode to Dictionary

Version: Python 2.7.10. I have the following: r = requests.post(url = API_ENDPOINT, headers = headers, data = data) print(r.text) print(type(r.text)) print(r.text[2]) The...

Bootstrap 4 scrollspy with list-group doesn't work

I am trying to implement Scrollspy with list group in Bootstrap 4, but it doesn't work. Scroll content contains data-spy="scroll" data-target="#fixed-menu" data-offset="0" and menu contains...

Python: "ImportError: DLL load failed: The specified module could not be found." Problems when importing ffn (finance library for python)

Apologies if there does in fact exist a thread that has already figured this out (I've spent a few hours attentively searching multiple sites and the GitHubs for the dependencies that seem to...

Unable to read URL pandas_datareader

import pandas as pd import pandas_datareader as web spy_etf = web.DataReader('SPY','google') spy_etf.info() #ERROR /Users/mac/anaconda3/envs/pyfinance/bin/python...

How to fetch a specific column from multiple CSV files with pandas

I am trying to fetch Adj Close column from multiple csv files. Sample csv file (same content can be copied to aapl.csv, msft.csv and hcp.csv: Date Open High Low Close Volume Adj...

ValueError: Related model 'user.UserProfile' cannot be resolved Django 2.1

I am trying to create a UserProfile model in my user app and instead of inheriting from models.Model, I am inheriting from django's own User model so that I would have a custom user model wwith...

sinon spy doesn't register call in a generator loop?

I want to check that a piece of code is being called, so I'm using a sinon spy to assert this. However, the spy seems to be failing, despite console.logs showing that the code has been called...

Python Zipline Offline Testing

I want to use zipline offline without jupyter notebooks. I have tried to get zipline to ingest from quandl and use the data successfully but I haven't succeeded. Here is my environment - python...

How to properly set TOCBOT with Bootrap-4

I am trying to use the good add-on called TOCBot. I have the following two questions that I would hope some one could help me with. Issue #1: In there you can see that a white vertical bar that...

Cannot import name 'db' (flask, sqlalchemy)

I'm trying to import database and get an error "cannot import name 'db'". I've seen answers on such problem, but none of them helped in my case. Tree of my project: chat | chat.py └─ app ...

Spyder3 not launching - How to launch?

I see other slightly different versions of this question, but not exactly like my situation, so I am asking: I have installed Python 3.72 on my Windows 8.1 operating system. Even though I see that...

Need help positioning two columns in row

I'm reworking my portfolio website using bootstrap 4. Everything seems to be going fine until I got to my project showcase. I have a row that should have two columns. One column with a pic and the...

Offset Top in React Functional Components, getBoundingClientRect not working properly

I'm trying to implement class-swapping site navigation using React Functional components during the scroll screen. I added a listener to windows and I'm using the getBoundingClientRect method to...

cannot resolve "{% static 'images/image_name.jpg' %}

I am new to django and cannot seem to load images with bootstrap. I'm getting the error cannot resolve "{% static 'images/image_name.jpg' %} I understand that it is not finding the path....

Pip/pipenv not finding package inside Docker container?

I'm trying to use py-spy on my Python application who's development and deployment primarily happens in a Docker container, namely, python:3.7-alpine. When I run pip install py-spy locally in a...

py-spy: how to run scripts with dependencies?

running the following on windows 10 C:\code\EPMD\Kodex-1.4.6\EPD_Prerequisite\Anaconda2\Scripts/py-spy.exe --nonblocking -- python...

Unit test angular component with input binding and router links gives error 'Cannot read property '__source' of undefined'

I'm trying to write a unit test for a component with an @Input property that happens to include an anchor tag with a [routerLink] in it. I was getting the error: Failed: Template parse errors:...

run_algorithm() fails because it cannot fetch data from the internet source (403 Forbidden)

I tried to follow zipline's Quickstart: from zipline.api import order_target, record, symbol def initialize(context): context.i = 0 context.asset = symbol('AAPL') def...

Bootstrap 4.1.3 NavBar link doesnt work on mobile

I started doing website now and I've known the bootstrap a little while ago. I'm here because I have a problem with navbar link's. On the homepage the links work perfectly but on the following...

Javascript Error Uncaught TypeError: Cannot read property 'top' of undefined

i was coding my page and i use a template. I don't understand javascript very well so im getting this error only when i go to portfolio.html page and switch to the mobile view. in the index.html...

While restarting apache getting erroe

Hello team while starting my apache getting error mentioning my htttpd.conf file and error snipet This is my httpd.conf file:- # ServerRoot "/ebiz/apache/httpd" ServerRoot "/ebiz/apache" # #...

Installing cartopy from pip exits with various errors on Linux Ubuntu 18.04

The shell command pip install cartopy led to several errors. At first, the following error occurred: ERROR: Command errored out with exit status 1: command:...

How to solved Scroll spy refresh Bootstrap 5 problem?

I found small problem in scrollspy Bootstrap 5. When windows is resize navigation is not correct and not refresh. Souce code is from original bootstrap...