Git Product home page Git Product logo

Comments (11)

scivision avatar scivision commented on July 18, 2024

Hi @2ar0n
that's interesting; Ubuntu 16.04 comes with Python 3.5 by default, which is supposed to work with pymap3d.
This post experienced exactly the same error on a different package, and a commenter said it might work fine regardless of the error.
It seems like it could be a rare issue. Another commenter said it was fixed by reinstalling Python (with something like Miniconda.

I installed a fresh Miniconda Python 3.5 environment and Pymap3D installed without any issues.
You might consider trying the 50MB Miniconda download for Python 3, in general it's nice to avoid using system Python in case issues arise.

from pymap3d.

2ar0n avatar 2ar0n commented on July 18, 2024

Hello @scivision,
I've looked a bit more into the problem and you're right that I seems not the be related to the pymap3d package itself, so I will close this issue.
Nonetheless, I've tried installing it on 4 different machines now (all running Python3.5 on Ubuntu 16.04) and was successful on only one of them. What did work for me was installing from source using pip3 install -e . in the clone repository. Hope this can be useful to anybody.

from pymap3d.

scivision avatar scivision commented on July 18, 2024

Hmm, this may have been an issue with too-old pip as would be typical with system Python.
Many projects these days require pip >= 10. Older versions of pip that come with Linux may just fail with weird messages like this.

from pymap3d.

2ar0n avatar 2ar0n commented on July 18, 2024

I expected that too, but the same error came using pip 18.1. I'll double check

from pymap3d.

scivision avatar scivision commented on July 18, 2024

Here's what I got from Ubuntu 16.04, system Python 3.5.2 and pip==8.1.1:

python3 -m pip install --user pymap3d

errors:

 Running setup.py bdist_wheel for unknown ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-eevn2f5r/unknown/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpibs2lyeupip-wheel- --python-tag cp35:
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3.5/tokenize.py", line 454, in open
      buffer = _builtin_open(filename, 'rb')
  FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-eevn2f5r/unknown/setup.py'
  
  ----------------------------------------
  Failed building wheel for unknown
  Running setup.py clean for unknown
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-eevn2f5r/unknown/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" clean --all:
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3.5/tokenize.py", line 454, in open
      buffer = _builtin_open(filename, 'rb')
  FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-eevn2f5r/unknown/setup.py'
  
  ----------------------------------------
  Failed cleaning build dir for unknown
Successfully built unknown
Failed to build unknown
Installing collected packages: unknown
Successfully installed unknown
You are using pip version 8.1.1, however version 18.1 is available.

Ubuntu 16.04, system Python 3.5.2, pip==18.1

python3 -m pip install --user pymap3d

error:

python3 -m pip install --user pymap3d
Collecting pymap3d
Installing collected packages: pymap3d
Exception:
Traceback (most recent call last):
  File "/home/.local/lib/python3.5/site-packages/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/home/.local/lib/python3.5/site-packages/pip/_internal/commands/install.py", line 366, in run
    use_user_site=options.use_user_site,
  File "/home/.local/lib/python3.5/site-packages/pip/_internal/req/__init__.py", line 49, in install_given_reqs
    **kwargs
  File "/home/.local/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 760, in install
    use_user_site=use_user_site, pycompile=pycompile,
  File "/home/.local/lib/python3.5/site-packages/pip/_internal/req/req_install.py", line 382, in move_wheel_files
    warn_script_location=warn_script_location,
  File "/home/.local/lib/python3.5/site-packages/pip/_internal/wheel.py", line 326, in move_wheel_files
    assert info_dir, "%s .dist-info directory not found" % req
AssertionError: pymap3d .dist-info directory not found

from pymap3d.

scivision avatar scivision commented on July 18, 2024

Ubuntu 18.04, system Python 3.6.6 and pip==9.0.1

/usr/bin/python3 -m pip install --user pymap3d

is successful

from pymap3d.

scivision avatar scivision commented on July 18, 2024

So I am not sure what the issue is with Ubuntu 16.04 and system Python. Generally we advocate not using system Python, but rather a user-installed small Python distro like Miniconda, which does work for me with Python 3.5, 3.6, 3.7

from pymap3d.

2ar0n avatar 2ar0n commented on July 18, 2024

I'll keep that in mind! Thank you for all the investigation

from pymap3d.

scivision avatar scivision commented on July 18, 2024

Yes sorry I don't have time right now to dig into it further. It could be that since Ubuntu 16.04 doesn't have the latest 3.5.x version, there could have been some bugfix that even having the latest pip doesn't help. This is a good thing to note for other developers, as this issue barely shows up on a Google search.

from pymap3d.

rdfred avatar rdfred commented on July 18, 2024

Just another datapoint. The pip install appears to work for me if you specify an older version (this is on ubuntu 16.04 with python 2). It appears that anything below the current 1.8.0 will properly install (in both the "OS" version of pip and in virtualenv's).

from pymap3d.

scivision avatar scivision commented on July 18, 2024

I believe this may be fixed now. I tried with same systems and it works e.g.

pip install pymap3d

As well as git clone and then

pip install -e .

I recently added more testing and configuration to hopefully fix this issue.

from pymap3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.