Wierd StaticCompilationError caused by django-static-precompiler - python

On project we use django-static-precompiler and scss. When I ran localy got this weird error that points to nothing literally. No info at internet or references at docs. I thought it connected to sass packecge but it already installed at my system.
OR

Just install the newest version

Related

How to solve ImportError: dlopen(): Symbol not found:.... Expected in: flat namespace

Can anyone help me solve this issue?
ImportError: dlopen(/Users/......./venv/lib/python3.6/site-packages/recordclass/mutabletuple.cpython-36m-darwin.so, 2): Symbol not found: __PyEval_GetBuiltinId
Referenced from: /Users/......./venv/lib/python3.6/site-packages/recordclass/mutabletuple.cpython-36m-darwin.so
Expected in: flat namespace
in /Users/......../venv/lib/python3.6/site-packages/recordclass/mutabletuple.cpython-36m-darwin.so
I'm using a Mac if that's of any relevance
I couldn't quite figure out what the issue was but I'm assuming __PyEval_GetBuiltinId was broken/uninstalled.
So all I did to fix this was pip uninstall recordclass and then pip install --no-cache-dir recordclass and it seemed to have worked
I encountered the same problem and found your question. I have an M1 MacBook, but I think we're encountering 2 problems.
At first, I had a similar error to yours:
ImportError> dlopen(): Library not found
What I did to fix this error was 'brew install ___' the library that was missing, in my case it was tesseract. After I brew installed it again I ran my script and got a new error. This time I had a
no suitable image found: imageXXX found but wrong architecture
So what I think may be happening is there is an underlying error with the compatibility between our M1 chips and the brew install-ed formulaes. I'm currently trying to find a solution. The first I'm going to try is resetting my installation from scratch and, if that doesn't work, look at alternatives. Ultimately I think what will solve the problem is installing from source like is described on the OpenCV website: https://docs.opencv.org/master/d0/db2/tutorial_macos_install.html.
Hope this helped!
EDIT
I just finished uninstalling Homebrew completely and the reinstalling it from scratch, both casks, formulae, EVERYTHING! And it seems to work. I got both Tensorflow and OpenCV to work (they both printed their versions and I ran a simple camera test on OpenCV)
This issue is well described here. I had the same issue with the NetCDF4 library in the macOS M1 chip.
In my case (NetCDF4#1.5.8) installing the library using brew and pip didn't solve the problem as the provided package wasn't compatible with the M1 chip.
The issue will solve as mentioned in their Github in NetCDF#1.6.0.
In such cases, I recommend:
First make sure that you install dependencies of the library (in this case recordclass) that you are using in your system in case you are using a virtual environment, not just in the environment.
Second check if the wheel of the library meets your machine requirements.

manage.py createsuperuser: AttributeError: module 'os' has no attribute 'PathLike'

I'm trying a Django tutorial. For some reason my existing superuser got deleted; creating that went fine, but I can't make another one. This also happens when I try to use pip.
I didn't change anything in the libraries so not sure why this happens now but didn't before. On windows 7 (Python 3.6.3 and Django 1.11). I've seen similar but not the exact same problems for Windows. Still I checked the file and there seems to be a PathLike class.
I've also tried to repair my Python installation but it didn't help. any ideas?
Seems like you may have modified the settings.py file. But as MrName mentioned you need to share full stack trace
This looks like a feature that changed in Python3.6 as you can see here. Make sure that your python version is 3.6 or greater.
Update your Python and Django version and that will work perfect.
AttributeError: module 'os' has no attribute 'PathLike'
Installing it into the global site-packages with the below command solved my problem:
pip install --user virtualenvwrapper

Using Flask and Jython under Windows 7

Hello everyone,
So I have been trying to use Jython to connect to an API Rest and retrieve some information. Now I want to use the Flask Framework with it. I have been trying to install the Flask with Jython but it does not seem to work at all. I am working on a Windows 7 machine and the problem for me is also that I can not download directly from the internet. For all other framework I used python wheels and installed these with Jython which worked fine.
I already tried to following commands and got these errors:
First error that I got was that it could not find the 'init.py' file in the flask folder so I changed the path in the file to the total path. But it just continued to give me more errors.
jython -m pip install '*.whl
Screenshot of the command line ouput of the error
pip install '*.whl (same as above)
I am a little stuck here and I hope that someone has an idea on how to solve this problem.
Big thanks already!!
This appears to be a bug with Jython 2.7.0. See this error report in pip and this one in Jython.
The second of those indicates that it is fixed in the 2.7.1 release candidate.

Can't install PyDev for Eclipse Indigo

I have problem with installation of PyDev in Eclipse Indigo. I used Help -> Install new software -> and http://pydev.org/updates repository. I try it for 3 days yet but it is still not work. First, I got error: unabled to read repository.
Today, repository was found but during installation of package I got error:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://update-production-pydev.s3.amazonaws.com/pydev/updates/plugins/org.python.pydev_2.2.2.2011082312.jar.
Read timed out
Unable to read repository at http://update-production-pydev.s3.amazonaws.com/pydev/updates/plugins/org.python.pydev.debug_2.2.2.2011082312.jar.
Read timed out
Unable to read repository at http://update-production-pydev.s3.amazonaws.com/pydev/updates/plugins/org.python.pydev.jython_2.2.2.2011082312.jar.
Read timed out
It seems like the repository is out of order. Does somebody know, what to do? Thanks!
use http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml
Just checked and it seems to be working. As a note, a new PyDev release is available (2.2.3).
If it still doesn't work for you, you can try the zip release (see: http://pydev.org/download.html for instructions on getting/installing it).
I had this problem, but updating eclipse fixed it
Using this url https://dl.bintray.com/fabioz/pydev/6.3.2 worked for me.
Got this from http://www.pydev.org/updates/

Error starting Django with Pinax

Upon trying to start a Pinax app, I receive the following error:
Error: No module named notification
Below are the steps I took
svn co http://svn.pinaxproject.com/pinax/trunk/ pinax
cd pinax/pinax/projects/basic_project
./manage.py syncdb
Any suggestions?
UPDATE:
Turns out there are some bugs in the SVN version. Downloading the latest release solved my problem. If any one has any other suggestions on getting the trunk working, they would still be appreciated.
I'd avoid the svn version all together. It's unmaintained and out of date. Instead, use the git version at http://github.com/pinax/pinax or (even better) the recently release 0.7b3 downloadable from http://pinaxproject.com
Two thoughts:
1. Check all of your imports to make sure that notification is getting into the namespace.
2. You may be missing quotes around an import path (eg. in your urls.py: (r'^test', 'mysite.notification') -- sometimes I forget the quotes around the view)
Try following the latest install instructions here:
http://github.com/pinax/pinax/blob/600d6c5ca0b45814bdc73b1264d28bb66c661ac8/INSTALL
Don't think this will work on Windows (maybe if you are using cygwin) as they are using virtualenv and pip.
Note the version has recently been upgraded to 0.7rc1
IIRC I had to add a directory or two to the Python path last time I did a fresh install of Pinax. I'm doing a fresh checkout now into a new virtualenv, I'll edit this answer if I hit any snags.

Categories