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

Repaired luigi build #2033

Merged
merged 4 commits into from
Feb 23, 2017
Merged

Repaired luigi build #2033

merged 4 commits into from
Feb 23, 2017

Conversation

Aaronhrndz
Copy link
Contributor

Description

Changed URI.js route

Motivation and Context

Luigi does not build properly, referencing issue #2028

Have you tested this? If so, how?

The project has passed the travis tests, luigid is running properly.

Copy link
Contributor

@Tarrasch Tarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can anyone else verify this works?

@@ -21,11 +21,10 @@
<script src="lib/jquery.slimscroll.min.js"></script>
<script src="lib/AdminLTE/js/app.min.js"></script>
<script src="lib/datatables/js/jquery.dataTables.min.js"></script>
<script src="lib/URI.js/1.18.2/URI.js"></script>
<script src="lib/URI.js"></script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't the issue the URI.js matching some regex? Do we not have the same issue here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In setup.py it copies the static files with this function:

def get_static_files(path):
return [os.path.join(dirpath.replace("luigi/", ""), ext)
for (dirpath, dirnames, filenames) in os.walk(path)
for ext in [".html", ".js", ".css", ".png",
".eot", ".svg", ".ttf", ".woff", "*.woff2"]]

The URI folder was called URI.js, and the above function fails when it gets this folder extension

@dlstadther
Copy link
Collaborator

It's been requested and (somewhat) supported by @nmb10 and @kwilcox to leave the version number within the path. So just change luigi/static/visualiser/lib/URI.js/1.18.2./URI.js to luigi/static/visualiser/lib/URI/1.18.2/URI.js.

@@ -21,7 +21,7 @@
<script src="lib/jquery.slimscroll.min.js"></script>
<script src="lib/AdminLTE/js/app.min.js"></script>
<script src="lib/datatables/js/jquery.dataTables.min.js"></script>
<script src="lib/URI.js"></script>
<script src="lib//URI/1.18.2/URI.js"></script>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib/URI/1.18.2/URI.js

one too many /

@dlstadther
Copy link
Collaborator

@Tarrasch @nmb10 Are you good with this?

@nmb10
Copy link
Contributor

nmb10 commented Feb 17, 2017

Hi, @dlstadther . Yes.

@miku
Copy link
Contributor

miku commented Feb 20, 2017

Can anyone else verify this works?

I believe this PR would fix the installation problem, that I encountered:

$ pip install luigi
....
error: can't copy 'luigi/static/visualiser/lib/URI.js': doesn't exist or not a regular file

In setup.py, get_static_files will return (among other globs) 'static/visualiser/lib/*.js',, which will match URI.js, which is not a regular file, as setup seems to expect.

@dlstadther dlstadther merged commit 2e921cd into spotify:master Feb 23, 2017
@dlstadther
Copy link
Collaborator

Thanks!

@Lucas-C
Copy link
Contributor

Lucas-C commented Feb 23, 2017

I have the same error when pip installing luigi 2.6.0. I cannot use this version in its current state.
Could you please include this fix in a 2.6.1 release ?

@dlstadther
Copy link
Collaborator

@Lucas-C I don't have the ability to push luigi releases. That'll have to wait until @Tarrasch returns.

@shahabedinh
Copy link

shahabedinh commented Mar 1, 2017

I had the same issue

/opt/cloudera/parcels/Anaconda-4.0.0/bin/pip install luigi

....
reating build/lib/luigi/static/visualiser/lib
copying luigi/static/visualiser/lib/mustache.js -> build/lib/luigi/static/visualiser/lib
copying luigi/static/visualiser/lib/jquery-1.10.0.min.js -> build/lib/luigi/static/visualiser/lib
error: can't copy 'luigi/static/visualiser/lib/URI.js': doesn't exist or not a regular file

then I download and then pip it.

wget https://github.com/spotify/luigi/archive/master.zip
unzip master.zip
cd luigi-master/
sudo /opt/cloudera/parcels/Anaconda/bin/pip install .

and it works for me

@kwilcox kwilcox mentioned this pull request Mar 7, 2017
This was referenced Jun 29, 2022
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

Successfully merging this pull request may close these issues.

7 participants