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

Import issue #26

Open
Phoebe-Macdonald opened this issue May 10, 2020 · 11 comments
Open

Import issue #26

Phoebe-Macdonald opened this issue May 10, 2020 · 11 comments

Comments

@Phoebe-Macdonald
Copy link

Phoebe-Macdonald commented May 10, 2020

I have successfully installed opensky-api
When running pip install -e python in my terminal I get: Successfully installed opensky-api)
However, if I then run
from opensky_api install OpenSkyAPI
I run into the following error:

Traceback (most recent call last):
File "<input>", line 1, in <module> File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ModuleNotFoundError: No module named 'opensky_api'

Is there an issue? Am I doing something wrong?

@SLKTH
Copy link

SLKTH commented Aug 16, 2020

I have the same issue.

@Forastierii
Copy link

Hey @Phoebe-Macdonald hoebe, did you manage to solve this issue?
I have the same problem.

@mouhsineelachbi
Copy link

mouhsineelachbi commented May 2, 2022

Hi
The correct way to install opensky packages using pip and according to #issue-634885026
pip install -e "git+https://github.com/openskynetwork/opensky-api.git#egg=python&subdirectory=python"

@Ruagit
Copy link

Ruagit commented Jun 27, 2022

Hi @Phoebe-Macdonald did you ever resolve this issue? I am currently having this problem as well.

@micheleberardi
Copy link

@Ruagit this works for me
pip install -e "git+https://github.com/openskynetwork/opensky-api.git#egg=opensky-api&subdirectory=python"

@CaMo111
Copy link

CaMo111 commented Feb 9, 2024

problem

When i do what @mouhsineelachbi suggests, i get this error. Does anyone know how to resolve this?

@adriens
Copy link

adriens commented May 26, 2024

With :

pip install -e "git+https://github.com/openskynetwork/opensky-api.git#egg=python&subdirectory=python"

I got this error:

  Updating ./src/python clone
  Running command git fetch -q --tags
  Running command git reset --hard -q c6f34a5a9e6dc37ce58852ffa9110f79c2980a80
  Preparing metadata (setup.py) ... done
  WARNING: Generating metadata for package python produced metadata for project name opensky-api. Fix your #egg=python fragments.
Discarding [git+https://github.com/openskynetwork/opensky-api.git#egg=python&subdirectory=python](git+https://github.com/openskynetwork/opensky-api.git#egg=python&subdirectory=python</span>): Requested opensky-api from git+https://github.com/openskynetwork/opensky-api.git#egg=python&subdirectory=python has inconsistent name: expected 'python', but metadata has 'opensky-api'
ERROR: Could not find a version that satisfies the requirement python (unavailable) (from versions: none)
ERROR: No matching distribution found for python (unavailable)

@adriens
Copy link

adriens commented May 26, 2024

Did anyone manage to make it run recently?

@AWSBarker
Copy link

this is still not working.

@ahmetqunay
Copy link

git clone https://github.com/openskynetwork/opensky-api
cd opensky-api
pip install .

@praxii-debug
Copy link

git clone https://github.com/openskynetwork/opensky-api
cd opensky-api
cd python/
python3 setup.py build
python3 setup.py install

This worked for me

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