Opened 11 years ago

Closed 9 years ago

#38952 closed defect (fixed)

py-scrapy: templates unreadable except by root

Reported by: moboyle79@… Owned by: kurthindenburg (Kurt Hindenburg)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: petrrr
Port: py-scrapy

Description

I installed py2.7-scrapy, and started following the basic scrapy tutorial here, but got an error on the first step (creating a project). The command

scrapy startproject tutorial

gave a bunch of errors about permission denied in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scrapy/templates/. The files in there all seemed to be owned by root, with permissions and ownership -rw------- 1 root wheel. Since the scrapy startproject command copies some of these template files, it failed. I solved the problem by simply running

sudo chmod -R +r /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scrapy/templates/

Change History (8)

comment:1 in reply to:  description Changed 11 years ago by moboyle79@…

Replying to moboyle79@…:

Actually, I went too deep on that last command. It should have been just

sudo chmod -R +r /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scrapy/

comment:2 Changed 11 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to perry@…
Port: py-scrapy added

In the future, please fill in the Port field and Cc the port maintainer(s).

comment:3 Changed 10 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:4 Changed 10 years ago by petrrr

Owner: changed from perry@… to macports-tickets@…

Perry gave up maintainership of this port!

Last edited 10 years ago by petrrr (previous) (diff)

comment:5 Changed 10 years ago by petrrr

Summary: Scrapy templates unreadable except by rootpy-scrapy: templates unreadable except by root

comment:6 Changed 10 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to khindenburg@…

Assigning to new maintainer.

comment:7 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Can those having this issue; update and try again. It works fine here on Mavericks w/ the python 27 version

comment:8 Changed 9 years ago by petrrr

Resolution: fixed
Status: newclosed

In r123923 the port was updated. The templates have now the correct access rights.

Closing!

Note: See TracTickets for help on using tickets.