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

Hide the submit part button when there's only one part #573

Closed
christianp opened this issue Sep 13, 2018 · 12 comments

Comments

Projects
None yet
2 participants
@christianp
Copy link
Member

commented Sep 13, 2018

No description provided.

@apallennz

This comment has been minimized.

Copy link

commented Sep 25, 2018

Hi, I've been looking at http://numbas.github.io/editor/ubuntu-local.html in terms of getting the Numbas software generally working

In the following section
Configuration
Run
python first_setup.py

Having followed all previous instructions, running python first_setup.py just says the file isn't found
ideas?

@christianp

This comment has been minimized.

Copy link
Member Author

commented Sep 26, 2018

@apallennz are you in the right directory? After running git clone, you'll need to change into the numbas editor directory with cd numbas_editor.

@apallennz

This comment has been minimized.

Copy link

commented Sep 27, 2018

pwd
/home//Downloads/numbas_editor

python first_setup.py
python: can't open file 'first_setup.py': [Errno 2] No such file or directory

@christianp

This comment has been minimized.

Copy link
Member Author

commented Sep 27, 2018

Have a look with your file manager to check that you're in the right place and you've cloned the repository fully.

@apallennz

This comment has been minimized.

Copy link

commented Sep 28, 2018

I only cloned the repo again in the last couple of days

~/Downloads/numbas_editor$ ls
bin docs.md locales README.md scormfiles
CONTRIBUTORS.md extensions Makefile requirements.txt tests
docs jsdoc.conf marking_scripts runtime themes

there isn't actually a first_setup.py file in the repo from what i can see?

~/Downloads/numbas_editor$ find -maxdepth 5 -type f -name *.py
./bin/html2textile.py
./bin/migrations.py
./bin/htmlescapes.py
./bin/xml2js.py
./bin/numbas.py
./bin/numbasobject.py
./bin/examparser.py
./bin/exam.py

@christianp

This comment has been minimized.

Copy link
Member Author

commented Sep 28, 2018

That's the Numbas runtime repository. You also need to clone the editor repository.

@apallennz

This comment has been minimized.

Copy link

commented Sep 28, 2018

i don't mean to tell you you're wrong, but see the path before 'ls', i've run ls on the editor repo
i'll go through the whole install process now and let you know

@christianp

This comment has been minimized.

Copy link
Member Author

commented Sep 28, 2018

Those are exactly the files in the Numbas repository

@apallennz

This comment has been minimized.

Copy link

commented Sep 28, 2018

i just realized the mistake i've been making, it'll probably work now :)

@apallennz

This comment has been minimized.

Copy link

commented Sep 28, 2018

so trying to run the following commands
pip3 install -r numbas_editor/requirements.txt
pip3 install -r numbas_runtime/requirements.txt

i always get

  • Failed building wheel for Pillow
    and
  • Command "/home//Downloads/numbas_venv/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-9vs2qmj8/Pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-d0ujye8a/install-record.txt --single-version-externally-managed --compile --install-headers /home//Downloads/numbas_venv/include/site/python3.6/Pillow" failed with error code 1 in /tmp/pip-install-9vs2qmj8/Pillow/
@apallennz

This comment has been minimized.

Copy link

commented Oct 10, 2018

any comments on the above?

@christianp

This comment has been minimized.

Copy link
Member Author

commented Oct 11, 2018

@apallennz You might need to install the dev dependencies for Pillow. See https://pillow.readthedocs.io/en/5.3.x/installation.html#building-on-linux for some instructions.
pip should be trying to install the prepared wheel package, rather than building it locally. Are you running inside a virtual machine? Either way, if you can decipher the filenames at https://pypi.org/project/Pillow/#files to find a file that matches your architecture, OS and Python version, you could try installing that directly.

Sorry this is so complicated - Python packaging can sometimes get unreasonably tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.