Unexpected error while saving file: Untitled.ipynb attempt to write a readonly database
I am using a windows10 machine, initially all it was working fine but
after upgrading python3(32-bit) to python3(64-bit)) and changing
python versions for couple of times, it is giving the weird error as
mentioned,i have looked many answers saying the access issue, tried
that too but nothing works for me.
i have completely removed the jupyter-notebook and again install it , but it doesn't worked.
give proper permission or change owner for jupyter directory
sudo chown -R ubuntu:ubuntu jupyter/
Related
When trying to run: pip install -e git+https://github.com/tjguk/wmi.git#egg=wmi, I got the following error:
Which is a pretty well known problem so when googling the problem I found many relevant threads such as:
pip install -U setuptools fail windows 10
In which I tried the most voted solution and got the "infamous" message again:
I kept looking for a solution until I got to this question, which was really comprehensive but unfortunately, somewhat outdated since I'm told to use Python 3.
In the end of the output, logs are mentioned, If I need to attach them here I'll need directions on how to retrieve them and I'll gladly attach.
Apparently, after looking up the directory:
"C:\Users\user\AppData\Roaming\Python\Python38\site-packages\setuptools"
I found out that it does not contain the module "version.py" which was probably used to check if 'setuptools' was installed.
So I tried to copy the contents of "C:\Program Files\Python38\Lib\site-packages\setuptools"
into the matching folder mentioned above and now the problem is solved, I even tried to restart my PC to see if the fix was temporary - Gladly, it wasn't.
Although I'm not sure why the problem occurred to begin with, it seems to be solved now.
The output after the fix:
I'm trying to install Mongodb version 4.4 on a AWS IDE (using a Mac and Ubuntu set up). I receive the following error message:
bash: /home/linuxbrew/.linuxbrew/bin/mongo: Permission denied
It seems it's a permission issue, however I have no idea to to rectify this. Any ideas or steps to take to resolve this?
it seems there is already a discussion about this error on the MongoDB forum.
Here is the link
They closed it as Won't fix.
The final answer was provided by Mathew Robinson as:
Closing this as Won't Fix, it seems that Linuxbrew is a very small
subset of homebrew users and we support from source builds as well as
Linux packages for all distributions we support.
In the case of Linuxbrew it would just be a way to run our from source
builds that we already document how to do.
I have the same problem
the problem is that you use homebrew and the files are in a restricted area which means Linux can't modify it.
I solved it by:
full this guide to Install MongoDB Community Edition :
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
then, instead of using mongod use mongosh which allows you to add data to the table.
I tried mongod and it never works and I don't know why.
it give aborting after fassert() failure\n\n"} so mongosh work fine.
Im trying to convert a kivy app to run on iOS and have followed the information on the kivy site. However, once everything is downloaded the first step is to compile the toolchain process, which I cant do. So the command
./toolchain.py openssl kivy
returns
./toolchain.py: Permission denied
No other messages so a bit difficult to troubleshoot. I found this post. That suggestion hasn't been accepted or marked as correct, but I tried anyway and changing permissions doesn't fix the problem. I have tried
chmod a+x toolchain.py
sudo chmod 755 ./toolchain.py
sudo chmod 755 ./toolchain.py
All of which change the permissions as expected but trying to run toolchain now gives me
from: can't read /var/mail/kivy_ios.toolchain
./toolchain.py: line 4: syntax error: unexpected end of file
So changing permission doesn't seem to work either and I'm now out of ideas???
Also for info I'm running kivy in a venv on Catalina
So - it turns out after updating XCode you have to reselect the command line tools. Then it all works fine.
This answer is for future users. If any of the above answers don't work.
Use this https://pypi.org/project/kivy-ios/ and follow all the instructions
I am trying to set up a test iCloud Calendar API thing, so I am trying to set it up using XAMPP on my Linux computer. After reading many forums on how to do it, I found that Baikal is the easiest way to use CalDAV. I first tried to use their Regular Package, and followed the instructions, but I keep getting the error message:
Error - Insufficient permissions on the Specific/ folder
In order to work properly, Baïkal needs to have write permissions in the Specific/ folder.
No matter how many times I do chown -R [username] Directory/to/Specific and check to make sure it worked by using ls -l Directory/to/Specific, it still gives the same error. I ended up giving up with the Regular Package and tried their Flat Package thinking it would be easier/faster since the description of the package states:
Download this package if you want Baïkal up and running quickly
I followed the Instructions again, and it still gave the same exact error as above.
Am I missing something, or is this an issue with XAMPP?
The folder Baikal has to be assigned to www-data
sudo chown -R www-data:www-data baikal/
sudo find baikal/ -type d -exec chmod 755 {} \;
I encountered this issue at Fedora 28. The culprit was SELinux, after disabling it (setenforce 0) the page came OK.
I´ve installed postgresql 9.1 on ubuntu 12.04 with pgpoolII-3.3.3 and pgPoolAdmin
If I try to run pgpool from a terminal with sudo pgpool it seems to start. Viewing ubuntu file explorer I can see how a pgpool.pid file is created at /var/run/pgpool/pgpool.id (this is the path in pgpool.conf)
But after one second the file disappears.
I have tried to change the owner of the directory and the directory permissions but nothing seems to fix it.
If after that I try to stop pgpool wiht sudo pgpool -m fast stop I got an error: Error. pid file not found
It seems like the file is created and suddenly destroyed. I´m wondering why.
If I try to run pgpool from pgPoolAdmin I got this error: pgpool start failed. pgpool.pid not found.
Like other times, it´s maybe and stupid issue and I´m not being able to solve it as i don´t have a high level of knowledge on those systems.
Any idea about what to try?
Xrry Christmas
Solved. I think the problem was caused by a permission problem. After trying
sudo mkdir /var/run/pgpool
sudo chmod 777 /var/run/pgpool
sudo chown postgres/postgres /var/run/pgpool
sudo postgresql service restart
It seems to be working now.
check the tmp directory using ls -la command and delete the file .s.PGSQL.9999 and .s.PGSQL.9898 and restart the server
Upon configuring PgPool-II, I found some documentation explaining that using the default directory /var/run/pgpool for the PID file was a bad idea, for that file could be erased when the service reboots.
The contents of the /var/run directory (including the pgpool
directory) may be removed by the operating system during a reboot. The
/var/run/pgpool directory should NOT be used as the location for the
pgpool.pid file.
The issue seems to occur when using Ubuntu.
So a possible solution would be to store the PID file in a directory named so as to not match the name of a service that could be rebooted. For instance, you could change the pgpool.conf file :
pid_file_name = '/var/run/pgpool4ever/pgpool.pid'
I could not try it on my own as I do not use Ubuntu, but maybe this could help someone facing a similar problem. Although I am not sure that it is very wise to go past basic Ubuntu way of working....