PythonAnywhere "Could not install packages due to an EnvironmentError: [Errno 122] Disk quota exceeded " - numpy

I'm trying to upload a bot to the server and encountered this error when installing numpy. Although before that I also installed it and everything worked then I changed the virtual environment and this error popped up.
There is still a lot of free memory, I even tried to delete everything and fill the project with a new one, but I still encounter this error.
Perhaps this is the problem exactly PythonAnywhere someone may have encountered

Disabling the cache worked for me
first clear the cache
pip3 cache purge
then install without caching
pip3 install -r requirements.txt --no-cache-dir

So, did you check the disk quota for the virtual environment, i.e the virtual disk allocated should be enough for the work. Please check.

Related

Direnv not allowing me to allow

I've installed direnv (v2.18.2) onto my Ubuntu 16.04 machine using:
sudo snap install direnv
as per the website, and added the line:
eval "$(direnv hook bash)"
to my ~/.bashrc file as per the instructions. When I navigate into the directory with my .envrc file, the following message shown:
direnv: error .envrc is blocked. Run `direnv allow` to approve its content.
Sweet. So I run direnv allow, and I'm immediately hit with exactly the same error. I've also tried using direnv allow . but that doesn't seem to help. Also, completely restarting my laptop hasn't helped either.
All the advice I've seen is for direnv not finding the .envrc file, but here it is finding it, it's just not allowing me to allow it.
I know this is not a propper solution, but I encountered this aftering installing from a snap on Linux Mint.
After I uninstalled the snap and installed it from aptitude I did not have any issues.
While the OP is on Ubuntu I ran into the same problem with the snap installed binary on CentOS 7.7.
I worked around the problem by installing a go binary and then building direnv from source: git clone https://github.com/direnv/direnv.git; cd direnv; make; make install which got me direnv 2.21.2 in /usr/local/bin

stuck on the first step of ambari 2.7.3 install wizard

I have installed the Hortonworks sandbox HDP 2.6.5 (docker install).
After having many issues with Ambari "HeartBeat lost" I decided to upgrade Ambari to the latest version, so I cleanly uninstall ambari and then install 2.7.3 following the instructions from:
https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3
After a long process I managed to complete the installation and start both services successfully: "ambari-server" and "ambari-agent"
Now I am stuck on the install wizard in the fisrt step without getting any error
or any progress. That is, after hitting "Next" it never gets to step 2. (see picture)
screenshot showing the issue
Things done so far to try to work this around:
restarting services (several times)
ambari-server upgrade (once more)
trying with chrome and IE
looking at the log files of ambari-server and ambari-agent
...but without success.
Has anybody come across the same issue?
Any clues?
Thanks for your help!
I have faced the same issue and I have activated the stack as shown below:
sudo sed -i 's|<active>false</active>|<active>true</active>|g' /var/lib/ambari-server/resources/stacks/HDP/2.6/metainfo.xml
sudo sed -i 's|<active>false</active>|<active>true</active>|g' /var/lib/ambari-server/resources/stacks/HDP/2.4/metainfo.xml
cat /var/lib/ambari-server/resources/stacks/HDP/2.6/metainfo.xml
cat /var/lib/ambari-server/resources/stacks/HDP/2.4/metainfo.xml
then I restarted the ambari-server and then it worked.
you have broken stacks for HDP. make sure you fresh build ambari 2.7.3 from source
https://cwiki.apache.org/confluence/display/AMBARI/Installation+Guide+for+Ambari+2.7.3
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development
copy folder and contents inside HDP stacks
/root/ambari-release-2.7.3/ambari-server/src/main/resources/stacks/HDP
ambari-release-2.7.3 is folder result build from source
paste to broken ambari-server
/var/lib/ambari-server/src/main/resources/stacks/
restart ambari server

How do I stop iTerm2 from running xcodebuild and hanging when I open a window?

Since this morning, on my iMac (macOS High Sierra Version 10.13.6) any time I open an iTerm2 window (with Oh My Zsh installed), I see this:
It seems that it's trying to run xcodebuild and it's stuck. I never get a prompt, even after waiting a long time. I've tried pressing ctrl+C to end the process, and then I see this:
I'm not purposely trying to do anything with Xcode. I just want to use the command line. I've been working for months without this problem, and it just started today. Any suggestion for how I can resolve this and use iTerm like normal?
I had the similar issue.
This resolved the problem:
# sudo xcodebuild -license accept
I got the same issue with macOS Big Sur.
Tried all Google results and nothing works. Eventually, I found it was caused by setting Node.js v8.x as default in nvm, alias default to system will resolve the issue. Although I don't know why nvm need to run xcodebuild for Node.js v8.x.
I have got the same issue after updating my MBP16 with Big Sur today
I have checked my xcode command tools path with xcode-select -p and I found that the path was related to an older version of xcode (10.1 in my case, I do not remember the path, maybe /Applications/Xcode_10.1.app/Contents/Developer/).
I have reinstall xcode command tools (sudo rm -rf /Library/Developer/CommandLineTools and xcode-select --install) and I have switched the xcode command tools path with this command sudo xcode-select -switch /Library/Developer/CommandLineTools
The issue is resolved now
Many answers but at the first start the console is still very slow (15s).
Looking around I found out that somehow nvm needs xcodebuild.
The slowdown was fixed changing the nvm default to system
nvm alias default system
Still not well clear why this is happening, I suggest to figure out trying to change the nvm configuration until you obtain the result.
The hanging I was experiencing happened only once after reboot, and consequent launches of the shell happened instantly.
I've spent hours debugging this issue. I eventually traced the hanging to homebrew's start script. My finding was that /usr/bin/git was slow at start (took 12 secs to load) for some reason and Homebrew used that binary unless another was installed. I installed a newer version of git through Homebrew using brew install git and this fixed the issue.
Investigation
I could see that the hang causes 100% CPU usage in syspolicyd and I could see a -67062 error at the end of the hang through Console.app (this error means code object is not signed at all). Unfortunately, the error log did not point me to a specific file and I had to add echos inside the brew script to isolate the exact location of the hang. It turned out to be an execution of git. Installing another version of git that would overwrite the default one fixed the problem. I used brew install git since homebrew checks its own directory first for a git binary.
I am not exactly sure how/why the code signature of /usr/bin/git is broken. It wasn't broken when I first installed Homebrew. It was somehow corrupted later on.

Error while installing from script ZeroBraneStudio

When executing ZeroBraneStudioEduPack-1.70-linux.sh i get this error: xdg-desktop-menu: No writable system menu directory found.
It could be related to my desktop environment ? currently i'm using sway with xwayland.
According to this answer, seems to be an xdg bug. You can check if running sudo mkdir /usr/share/desktop-directories/ before running the install command fixes the issue. I'll consider adding it to the install script if it helps.

mix local.hex fails from SSL after updating Erlang

I was prompted to update Erlang on my machine and I did. Then when I restarted my server I was prompted to update using mix local.hex.
When i did this it gave me the following error.
mix local.hex --force didn't work either.
I eventually found out that I installed erlang originally without brew originally which is where the prompt came from. After I updated it, it caused an issue with mix local.hex.
I manually removed the folder /usr/local/lib/erlang and all erlang on my machine. I installed erlang using 'brew install erlang' and then ran 'brew link erlang'
This originally didn't work because I didn't have permission but then I ran the following to get permission.
sudo chown -R $(whoami) /usr/local/lib
After that 'brew link erlang' worked and I was able to run 'mix local.hex' like normal.