Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running in Nitrous.IO #8

Closed
ghost opened this issue Mar 17, 2016 · 10 comments
Closed

Error when running in Nitrous.IO #8

ghost opened this issue Mar 17, 2016 · 10 comments

Comments

@ghost
Copy link

ghost commented Mar 17, 2016

I get this error when running
myproject python khinsider.py
Installing beautifulsoup4...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber
os.makedirs(destsubdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/beautifulsoup4-4.4.1.dist-info'
Storing debug log for failure in /home/nitrous/.pip/pip.log
Traceback (most recent call last):
File "khinsider.py", line 60, in
from bs4 import BeautifulSoup
ImportError: No module named bs4

@Maverynthia
Copy link

I think I remember getting that error and I solved it by using Python 3.0 as I couldn't figure it out.

@obskyr
Copy link
Owner

obskyr commented Mar 17, 2016

I've never used Nitrous (never even heard of it until now, actually), so I don't really know what this is about. I'd assume maybe it doesn't like installing libraries through the actual program? One possibility is that it runs Python scripts with different permissions than what's required to access the lib directory. Maybe I should add an error message for that...

Try running these commands in whatever console Nitrous gives you (with sudo if it seems to require it):

pip install requests
pip install beautifulsoup4

Then see if it gets mad at you and report back.

@ghost
Copy link
Author

ghost commented Mar 18, 2016

khinsider git:(master) ✗ python3
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.

pip install beautifulsoup4
File "", line 1
pip install beautifulsoup4
^
SyntaxError: invalid syntax

@obskyr
Copy link
Owner

obskyr commented Mar 18, 2016

No, run it in the Linux console. If Nitrous gives you one of those. It boasts about "root access" on the site, so I'd assume it does.

@ghost
Copy link
Author

ghost commented Mar 18, 2016

pip install beautifulsoup4
Downloading/unpacking beautifulsoup4
Downloading beautifulsoup4-4.4.1-py2-none-any.whl (81kB): 81kB downloaded
Installing collected packages: beautifulsoup4
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, _args, *_kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_files
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 206, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 193, in clobber
os.makedirs(destsubdir)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/beautifulsoup4-4.4.1.dist-info'
Storing debug log for failure in /home/nitrous/.pip/pip.log

@ghost
Copy link
Author

ghost commented Mar 18, 2016

That's what I tried initially, still didn't work

@obskyr
Copy link
Owner

obskyr commented Mar 18, 2016

And Nitrous has pip, right? And you tried running with sudo?
On Mar 18, 2016 4:40 PM, "Lucas" notifications@github.com wrote:

That's what I tried initially, still didn't work


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#8 (comment)

@obskyr
Copy link
Owner

obskyr commented Mar 18, 2016

@lucasone Here, check this StackOverflow post out. Instead of pip install, try pip install --user.

@obskyr
Copy link
Owner

obskyr commented Mar 25, 2016

Psst, @lucasone, how's it looking?

@ghost
Copy link
Author

ghost commented Mar 25, 2016

It looks there are restrictions after all on Nitrous.IO, so I ended up giving up. All the packages weren't working right, and some would not install due to folders actually being blocked/removed immediately from the filesystem. So I suppose it's best to close this issue.

@ghost ghost closed this as completed Mar 25, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants